mirror of https://github.com/apache/cassandra
Add speculative retries to tablestats
Patch by brandonwilliams; reviewed by bereng and Maxwell Guo for CASSANDRA-18767
This commit is contained in:
parent
e08bf19432
commit
fd9f07dab8
|
@ -1,4 +1,5 @@
|
|||
3.0.30
|
||||
* Fix missing speculative retries in tablestats (CASSANDRA-18767)
|
||||
* Fix Requires for Java for RPM package (CASSANDRA-18751)
|
||||
* Fix CQLSH online help topic link (CASSANDRA-17534)
|
||||
* Remove unused suppressions (CASSANDRA-18724)
|
||||
|
|
|
@ -200,6 +200,7 @@ public class TableStats extends NodeToolCmd
|
|||
if (memtableOffHeapSize != null)
|
||||
out.println("\t\tMemtable off heap memory used: " + format(memtableOffHeapSize, humanReadable));
|
||||
out.println("\t\tMemtable switch count: " + probe.getColumnFamilyMetric(keyspaceName, tableName, "MemtableSwitchCount"));
|
||||
out.println("\t\tSpeculate retries: " + probe.getColumnFamilyMetric(keyspaceName, tableName, "SpeculativeRetries"));
|
||||
out.println("\t\tLocal read count: " + ((CassandraMetricsRegistry.JmxTimerMBean) probe.getColumnFamilyMetric(keyspaceName, tableName, "ReadLatency")).getCount());
|
||||
double localReadLatency = ((CassandraMetricsRegistry.JmxTimerMBean) probe.getColumnFamilyMetric(keyspaceName, tableName, "ReadLatency")).getMean() / 1000;
|
||||
double localRLatency = localReadLatency > 0 ? localReadLatency : Double.NaN;
|
||||
|
|
Loading…
Reference in New Issue