[ 
https://issues.apache.org/jira/browse/CASSANDRA-13568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arnd Hannemann updated CASSANDRA-13568:
---------------------------------------
    Status: Patch Available  (was: Open)

>From fe868e2da9b79977d7819bbeb92f69264abef803 Mon Sep 17 00:00:00 2001
From: Arnd Hannemann <a...@arndnet.de>
Date: Thu, 1 Jun 2017 10:34:52 +0200
Subject: [PATCH] CASSANDRA-13568: add newline to output if there are no
 snaphots

Before this patch, the nodetool listsnaphots command output is missing a 
newline,
if there are no snaphots.
---
 src/java/org/apache/cassandra/tools/nodetool/ListSnapshots.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/java/org/apache/cassandra/tools/nodetool/ListSnapshots.java 
b/src/java/org/apache/cassandra/tools/nodetool/ListSnapshots.java
index 1b3065bf11..4c22906609 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;
             }

-- 
2.11.0


> nodetool listsnapshots output is missing a newline, if there are no snapshots
> -----------------------------------------------------------------------------
>
>                 Key: CASSANDRA-13568
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-13568
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>            Reporter: Arnd Hannemann
>            Priority: Trivial
>         Attachments: 
> 0001-CASSANDRA-13568-add-newline-to-output-if-there-are-n.patch
>
>
> When there are no snapshots, the nodetool listsnaphots command output is 
> missing a newline, which gives a somewhat bad user experience:
> {code}
> root@cassandra2:~# nodetool listsnapshots
> Snapshot Details: 
> There are no snapshotsroot@cassandra2:~# 
> {code}
> I



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to