This is an automated email from the ASF dual-hosted git repository.

prashantpogde pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new bc55a369bc HDDS-7953. [Snapshot] Print snapshot diff properly in shell 
when there is no diff (#5081)
bc55a369bc is described below

commit bc55a369bc153443b12c8869409f483dae06814e
Author: Hemant Kumar <[email protected]>
AuthorDate: Tue Jul 18 11:07:03 2023 -0700

    HDDS-7953. [Snapshot] Print snapshot diff properly in shell when there is 
no diff (#5081)
---
 .../org/apache/hadoop/ozone/shell/snapshot/SnapshotDiffHandler.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/shell/snapshot/SnapshotDiffHandler.java
 
b/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/shell/snapshot/SnapshotDiffHandler.java
index 88792061ab..ccfdb49d6c 100644
--- 
a/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/shell/snapshot/SnapshotDiffHandler.java
+++ 
b/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/shell/snapshot/SnapshotDiffHandler.java
@@ -98,7 +98,7 @@ public class SnapshotDiffHandler extends Handler {
   private void getSnapshotDiff(ObjectStore store, String volumeName,
                                String bucketName) throws IOException {
     try (PrintStream stream = out()) {
-      stream.print(store.snapshotDiff(volumeName, bucketName, fromSnapshot,
+      stream.println(store.snapshotDiff(volumeName, bucketName, fromSnapshot,
           toSnapshot, token, pageSize, forceFullDiff, diffDisableNativeLibs));
     }
   }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to