ashishkumar50 commented on code in PR #5065:
URL: https://github.com/apache/ozone/pull/5065#discussion_r1265611974


##########
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/shell/keys/DeleteKeyHandler.java:
##########
@@ -83,7 +78,7 @@ private void deleteFSOKey(OzoneBucket bucket, String keyName)
 
     // If Bucket layout is FSO and Trash is enabled
     // In this case during delete operation move key to trash
-    if (trashInterval > 0 && !skipTrash &&
+    if (trashInterval > 0 &&

Review Comment:
   Any option which is not supported for command it throws Unknown option. This 
is general behaviour for all commands.
   If someone try to use skipTrash in key delete, it will throw 
   `Unknown option: '--skipTrash'` and it provides usage details about the 
command.



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