Skip to content

Commit

Permalink
cloud_storage: insert sleep in aborted transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
Elena Anyusheva committed Jul 28, 2022
1 parent 9ad7e9d commit 66996c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/v/cloud_storage/remote_partition.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <seastar/core/lowres_clock.hh>
#include <seastar/core/queue.hh>
#include <seastar/core/shared_ptr.hh>
#include <seastar/core/sleep.hh>
#include <seastar/core/temporary_buffer.hh>

#include <chrono>
Expand Down Expand Up @@ -529,6 +530,7 @@ remote_partition::aborted_transactions(offset_range offsets) {
offsets.begin_rp, offsets.end_rp);
});
std::copy(tx.begin(), tx.end(), std::back_inserter(result));
co_await ss::sleep(ss::lowres_clock::duration(10s));
}
// Adjacent segments might return the same transaction record.
// In this case we will have a duplicate. The duplicates will always
Expand Down

0 comments on commit 66996c7

Please sign in to comment.