HBASE-22067 Fix log in StochasticLoadBalancer when balancer

This commit is contained in:
Xu Cang 2019-03-26 11:45:53 -07:00
parent b9feefbff6
commit 6f151269d3
No known key found for this signature in database
GPG Key ID: 8E6C8FEDCA866394
1 changed files with 2 additions and 2 deletions

View File

@ -388,10 +388,10 @@ public class StochasticLoadBalancer extends BaseLoadBalancer {
computedMaxSteps = Math.min(this.maxSteps, calculatedMaxSteps); computedMaxSteps = Math.min(this.maxSteps, calculatedMaxSteps);
if (calculatedMaxSteps > maxSteps) { if (calculatedMaxSteps > maxSteps) {
LOG.warn(String.format("calculatedMaxSteps:%d for loadbalancer's stochastic walk is larger " LOG.warn(String.format("calculatedMaxSteps:%d for loadbalancer's stochastic walk is larger "
+ "than maxSteps:%dß. Hence load balancing may not work well. Setting parameter " + "than maxSteps:%d. Hence load balancing may not work well. Setting parameter "
+ "\"hbase.master.balancer.stochastic.runMaxSteps\" to true to overcome this issue." + "\"hbase.master.balancer.stochastic.runMaxSteps\" to true to overcome this issue."
+ "(This config change does not require service restart)", calculatedMaxSteps, + "(This config change does not require service restart)", calculatedMaxSteps,
maxRunningTime)); maxSteps));
} }
} }