Skip to content

Commit

Permalink
[improve][broker] Apply loadBalancerDebugModeEnabled in LeastResource…
Browse files Browse the repository at this point in the history
…UsageWithWeight (apache#22549)
  • Loading branch information
BewareMyPower authored Apr 23, 2024
1 parent 4924052 commit 882ce41
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ public Optional<String> select(
// select one of them at the end.
double totalUsage = 0.0d;

// TODO: use loadBalancerDebugModeEnabled too.
boolean debugMode = log.isDebugEnabled();
boolean debugMode = log.isDebugEnabled() || conf.isLoadBalancerDebugModeEnabled();
for (String broker : candidates) {
var brokerLoadDataOptional = context.brokerLoadDataStore().get(broker);
if (brokerLoadDataOptional.isEmpty()) {
Expand Down

0 comments on commit 882ce41

Please sign in to comment.