Skip to content

Commit

Permalink
kvserver: cleanup store rebalancer logging
Browse files Browse the repository at this point in the history
Clean up inconsistent parentheses and make range rebalance logging
consistent with lease rebalance logging.

Epic: none
Release note: None
  • Loading branch information
kvoli committed Dec 14, 2023
1 parent 6a67abf commit ea43cc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/kv/kvserver/store_rebalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ func (sr *StoreRebalancer) TransferToRebalanceRanges(
) bool {
if rctx.LessThanMaxThresholds() {
log.KvDistribution.Infof(ctx,
"load-based lease transfers successfully brought s%d down to %s load, mean=%s, upperThreshold=%s)",
"load-based lease transfers successfully brought s%d down to %s load, mean=%s, upperThreshold=%s",
rctx.LocalDesc.StoreID, rctx.LocalDesc.Capacity.Load(),
rctx.allStoresList.LoadMeans(), rctx.maxThresholds)
return false
Expand Down Expand Up @@ -657,7 +657,7 @@ func (sr *StoreRebalancer) applyRangeRebalance(
descBeforeRebalance, _ := candidateReplica.DescAndSpanConfig()
log.KvDistribution.Infof(
ctx,
"rebalancing r%d (%s load) to better balance load: voters from %v to %v; non-voters from %v to %v",
"rebalancing r%d load=%s to better balance load: voters from %v to %v; non-voters from %v to %v",
candidateReplica.GetRangeID(),
candidateReplica.RangeUsageInfo().Load(),
descBeforeRebalance.Replicas().Voters(),
Expand Down

0 comments on commit ea43cc4

Please sign in to comment.