cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yu...@apache.org
Subject [2/3] cassandra git commit: Fix nodetool tablestats miss SSTable count
Date Fri, 05 Aug 2016 02:05:29 GMT
Fix nodetool tablestats miss SSTable count

patch by  Edward Ribeiro; reviewed by yukim for CASSANDRA-12205


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/c9df18c2
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/c9df18c2
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/c9df18c2

Branch: refs/heads/trunk
Commit: c9df18c2e2470d42a818c447b6fc9b23af8935be
Parents: 2e0ace7
Author: Edward Ribeiro <edward.ribeiro@gmail.com>
Authored: Thu Aug 4 21:00:39 2016 -0500
Committer: Yuki Morishita <yukim@apache.org>
Committed: Thu Aug 4 21:01:45 2016 -0500

----------------------------------------------------------------------
 CHANGES.txt                                                         | 1 +
 .../apache/cassandra/tools/nodetool/stats/TableStatsPrinter.java    | 1 +
 2 files changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/c9df18c2/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index dd04ddf..bcfbdc9 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 3.9
+ * Fix nodetool tablestats miss SSTable count (CASSANDRA-12205)
  * Fixed flacky SSTablesIteratedTest (CASSANDRA-12282)
  * Fixed flacky SSTableRewriterTest: check file counts before calling validateCFS (CASSANDRA-12348)
  * cqlsh: Fix handling of $$-escaped strings (CASSANDRA-12189)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/c9df18c2/src/java/org/apache/cassandra/tools/nodetool/stats/TableStatsPrinter.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/tools/nodetool/stats/TableStatsPrinter.java b/src/java/org/apache/cassandra/tools/nodetool/stats/TableStatsPrinter.java
index a6da189..f712487 100644
--- a/src/java/org/apache/cassandra/tools/nodetool/stats/TableStatsPrinter.java
+++ b/src/java/org/apache/cassandra/tools/nodetool/stats/TableStatsPrinter.java
@@ -75,6 +75,7 @@ public enum TableStatsPrinter
                 for (StatsTable table : tables)
                 {
                     out.println("\t\tTable" + (table.isIndex ? " (index): " + table.name
: ": ") + table.name);
+                    out.println("\t\tSSTable count: " + table.sstableCount);
                     if (table.isLeveledSstable)
                         out.println("\t\tSSTables in each level: [" + String.join(", ",
                                                                                   table.sstablesInEachLevel)
+ "]");


Mime
View raw message