HBASE-8359 Too much logs on HConnectionManager

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1469203 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
nkeywal 2013-04-18 07:27:58 +00:00
parent 24c6f662c2
commit 21f3899165
1 changed files with 8 additions and 4 deletions

View File

@ -1935,13 +1935,17 @@ public class HConnectionManager {
HRegionInfo regionInfo = oldLocation.getRegionInfo();
final RegionMovedException rme = RegionMovedException.find(exception);
if (rme != null) {
LOG.info("Region " + regionInfo.getRegionNameAsString() + " moved to " +
if (LOG.isTraceEnabled()){
LOG.trace("Region " + regionInfo.getRegionNameAsString() + " moved to " +
rme.getHostname() + ":" + rme.getPort() + " according to " + source.getHostnamePort());
}
updateCachedLocation(
regionInfo, source, rme.getServerName(), rme.getLocationSeqNum());
} else if (RegionOpeningException.find(exception) != null) {
LOG.info("Region " + regionInfo.getRegionNameAsString() + " is being opened on "
if (LOG.isTraceEnabled()) {
LOG.trace("Region " + regionInfo.getRegionNameAsString() + " is being opened on "
+ source.getHostnamePort() + "; not deleting the cache entry");
}
} else {
deleteCachedLocation(regionInfo, source);
}