aswinshakil commented on code in PR #5554:
URL: https://github.com/apache/ozone/pull/5554#discussion_r1386848061
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/service/SnapshotDeletingService.java:
##########
@@ -405,6 +405,12 @@ private long handleDirectoryCleanUp(
while (deletedDirIterator.hasNext()) {
Table.KeyValue<String, OmKeyInfo> deletedDir =
deletedDirIterator.next();
+ String deletedDirKey = deletedDir.getKey();
+
+ // Exit for dirs out of snapshot scope.
+ if (!deletedDirKey.startsWith(dbBucketKeyForDir)) {
Review Comment:
I was not aware this existed. Yes, we can do it, but we need to change this
in multiple places and test it. I can do it as a part of a larger separate
patch.
--
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]