You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by mc...@apache.org on 2019/04/07 04:27:13 UTC
[cassandra] branch cassandra-3.0 updated: For nodetool
listsnapshots output, put spaces between columns,
and increase snapshot padding.
This is an automated email from the ASF dual-hosted git repository.
mck pushed a commit to branch cassandra-3.0
in repository https://gitbox.apache.org/repos/asf/cassandra.git
The following commit(s) were added to refs/heads/cassandra-3.0 by this push:
new 7a058c6 For nodetool listsnapshots output, put spaces between columns, and increase snapshot padding.
7a058c6 is described below
commit 7a058c6b0345411caaffd436b75f23c7450cc85b
Author: Brandon Williams <br...@datastax.com>
AuthorDate: Tue Sep 18 08:16:02 2018 -0500
For nodetool listsnapshots output, put spaces between columns, and increase snapshot padding.
patch by Aleksandr Sorokoumov and Brandon Williams; reviewed by Mick Semb Wever for CASSANDRA-14876
---
CHANGES.txt | 1 +
src/java/org/apache/cassandra/tools/nodetool/ListSnapshots.java | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/CHANGES.txt b/CHANGES.txt
index e00d11c..492bc1c 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
3.0.19
+ * For nodetool listsnapshots output, put spaces between columns, and increase snapshot padding (CASSANDRA-14876)
* Fix handling FS errors on writing and reading flat files - LogTransaction and hints (CASSANDRA-15053)
* Avoid double closing the iterator to avoid overcounting the number of requests (CASSANDRA-15058)
* Improve `nodetool status -r` speed (CASSANDRA-14847)
diff --git a/src/java/org/apache/cassandra/tools/nodetool/ListSnapshots.java b/src/java/org/apache/cassandra/tools/nodetool/ListSnapshots.java
index 798fb71..344d9dc 100644
--- a/src/java/org/apache/cassandra/tools/nodetool/ListSnapshots.java
+++ b/src/java/org/apache/cassandra/tools/nodetool/ListSnapshots.java
@@ -47,7 +47,7 @@ public class ListSnapshots extends NodeToolCmd
}
final long trueSnapshotsSize = probe.trueSnapshotsSize();
- final String format = "%-20s%-29s%-29s%-19s%-19s%n";
+ final String format = "%-40s %-29s %-29s %-19s %-19s%n";
// display column names only once
final List<String> indexNames = snapshotDetails.entrySet().iterator().next().getValue().getTabularType().getIndexNames();
System.out.printf(format, (Object[]) indexNames.toArray(new String[indexNames.size()]));
@@ -69,4 +69,4 @@ public class ListSnapshots extends NodeToolCmd
throw new RuntimeException("Error during list snapshot", e);
}
}
-}
\ No newline at end of file
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org