ChenSammi commented on code in PR #6661:
URL: https://github.com/apache/ozone/pull/6661#discussion_r1596250944


##########
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/admin/om/ListOpenFilesSubCommand.java:
##########
@@ -168,8 +179,16 @@ private void printOpenKeysList(ListOpenFilesResult res) {
             line += "No\t\t";
           }
         }
+        if (showOverwritten) {
+          if 
(omKeyInfo.getMetadata().containsKey(OzoneConsts.OVERWRITTEN_HSYNC_KEY)) {
+            line += "Yes\t";
+          } else {
+            line += "No\t";
+          }
+        }
       } else {
         line += showDeleted ? "No\t\tNo\t\t" : "No\t\t";
+        line += showOverwritten ? "No\t" : "";

Review Comment:
   One \t is more aligned, please refer to the above my comment of  "ozone 
admin om lof --service-host=om --show-deleted --show-overwrittent" output. 



-- 
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