HBASE-3200 Make is so can disable DEBUG logging on HConnectionImplemenation without losing important messages

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1031767 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2010-11-05 20:12:00 +00:00
parent b09838d4f4
commit 44eab92141
3 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -48,3 +48,6 @@ log4j.logger.org.apache.hadoop.hbase.zookeeper.ZKUtil=INFO
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

View File

@ -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;