From f5b20451dbcd982dbdc8a7a24d703553b5bf106d Mon Sep 17 00:00:00 2001 From: xcang Date: Tue, 19 Mar 2019 13:42:09 -0700 Subject: [PATCH] HBASE-22067 Fix log in StochasticLoadBalancer when balancer is ill-fit for cluster size --- .../hadoop/hbase/master/balancer/StochasticLoadBalancer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java index d25d1ecdc3d..4e3c72213f1 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java @@ -387,7 +387,7 @@ public class StochasticLoadBalancer extends BaseLoadBalancer { + "maxSteps:{}. Hence load balancing may not work well. Setting parameter " + "\"hbase.master.balancer.stochastic.runMaxSteps\" to true can overcome this issue." + "(This config change does not require service restart)", calculatedMaxSteps, - maxRunningTime); + maxSteps); } } LOG.info("start StochasticLoadBalancer.balancer, initCost=" + currentCost + ", functionCost="