aryangupta1998 commented on code in PR #9270:
URL: https://github.com/apache/ozone/pull/9270#discussion_r2513120337


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/service/DirectoryDeletingService.java:
##########
@@ -618,12 +668,12 @@ private boolean processDeletedDirectories(SnapshotInfo 
currentSnapshotInfo, KeyM
         long dirNum = 0L;
         long subDirNum = 0L;
         long subFileNum = 0L;
-        int consumedSize = 0;
         List<PurgePathRequest> purgePathRequestList = new ArrayList<>();
         Map<VolumeBucketId, BucketNameInfo> bucketNameInfos = new HashMap<>();
+        AtomicInteger remainNum = new AtomicInteger(remaining);

Review Comment:
   We use atomic long here as this remainNum is used by other functions as well 
and yes multiple threads access these functions as DDS is multi-threaded!



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