Skip to content

Commit

Permalink
Trace one off collection ids
Browse files Browse the repository at this point in the history
  • Loading branch information
Sicheng Pan committed Jan 15, 2025
1 parent 7b6487b commit 2e0c103
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rust/worker/src/compactor/compaction_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,12 @@ impl Handler<OneOffCompactionMessage> for CompactionManager {
message: OneOffCompactionMessage,
_ctx: &ComponentContext<CompactionManager>,
) {
tracing::info!("CompactionManager: Performing one-off compaction");
self.scheduler
.add_oneoff_collections(message.collection_ids);
tracing::info!(
"One-off collections queued: {:?}",
self.scheduler.get_oneoff_collections()
);
}
}

Expand Down
4 changes: 4 additions & 0 deletions rust/worker/src/compactor/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ impl Scheduler {
self.oneoff_collections.extend(ids);
}

pub(crate) fn get_oneoff_collections(&self) -> Vec<CollectionUuid> {
self.oneoff_collections.iter().cloned().collect()
}

async fn get_collections_with_new_data(&mut self) -> Vec<CollectionInfo> {
let collections = self
.log
Expand Down

0 comments on commit 2e0c103

Please sign in to comment.