diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/BaseLoadBalancer.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/BaseLoadBalancer.java index 97494f01a99..3728c9ae6f9 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/BaseLoadBalancer.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/BaseLoadBalancer.java @@ -814,11 +814,9 @@ public abstract class BaseLoadBalancer implements LoadBalancer { i++; lowestLocalityServerIndex = serverIndicesSortedByLocality[i]; } - if (LOG.isTraceEnabled()) { - LOG.trace("Lowest locality region server with non zero regions is " + LOG.debug("Lowest locality region server with non zero regions is " + servers[lowestLocalityServerIndex].getHostname() + " with locality " + localityPerServer[lowestLocalityServerIndex]); - } return lowestLocalityServerIndex; } } @@ -841,11 +839,9 @@ public abstract class BaseLoadBalancer implements LoadBalancer { lowestLocalityRegionIndex = j; } } - if (LOG.isTraceEnabled()) { - LOG.debug(" Lowest locality region index is " + lowestLocalityRegionIndex + LOG.debug(" Lowest locality region index is " + lowestLocalityRegionIndex + " and its region server contains " + regionsPerServer[serverIndex].length + " regions"); - } return regionsPerServer[serverIndex][lowestLocalityRegionIndex]; } else { return -1;