Revert "HBASE-15120 Undo aggressive load balancer logging at tens of lines per millisecond"

This reverts commit 66da601cdc.
This commit is contained in:
stack 2016-02-04 16:09:52 -08:00
parent 66da601cdc
commit 8061fa4af8
1 changed files with 2 additions and 6 deletions

View File

@ -814,11 +814,9 @@ public abstract class BaseLoadBalancer implements LoadBalancer {
i++; i++;
lowestLocalityServerIndex = serverIndicesSortedByLocality[i]; lowestLocalityServerIndex = serverIndicesSortedByLocality[i];
} }
if (LOG.isTraceEnabled()) { LOG.debug("Lowest locality region server with non zero regions is "
LOG.trace("Lowest locality region server with non zero regions is "
+ servers[lowestLocalityServerIndex].getHostname() + " with locality " + servers[lowestLocalityServerIndex].getHostname() + " with locality "
+ localityPerServer[lowestLocalityServerIndex]); + localityPerServer[lowestLocalityServerIndex]);
}
return lowestLocalityServerIndex; return lowestLocalityServerIndex;
} }
} }
@ -841,11 +839,9 @@ public abstract class BaseLoadBalancer implements LoadBalancer {
lowestLocalityRegionIndex = j; 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 + " and its region server contains " + regionsPerServer[serverIndex].length
+ " regions"); + " regions");
}
return regionsPerServer[serverIndex][lowestLocalityRegionIndex]; return regionsPerServer[serverIndex][lowestLocalityRegionIndex];
} else { } else {
return -1; return -1;