test(mito2): verify pause initiates local compaction cancellation

Signed-off-by: WenyXu <wenymedia@gmail.com>
(cherry picked from commit 8c2f925aae)
This commit is contained in:
WenyXu
2026-11-20 09:21:10 +00:00
parent ba9b16a864
commit c4fcd596cc
@@ -1317,6 +1317,12 @@ async fn test_cancelled_queued_unit_releases_fenced_ddl(
let pause_waiters = pause_first.then(|| {
let first = pending_pause(&mut scheduler, region_id);
let second = pending_pause(&mut scheduler, region_id);
let (active, _) =
CompactionState::current(&scheduler.region_status[&region_id].shared_state);
assert_eq!(
active.unwrap().snapshot(None).state.as_ref(),
compaction_task::STATE_CANCELLING
);
[first, second]
});