Skip to content

Commit

Permalink
remove assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
xxchan committed Jan 3, 2025
1 parent be639ef commit a2a3cb3
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/meta/src/stream/source_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -520,12 +520,13 @@ impl SourceManagerCore {
handle.handle.abort();
}
self.source_fragments.remove(&source_id);
if let Some(fragments) = self.backfill_fragments.remove(&source_id) {
debug_assert!(
fragments.is_empty(),
"when dropping source, there should be no backfill fragments, got: {:?}",
fragments
);
if let Some(_fragments) = self.backfill_fragments.remove(&source_id) {
// TODO: enable this assertion after we implemented cleanup for backfill fragments
// debug_assert!(
// fragments.is_empty(),
// "when dropping source, there should be no backfill fragments, got: {:?}",
// fragments
// );
}
}

Expand Down

0 comments on commit a2a3cb3

Please sign in to comment.