You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "tanvipenumudy (via GitHub)" <gi...@apache.org> on 2023/04/06 16:12:32 UTC

[GitHub] [ozone] tanvipenumudy commented on a diff in pull request #4383: HDDS-8147. Introduce latency metrics for S3 Gateway operations

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


##########
hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/BucketEndpoint.java:
##########
@@ -327,6 +352,9 @@ public Response listMultipartUploads(
       AUDIT.logReadFailure(
           buildAuditMessageForFailure(s3GAction, getAuditParameters(), ex));
       throw ex;
+    } finally {
+      getLatencyMetrics().addListMultipartUploadsLatencyNs(
+          Time.monotonicNowNanos() - start);

Review Comment:
   @adoroszlai do you recommend I revert back to the initial commit where we only capture the latency once the operation is successful?



-- 
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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org