cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jji...@apache.org
Subject [3/6] cassandra git commit: Add newline to output if there are no snapshots
Date Thu, 22 Jun 2017 02:18:25 GMT
Add newline to output if there are no snapshots

Patch by Arnd Hannemann; Reviewed by Jeff Jirsa for CASSANDRA-13568


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

Branch: refs/heads/trunk
Commit: 96bd3d53637d95ce268e7d4521a62bb400bc161b
Parents: 960e16b
Author: Arnd Hannemann <arnd@arndnet.de>
Authored: Thu Jun 1 10:34:52 2017 +0200
Committer: Jeff Jirsa <jjirsa@apple.com>
Committed: Wed Jun 21 19:13:25 2017 -0700

----------------------------------------------------------------------
 CHANGES.txt                                                     | 4 ++++
 src/java/org/apache/cassandra/tools/nodetool/ListSnapshots.java | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/96bd3d53/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 8791ff0..00e87bf 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,3 +1,7 @@
+3.0.15
+ * Nodetool listsnapshots output is missing a newline, if there are no snapshots (CASSANDRA-13568)
+
+
 3.0.14
  * Ensure int overflow doesn't occur when calculating large partition warning size (CASSANDRA-13172)
  * Ensure consistent view of partition columns between coordinator and replica in ColumnFilter
(CASSANDRA-13004)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/96bd3d53/src/java/org/apache/cassandra/tools/nodetool/ListSnapshots.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/tools/nodetool/ListSnapshots.java b/src/java/org/apache/cassandra/tools/nodetool/ListSnapshots.java
index ee7bf34..798fb71 100644
--- a/src/java/org/apache/cassandra/tools/nodetool/ListSnapshots.java
+++ b/src/java/org/apache/cassandra/tools/nodetool/ListSnapshots.java
@@ -42,7 +42,7 @@ public class ListSnapshots extends NodeToolCmd
             final Map<String,TabularData> snapshotDetails = probe.getSnapshotDetails();
             if (snapshotDetails.isEmpty())
             {
-                System.out.printf("There are no snapshots");
+                System.out.println("There are no snapshots");
                 return;
             }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org


Mime
View raw message