sumitagrawl commented on code in PR #5321:
URL: https://github.com/apache/ozone/pull/5321#discussion_r1336658689


##########
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()) {
+        LOG.warn("delete key failed {}", ome.getMessage());

Review Comment:
   @jojochuang Thanks for review, This case already OM provides key name in 
exception, eg:
   
   `ERROR ozone.BasicOzoneClientAdapterImpl: delete key failed
   Unable to get file status: volume: ozonestage bucket: sparktest key: 
tmp/tpcds_output/q20.out/.spark-staging-836b5b33-3941-4734-8f90-23abdfee9167`



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