sumitagrawl commented on code in PR #5321:
URL: https://github.com/apache/ozone/pull/5321#discussion_r1330874714
##########
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:
For 03fs, getFileStatus is not added as it will impact performance, as for
FSO, it will go iterative to identify root dir/file, So this is just to avoid
another call and avoid performance impact, this is handled using Exception case
to have warning.
ofs is existing behavior and not planning to change.
--
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]