mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
compaction_manager: perform_cleanup: ignore condition_variable_timed_out
The polling loop was intended to ignore `condition_variable_timed_out` and check for progress using a longer `max_idle_duration` timeout in the loop. Fixes #15669 Signed-off-by: Benny Halevy <bhalevy@scylladb.com> Closes scylladb/scylladb#15671
This commit is contained in:
committed by
Nadav Har'El
parent
8d618bbfc6
commit
68a7bbe582
@@ -1816,7 +1816,11 @@ future<> compaction_manager::perform_cleanup(owned_ranges_ptr sorted_owned_range
|
||||
};
|
||||
|
||||
cmlog.debug("perform_cleanup: waiting for sstables to become eligible for cleanup");
|
||||
co_await t.get_staging_done_condition().when(sleep_duration, [&] { return has_sstables_eligible_for_compaction(); });
|
||||
try {
|
||||
co_await t.get_staging_done_condition().when(sleep_duration, [&] { return has_sstables_eligible_for_compaction(); });
|
||||
} catch (const seastar::condition_variable_timed_out&) {
|
||||
// Ignored. Keep retrying for max_idle_duration
|
||||
}
|
||||
|
||||
if (!has_sstables_eligible_for_compaction()) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user