compaction: run rewrite_sstables_compaction_task_executor tasks in maintenance group
Use maintenance group to run all the compaction tasks that use the rewrite_sstables_compaction_task_executor. Fixes #16699 Signed-off-by: Lakshmi Narayanan Sreethar <lakshmi.sreethar@scylladb.com> Closes scylladb/scylladb#17112
This commit is contained in:
committed by
Botond Dénes
parent
b557dcbf5a
commit
e86965c272
@@ -1520,8 +1520,7 @@ protected:
|
||||
}
|
||||
|
||||
virtual future<sstables::compaction_result> rewrite_sstable(const sstables::shared_sstable sst) {
|
||||
// FIXME: this compaction should run with maintenance priority.
|
||||
co_await coroutine::switch_to(_cm.compaction_sg());
|
||||
co_await coroutine::switch_to(_cm.maintenance_sg());
|
||||
|
||||
for (;;) {
|
||||
switch_state(state::active);
|
||||
|
||||
Reference in New Issue
Block a user