ashishkumar50 commented on code in PR #7377:
URL: https://github.com/apache/ozone/pull/7377#discussion_r1843173096


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/key/OMDirectoriesPurgeRequestWithFSO.java:
##########
@@ -168,7 +175,16 @@ public OMClientResponse 
validateAndUpdateCache(OzoneManager ozoneManager, TermIn
             volBucketInfoMap.putIfAbsent(volBucketPair, omBucketInfo);
           }
         }
+        deletingServiceMetrics.incrNumSubKeysPurged(numSubFilesDeleted);
+        
deletingServiceMetrics.setNumSubKeysPurgedInLatestRequest(numSubFilesDeleted);
+        if (path.hasDeletedDir()) {
+          deletingServiceMetrics.incrNumDirPurged(1);
+          deletingServiceMetrics.setNumDirPurgedInLatestRequest(1);

Review Comment:
   If there are multiple paths in request, this will just set 1 or 0..Either 
you can remove `NumDirPurgedInLatestRequest` metrics or do it after the for 
loop and set count correctly.



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