cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yu...@apache.org
Subject [1/6] cassandra git commit: Fix sstabledump to include missing info in debug output
Date Thu, 10 Mar 2016 20:40:19 GMT
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-3.0 c9d2b7add -> 48bdb41db
  refs/heads/cassandra-3.5 10d61d46d -> 46860aa62
  refs/heads/trunk 9d527ed25 -> 42105ae5b


Fix sstabledump to include missing info in debug output

patch by Andrew Tolbert; reviewed by yukim for CASSANDRA-11321


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

Branch: refs/heads/cassandra-3.0
Commit: 48bdb41db545f76980ed620dafae89c5d8703696
Parents: c9d2b7a
Author: Andrew Tolbert <andrew.tolbert@datastax.com>
Authored: Tue Mar 8 20:51:04 2016 -0600
Committer: Yuki Morishita <yukim@apache.org>
Committed: Thu Mar 10 14:39:28 2016 -0600

----------------------------------------------------------------------
 CHANGES.txt                                            |  1 +
 src/java/org/apache/cassandra/tools/SSTableExport.java | 11 +++++++++++
 2 files changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/48bdb41d/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 4c00994..541f11c 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 3.0.5
+ * Fix sstabledump to include missing info in debug output (CASSANDRA-11321)
  * Establish and implement canonical bulk reading workload(s) (CASSANDRA-10331)
  * Fix paging for IN queries on tables without clustering columns (CASSANDRA-11208)
  * Remove recursive call from CompositesSearcher (CASSANDRA-11304)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/48bdb41d/src/java/org/apache/cassandra/tools/SSTableExport.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/tools/SSTableExport.java b/src/java/org/apache/cassandra/tools/SSTableExport.java
index ebe36c5..3ee9193 100644
--- a/src/java/org/apache/cassandra/tools/SSTableExport.java
+++ b/src/java/org/apache/cassandra/tools/SSTableExport.java
@@ -209,6 +209,17 @@ public class SSTableExport
                     partitions.forEach(partition ->
                     {
                         position.set(currentScanner.getCurrentPosition());
+
+                        if (!partition.partitionLevelDeletion().isLive())
+                        {
+                            System.out.println("[" + metadata.getKeyValidator().getString(partition.partitionKey().getKey())
+ "]@" +
+                                               position.get() + " " + partition.partitionLevelDeletion());
+                        }
+                        if (!partition.staticRow().isEmpty())
+                        {
+                            System.out.println("[" + metadata.getKeyValidator().getString(partition.partitionKey().getKey())
+ "]@" +
+                                               position.get() + " " + partition.staticRow().toString(metadata,
true));
+                        }
                         partition.forEachRemaining(row ->
                         {
                             System.out.println(


Mime
View raw message