sadanand48 commented on code in PR #5321:
URL: https://github.com/apache/ozone/pull/5321#discussion_r1330361649
##########
hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicOzoneClientAdapterImpl.java:
##########
@@ -357,6 +357,10 @@ public boolean deleteObject(String keyName, boolean
recursive)
bucket.deleteDirectory(keyName, recursive);
return true;
} catch (OMException ome) {
+ if (OMException.ResultCodes.KEY_NOT_FOUND == ome.getResult()) {
Review Comment:
Looks like OFS does a getFileStatus call first irrespective of FSO or not.
Ideally we should keep the behaviour same across ofs & o3fs . I'm okay with
this fix too.
--
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]