virajjasani commented on a change in pull request #687: HBASE-23116: Fix a 
couple of load balancer logging nits.
URL: https://github.com/apache/hbase/pull/687#discussion_r331566917
 
 

 ##########
 File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java
 ##########
 @@ -348,9 +348,11 @@ protected boolean needsBalance(Cluster cluster) {
     if (total <= 0 || sumMultiplier <= 0
         || (sumMultiplier > 0 && (total / sumMultiplier) < 
minCostNeedBalance)) {
       if (LOG.isTraceEnabled()) {
-        LOG.trace("Skipping load balancing because balanced cluster; " + 
"total cost is " + total
-          + ", sum multiplier is " + sumMultiplier + " min cost which need 
balance is "
-          + minCostNeedBalance);
+        final String loadBalanceTarget =
+            isByTable ? String.format("table (%s)", tableName) : "cluster";
+        LOG.trace("Skipping load balancing because the {} is balanced. Total 
cost: {}, "
 
 Review comment:
   nit: from the log msg, "the" can be removed. `the cluster is balanced` is 
fine but `the t1 is balanced`?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to