diff --git a/src/meta/src/hummock/manager/compaction.rs b/src/meta/src/hummock/manager/compaction.rs index 7138586f3ed20..e406292edef2f 100644 --- a/src/meta/src/hummock/manager/compaction.rs +++ b/src/meta/src/hummock/manager/compaction.rs @@ -310,11 +310,11 @@ impl HummockManager { match compact_ret { Ok((compact_tasks, unschedule_groups)) => { + no_task_groups.extend(unschedule_groups); if compact_tasks.is_empty() { break; } generated_task_count += compact_tasks.len(); - no_task_groups.extend(unschedule_groups); for task in compact_tasks { let task_id = task.task_id; if let Err(e) =