hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1031767 - in /hbase/trunk: CHANGES.txt conf/log4j.properties src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java
Date Fri, 05 Nov 2010 20:12:01 GMT
Author: stack
Date: Fri Nov  5 20:12:00 2010
New Revision: 1031767

URL: http://svn.apache.org/viewvc?rev=1031767&view=rev
Log:
HBASE-3200 Make is so can disable DEBUG logging on HConnectionImplemenation without losing
important messages

Modified:
    hbase/trunk/CHANGES.txt
    hbase/trunk/conf/log4j.properties
    hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java

Modified: hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/trunk/CHANGES.txt?rev=1031767&r1=1031766&r2=1031767&view=diff
==============================================================================
--- hbase/trunk/CHANGES.txt (original)
+++ hbase/trunk/CHANGES.txt Fri Nov  5 20:12:00 2010
@@ -1103,6 +1103,8 @@ Release 0.21.0 - Unreleased
    HBASE-3189  Stagger Major Compactions (Nicolas Spiegelberg via Stack)
    HBASE-2564  [rest] Tests use deprecated foundation
    HBASE-2819  hbck should have the ability to repair basic problems
+   HBASE-3200  Make is so can disable DEBUG logging on HConnectionImplemenation
+               without losing important messages
 
   NEW FEATURES
    HBASE-1961  HBase EC2 scripts

Modified: hbase/trunk/conf/log4j.properties
URL: http://svn.apache.org/viewvc/hbase/trunk/conf/log4j.properties?rev=1031767&r1=1031766&r2=1031767&view=diff
==============================================================================
--- hbase/trunk/conf/log4j.properties (original)
+++ hbase/trunk/conf/log4j.properties Fri Nov  5 20:12:00 2010
@@ -48,3 +48,6 @@ log4j.logger.org.apache.hadoop.hbase.zoo
 log4j.logger.org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher=INFO
 #log4j.logger.org.apache.hadoop.dfs=DEBUG
 # Set this class to log INFO only otherwise its OTT
+
+# Uncomment this if you want to remove logging of client region caching' messages
+# log4j.logger.org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation=INFO

Modified: hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java?rev=1031767&r1=1031766&r2=1031767&view=diff
==============================================================================
--- hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java (original)
+++ hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java Fri Nov
 5 20:12:00 2010
@@ -876,8 +876,8 @@ public class HConnectionManager {
           HRegionLocation rl = getCachedLocation(tableName, row);
           if (rl != null) {
             tableLocations.remove(rl.getRegionInfo().getStartKey());
-            if (LOG.isDebugEnabled()) {
-              LOG.debug("Removed " +
+            if (LOG.isInfoEnabled()) {
+              LOG.info("Removed " +
                 rl.getRegionInfo().getRegionNameAsString() +
                 " for tableName=" + Bytes.toString(tableName) +
                 " from cache " + "because of " + Bytes.toStringBinary(row));
@@ -1075,7 +1075,7 @@ public class HConnectionManager {
         }
       }
       if (this.zooKeeper != null) {
-        LOG.debug("Closed zookeeper sessionid=0x" +
+        LOG.info("Closed zookeeper sessionid=0x" +
           Long.toHexString(this.zooKeeper.getZooKeeper().getSessionId()));
         this.zooKeeper.close();
         this.zooKeeper = null;



Mime
View raw message