mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-12-03 16:05:28 +00:00
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:
@@ -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[®ion_id].shared_state);
|
||||
assert_eq!(
|
||||
active.unwrap().snapshot(None).state.as_ref(),
|
||||
compaction_task::STATE_CANCELLING
|
||||
);
|
||||
[first, second]
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user