duongnguyen0 commented on code in PR #3637:
URL: https://github.com/apache/ozone/pull/3637#discussion_r943995188
##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/impl/HddsDispatcher.java:
##########
@@ -304,10 +313,25 @@ private ContainerCommandResponseProto dispatchRequest(
audit(action, eventType, params, AuditEventStatus.FAILURE, ex);
return ContainerUtils.logAndReturnError(LOG, ex, msg);
}
+ long handlingStartTime = Time.monotonicNow();
responseProto = handler.handle(msg, container, dispatcherContext);
if (responseProto != null) {
+ long requestDurationMs = Time.monotonicNow() - startTime;
+ long handlingDurationMs = Time.monotonicNow() - handlingStartTime;
Review Comment:
That makes sense. A warning log sounds easier for operators to find out as
all of would scan the application logs.
--
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]