muskan1012 commented on code in PR #6321:
URL: https://github.com/apache/ozone/pull/6321#discussion_r1514260072
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/key/OMKeysDeleteRequest.java:
##########
@@ -121,13 +124,16 @@ public OMClientResponse
validateAndUpdateCache(OzoneManager ozoneManager, TermIn
.setVolumeName(volumeName).setBucketName(bucketName);
boolean deleteStatus = true;
+ long startNanos = Time.monotonicNowNanos();
try {
+ long startNanosDeleteKeysResolveBucketLatency = Time.monotonicNowNanos();
ResolvedBucket bucket =
Review Comment:
In resolveBucketLink we have Volume and Bucket as a local non-final variable
but to use captureLatencyNs we need to make them final. So without making those
variable as final we can't use them here. That's why to keep it simple I
captured it in another way, i.e. capturing start and end time.
--
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]