tanvipenumudy commented on code in PR #6321:
URL: https://github.com/apache/ozone/pull/6321#discussion_r1673785258


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/key/OMKeyDeleteRequest.java:
##########
@@ -98,10 +100,10 @@ public OMRequest preExecute(OzoneManager ozoneManager) 
throws IOException {
 
   protected KeyArgs resolveBucketAndCheckAcls(OzoneManager ozoneManager,
       KeyArgs.Builder newKeyArgs) throws IOException {
-    return resolveBucketAndCheckKeyAcls(newKeyArgs.build(), ozoneManager,
-        ACLType.DELETE);
+    return captureLatencyNs(
+          
ozoneManager.getPerfMetrics().getDeleteKeyResolveBucketAndAclCheckLatencyNs(),
+          () -> resolveBucketAndCheckKeyAcls(newKeyArgs.build(), ozoneManager, 
ACLType.DELETE));
   }
-

Review Comment:
   Minor nit: Unintended line change



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