priyeshkaratha commented on code in PR #11815:
URL: https://github.com/apache/ozone/pull/11815#discussion_r4420662465
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/service/KeyLifecycleService.java:
##########
@@ -1650,6 +1650,14 @@ private void checkAndCreateTrashDirIfNeeded(OmBucketInfo
bucket, Path dirPath) t
if (e instanceof OMException &&
(((OMException) e).getResult() ==
OMException.ResultCodes.FILE_NOT_FOUND ||
((OMException) e).getResult() ==
OMException.ResultCodes.DIRECTORY_NOT_FOUND)) {
+ // The bucket may have been deleted and recreated since the task
checked it, do not create
Review Comment:
Thanks @ChenSammi for clarifying this. I will close this PR and Jira
--
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]