We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42f0c58 commit f7afb98Copy full SHA for f7afb98
1 file changed
quickwit/quickwit-control-plane/src/indexing_scheduler/scheduling/scheduling_logic.rs
@@ -305,10 +305,12 @@ fn place_unassigned_shards_ignoring_affinity(
305
match attempt_place_unassigned_shards(&unassigned_shards[..], &problem, partial_solution) {
306
Ok(mut solution) => {
307
// the higher the attempt number, the more unbalanced the solution
308
- tracing::warn!(
309
- attempt_number = attempt_number,
310
- "capacity re-scaled, scheduling solution likely unbalanced"
311
- );
+ if attempt_number > 0 {
+ tracing::warn!(
+ attempt_number = attempt_number,
+ "capacity re-scaled, scheduling solution likely unbalanced"
312
+ );
313
+ }
314
solution.capacity_scaling_iterations = attempt_number;
315
return solution;
316
}
0 commit comments