You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2010/11/05 23:23:42 UTC
svn commit: r1031859 - in /hbase/trunk: conf/log4j.properties
src/main/java/org/apache/hadoop/hbase/client/MetaScanner.java
Author: stack
Date: Fri Nov 5 22:23:41 2010
New Revision: 1031859
URL: http://svn.apache.org/viewvc?rev=1031859&view=rev
Log:
HBASE-3200 Make is so can disable DEBUG logging on HConnectionImplemenation without losing -- more along same vein
Modified:
hbase/trunk/conf/log4j.properties
hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/MetaScanner.java
Modified: hbase/trunk/conf/log4j.properties
URL: http://svn.apache.org/viewvc/hbase/trunk/conf/log4j.properties?rev=1031859&r1=1031858&r2=1031859&view=diff
==============================================================================
--- hbase/trunk/conf/log4j.properties (original)
+++ hbase/trunk/conf/log4j.properties Fri Nov 5 22:23:41 2010
@@ -49,5 +49,7 @@ log4j.logger.org.apache.hadoop.hbase.zoo
#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
+# Uncomment the below if you want to remove logging of client region caching'
+# and scan of .META. messages
# log4j.logger.org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation=INFO
+# log4j.logger.org.apache.hadoop.hbase.client.MetaScanner=INFO
Modified: hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/MetaScanner.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/MetaScanner.java?rev=1031859&r1=1031858&r2=1031859&view=diff
==============================================================================
--- hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/MetaScanner.java (original)
+++ hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/MetaScanner.java Fri Nov 5 22:23:41 2010
@@ -162,9 +162,11 @@ public class MetaScanner {
configuration.getInt("hbase.meta.scanner.caching", 100));
do {
final Scan scan = new Scan(startRow).addFamily(HConstants.CATALOG_FAMILY);
- LOG.debug("Scanning " + Bytes.toString(metaTableName) +
- " starting at row=" + Bytes.toString(startRow) + " for max=" +
- rowUpperLimit + " rows");
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("Scanning " + Bytes.toString(metaTableName) +
+ " starting at row=" + Bytes.toString(startRow) + " for max=" +
+ rowUpperLimit + " rows");
+ }
callable = new ScannerCallable(connection, metaTableName, scan);
// Open scanner
connection.getRegionServerWithRetries(callable);