cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1202821 - in /cassandra/branches/cassandra-1.0: CHANGES.txt src/java/org/apache/cassandra/tools/NodeCmd.java
Date Wed, 16 Nov 2011 18:22:32 GMT
Author: jbellis
Date: Wed Nov 16 18:22:32 2011
New Revision: 1202821

URL: http://svn.apache.org/viewvc?rev=1202821&view=rev
Log:
add bloom filter FP rates to nodetool cfstats
patch by Vijay; reviewed by jbellis for CASSANDRA-3347

Modified:
    cassandra/branches/cassandra-1.0/CHANGES.txt
    cassandra/branches/cassandra-1.0/src/java/org/apache/cassandra/tools/NodeCmd.java

Modified: cassandra/branches/cassandra-1.0/CHANGES.txt
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-1.0/CHANGES.txt?rev=1202821&r1=1202820&r2=1202821&view=diff
==============================================================================
--- cassandra/branches/cassandra-1.0/CHANGES.txt (original)
+++ cassandra/branches/cassandra-1.0/CHANGES.txt Wed Nov 16 18:22:32 2011
@@ -1,5 +1,6 @@
 1.0.4
  * fix "liveSize" stat when sstables are removed (CASSANDRA-3496)
+ * add bloom filter FP rates to nodetool cfstats (CASSANDRA-3347)
 
 
 1.0.3

Modified: cassandra/branches/cassandra-1.0/src/java/org/apache/cassandra/tools/NodeCmd.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-1.0/src/java/org/apache/cassandra/tools/NodeCmd.java?rev=1202821&r1=1202820&r2=1202821&view=diff
==============================================================================
--- cassandra/branches/cassandra-1.0/src/java/org/apache/cassandra/tools/NodeCmd.java (original)
+++ cassandra/branches/cassandra-1.0/src/java/org/apache/cassandra/tools/NodeCmd.java Wed
Nov 16 18:22:32 2011
@@ -461,6 +461,8 @@ public class NodeCmd
                 outs.println("\t\tWrite Count: " + cfstore.getWriteCount());
                 outs.println("\t\tWrite Latency: " + String.format("%01.3f", cfstore.getRecentWriteLatencyMicros()
/ 1000) + " ms.");
                 outs.println("\t\tPending Tasks: " + cfstore.getPendingTasks());
+                outs.println("\t\tBloom Filter False Postives: " + cfstore.getBloomFilterFalsePositives());
+                outs.println("\t\tBloom Filter False Ratio: " + String.format("%01.5f", cfstore.getRecentBloomFilterFalseRatio()));
 
                 InstrumentingCacheMBean keyCacheMBean = probe.getKeyCacheMBean(tableName,
cfstore.getColumnFamilyName());
                 if (keyCacheMBean.getCapacity() > 0)



Mime
View raw message