hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject svn commit: r891166 - /hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/wal/HLog.java
Date Wed, 16 Dec 2009 09:33:52 GMT
Author: apurtell
Date: Wed Dec 16 09:33:52 2009
New Revision: 891166

URL: http://svn.apache.org/viewvc?rev=891166&view=rev
Log:
wal.HLog is way too chatty at INFO level

Modified:
    hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/wal/HLog.java

Modified: hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/wal/HLog.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/wal/HLog.java?rev=891166&r1=891165&r2=891166&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/wal/HLog.java (original)
+++ hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/wal/HLog.java Wed Dec
16 09:33:52 2009
@@ -852,7 +852,11 @@
     }
     try {
       this.editsSize.addAndGet(logKey.heapSize() + logEdit.heapSize());
-      if (this.numEntries.get() % this.flushlogentries == 0) LOG.info("edit=" + this.numEntries.get()
+ ", write=" + logKey.toString());
+      if (LOG.isDebugEnabled() && 
+          (this.numEntries.get() % this.flushlogentries == 0)) {
+        LOG.debug("edit=" + this.numEntries.get() + ", write=" +
+          logKey.toString());
+      }
       this.writer.append(logKey, logEdit);
       long took = System.currentTimeMillis() - now;
       if (took > 1000) {



Mime
View raw message