smengcl commented on code in PR #4125:
URL: https://github.com/apache/ozone/pull/4125#discussion_r1095003258


##########
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/shell/keys/ListKeyHandler.java:
##########
@@ -64,8 +79,18 @@ protected void execute(OzoneClient client, OzoneAddress 
address)
       out().println("Listing first " + maxKeyLimit + " entries of the " +
           "result. Use --length (-l) to override max returned keys.");
     } else if (isVerbose()) {
-      out().printf("Found : %d keys for bucket %s in volume : %s ",
-          counter, bucketName, volumeName);
+      if (!Strings.isNullOrEmpty(snapshotNameWithIndicator)) {
+        // snapshot[0] = .snapshot
+        // snapshot[1] = snapshot name
+        String[] snapshotValues = snapshotNameWithIndicator.split("/");

Review Comment:
   nit
   ```suggestion
           // snapshotValues[0] = ".snapshot"
           // snapshotValues[1] = snapshot name
           String[] snapshotValues = snapshotNameWithIndicator.split("/");
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to