manika137 commented on code in PR #8043:
URL: https://github.com/apache/hadoop/pull/8043#discussion_r2470589786
##########
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsRestOperation.java:
##########
@@ -531,6 +544,12 @@ private boolean executeHttpOperation(final int retryCount,
if (shouldUpdateCSTMetrics(statusCode) && !wasKnownExceptionThrown) {
intercept.updateMetrics(operationType, httpOperation);
}
+
+ // Update Tail Latency Tracker only for successful requests.
+ if (tailLatencyTracker != null && statusCode <
HttpURLConnection.HTTP_MULT_CHOICE) {
+ tailLatencyTracker.updateLatency(operationType,
Review Comment:
can 2 threads call updateLatency() for the same operation type
simultaneously and create histograms?
--
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]