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:
parent
24c6f662c2
commit
21f3899165
|
@ -1935,13 +1935,17 @@ public class HConnectionManager {
|
||||||
HRegionInfo regionInfo = oldLocation.getRegionInfo();
|
HRegionInfo regionInfo = oldLocation.getRegionInfo();
|
||||||
final RegionMovedException rme = RegionMovedException.find(exception);
|
final RegionMovedException rme = RegionMovedException.find(exception);
|
||||||
if (rme != null) {
|
if (rme != null) {
|
||||||
LOG.info("Region " + regionInfo.getRegionNameAsString() + " moved to " +
|
if (LOG.isTraceEnabled()){
|
||||||
rme.getHostname() + ":" + rme.getPort() + " according to " + source.getHostnamePort());
|
LOG.trace("Region " + regionInfo.getRegionNameAsString() + " moved to " +
|
||||||
|
rme.getHostname() + ":" + rme.getPort() + " according to " + source.getHostnamePort());
|
||||||
|
}
|
||||||
updateCachedLocation(
|
updateCachedLocation(
|
||||||
regionInfo, source, rme.getServerName(), rme.getLocationSeqNum());
|
regionInfo, source, rme.getServerName(), rme.getLocationSeqNum());
|
||||||
} else if (RegionOpeningException.find(exception) != null) {
|
} else if (RegionOpeningException.find(exception) != null) {
|
||||||
LOG.info("Region " + regionInfo.getRegionNameAsString() + " is being opened on "
|
if (LOG.isTraceEnabled()) {
|
||||||
+ source.getHostnamePort() + "; not deleting the cache entry");
|
LOG.trace("Region " + regionInfo.getRegionNameAsString() + " is being opened on "
|
||||||
|
+ source.getHostnamePort() + "; not deleting the cache entry");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
deleteCachedLocation(regionInfo, source);
|
deleteCachedLocation(regionInfo, source);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue