hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nkey...@apache.org
Subject svn commit: r1469204 - /hbase/branches/0.95/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java
Date Thu, 18 Apr 2013 07:29:34 GMT
Author: nkeywal
Date: Thu Apr 18 07:29:33 2013
New Revision: 1469204

URL: http://svn.apache.org/r1469204
Log:
HBASE-8359  Too much logs on HConnectionManager

Modified:
    hbase/branches/0.95/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java

Modified: hbase/branches/0.95/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.95/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java?rev=1469204&r1=1469203&r2=1469204&view=diff
==============================================================================
--- hbase/branches/0.95/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java
(original)
+++ hbase/branches/0.95/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java
Thu Apr 18 07:29:33 2013
@@ -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 " +
-          rme.getHostname() + ":" + rme.getPort() + " according to " + source.getHostnamePort());
+        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 "
-          + source.getHostnamePort() + "; not deleting the cache entry");
+        if (LOG.isTraceEnabled()) {
+          LOG.trace("Region " + regionInfo.getRegionNameAsString() + " is being opened on
"
+              + source.getHostnamePort() + "; not deleting the cache entry");
+        }
       } else {
         deleteCachedLocation(regionInfo, source);
       }



Mime
View raw message