adoroszlai commented on code in PR #6991:
URL: https://github.com/apache/ozone/pull/6991#discussion_r1694763939


##########
hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneFileSystem.java:
##########
@@ -768,13 +768,19 @@ private boolean deleteInSpan(Path f, boolean recursive) 
throws IOException {
 
   private boolean deleteBucket(Path f, boolean recursive, OFSPath ofsPath)
       throws IOException {
+    OzoneBucket bucket;
+    try {
+      bucket = adapterImpl.getBucket(ofsPath, false);
+    } catch (Exception ex) {

Review Comment:
   Trying to delete non-existent bucket is not an error, so we should ignore 
`OMException` with `BUCKET_NOT_FOUND` or `VOLUME_NOT_FOUND` results silently.



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