swamirishi commented on code in PR #7200:
URL: https://github.com/apache/ozone/pull/7200#discussion_r1761986680
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/service/DirectoryDeletingService.java:
##########
@@ -144,6 +155,7 @@ public BackgroundTaskResult call() {
if (LOG.isDebugEnabled()) {
LOG.debug("Running DirectoryDeletingService");
}
+ isRunningOnAOS = true;
Review Comment:
We don't need a countDown latch here. We have to just ensure that while the
KeyDeletingService a delete snapshot command didn't come in. From the next
iteration onward the keys for the bucket would be just ignored. The
snapshotDeletingService would run fine from the subsequent runs.
KeyDeletingService doesn't need to take a lock to run.
--
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]