HBASE-15120 Undo aggressive load balancer logging at tens of lines per millisecond
This commit is contained in:
parent
a69272efe1
commit
c177cfed41
|
@ -816,9 +816,11 @@ public abstract class BaseLoadBalancer implements LoadBalancer {
|
||||||
i++;
|
i++;
|
||||||
lowestLocalityServerIndex = serverIndicesSortedByLocality[i];
|
lowestLocalityServerIndex = serverIndicesSortedByLocality[i];
|
||||||
}
|
}
|
||||||
LOG.debug("Lowest locality region server with non zero regions is "
|
if (LOG.isTraceEnabled()) {
|
||||||
|
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,9 +843,11 @@ public abstract class BaseLoadBalancer implements LoadBalancer {
|
||||||
lowestLocalityRegionIndex = j;
|
lowestLocalityRegionIndex = j;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
LOG.debug(" Lowest locality region index is " + lowestLocalityRegionIndex
|
if (LOG.isTraceEnabled()) {
|
||||||
|
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;
|
||||||
|
|
Loading…
Reference in New Issue