You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ns...@apache.org on 2011/10/11 04:22:52 UTC

svn commit: r1181585 - /hbase/branches/0.89/src/main/java/org/apache/hadoop/hbase/util/CompoundBloomFilterWriter.java

Author: nspiegelberg
Date: Tue Oct 11 02:22:52 2011
New Revision: 1181585

URL: http://svn.apache.org/viewvc?rev=1181585&view=rev
Log:
Reduce log frequency when writing a compound Bloom filter (please ignore)

Summary: This one-line change reduces the frequency of log messages generated
when adding new compound Bloom filter blocks. This is the initial version of
the change that was not reviewed and got into the repository by mistake. It is
superseded by revision 15937 (https://phabricator.fb.com/rH15937).
Test Plan: Unit tests. Looking at the output produced by
TestCompoundBloomFilter.
Reviewers: kannan, nspiegelberg
Commenters: nspiegelberg
CC: hbase@lists, , nspiegelberg, kannan
Revert Plan: OK

Modified:
    hbase/branches/0.89/src/main/java/org/apache/hadoop/hbase/util/CompoundBloomFilterWriter.java

Modified: hbase/branches/0.89/src/main/java/org/apache/hadoop/hbase/util/CompoundBloomFilterWriter.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.89/src/main/java/org/apache/hadoop/hbase/util/CompoundBloomFilterWriter.java?rev=1181585&r1=1181584&r2=1181585&view=diff
==============================================================================
--- hbase/branches/0.89/src/main/java/org/apache/hadoop/hbase/util/CompoundBloomFilterWriter.java (original)
+++ hbase/branches/0.89/src/main/java/org/apache/hadoop/hbase/util/CompoundBloomFilterWriter.java Tue Oct 11 02:22:52 2011
@@ -202,7 +202,7 @@ public class CompoundBloomFilterWriter e
 
     ByteBloomFilter readyChunkBloom = readyChunk.chunk;
     readyChunkBloom.getDataWriter().write(out);
-    if (LOG.isDebugEnabled()) {
+    if (LOG.isDebugEnabled() && readyChunk.chunkId % 10 == 0) {
       LOG.debug("Wrote Bloom chunk #" + readyChunk.chunkId + ": "
           + readyChunkBloom + "; total Bloom " + "keys: " + totalKeyCount);
     }