fix: honor compaction cancellation and replay identity

This commit is contained in:
2026-10-02 05:38:42 +09:00
parent 88338229a1
commit d10783c0d6
4 changed files with 47 additions and 4 deletions
+5 -1
View File
@@ -1736,7 +1736,11 @@ async fn manual_compact_cancel_clears_progress_before_returning_idle() {
Event::CompactionProgress { compaction: None } => {
saw_interrupted = true;
}
Event::Error { .. } => saw_cancel_error = true,
Event::Error { .. }
| Event::Alert(protocol::Alert {
level: protocol::AlertLevel::Error,
..
}) => saw_cancel_error = true,
Event::WorkerState { snapshot }
if snapshot.catalog_status() == protocol::WorkerStatus::Idle =>
{