wal.HLog is way too chatty at INFO level

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@891166 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Kyle Purtell 2009-12-16 09:33:52 +00:00
parent 04155cac92
commit 1858f17716
1 changed files with 5 additions and 1 deletions

View File

@ -852,7 +852,11 @@ public class HLog implements HConstants, Syncable {
} }
try { try {
this.editsSize.addAndGet(logKey.heapSize() + logEdit.heapSize()); 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); this.writer.append(logKey, logEdit);
long took = System.currentTimeMillis() - now; long took = System.currentTimeMillis() - now;
if (took > 1000) { if (took > 1000) {