Skip to content

Commit

Permalink
chore: more recluster log (#16915)
Browse files Browse the repository at this point in the history
* chore: more recluster log

* cargo fmt

* remove unused imports
  • Loading branch information
dantengsky authored Nov 23, 2024
1 parent a1ec74a commit e452b82
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ use fastrace::future::FutureExt;
use fastrace::Span;
use indexmap::IndexSet;
use log::debug;
use log::info;
use log::warn;

use crate::operations::mutation::SegmentCompactChecker;
Expand Down Expand Up @@ -208,6 +209,11 @@ impl ReclusterMutator {
let mut selected_blocks_idx = IndexSet::new();
for (level, indices) in blocks_map.into_iter() {
if level == -1 || indices.len() < 2 {
info!(
"breaking while checking level: level {}, indices len {} ",
level,
indices.len()
);
continue;
}

Expand Down Expand Up @@ -249,6 +255,11 @@ impl ReclusterMutator {
total_bytes as usize,
level,
));
info!(
"breaking after check for recluster: level {}, num of task {} ",
level,
tasks.len()
);
break;
}

Expand Down Expand Up @@ -304,6 +315,11 @@ impl ReclusterMutator {
level,
));
}
info!(
"breaking after add remains: level {}, num of task {} ",
level,
tasks.len()
);
break;
}

Expand Down

0 comments on commit e452b82

Please sign in to comment.