HBASE-20701 too much logging when balancer runs from BaseLoadBalancer

Signed-off-by: Andrew Purtell <apurtell@apache.org>
This commit is contained in:
Monani Mihir 2018-06-21 12:00:43 +05:30 committed by Andrew Purtell
parent 6fa9f0bea9
commit 4936750d3a
1 changed files with 5 additions and 2 deletions

View File

@ -1023,8 +1023,11 @@ public abstract class BaseLoadBalancer implements LoadBalancer {
}
}
if (leastLoadedServerIndex != -1) {
LOG.debug("Pick the least loaded server " + servers[leastLoadedServerIndex].getHostname()
+ " with better locality for region " + regions[region]);
if (LOG.isTraceEnabled()) {
LOG.trace(
"Pick the least loaded server " + servers[leastLoadedServerIndex].getHostname()
+ " with better locality for region " + regions[region]);
}
}
return leastLoadedServerIndex;
} else {