duongkame commented on code in PR #6782:
URL: https://github.com/apache/ozone/pull/6782#discussion_r1635306146
##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/transport/server/ratis/ContainerStateMachine.java:
##########
@@ -884,7 +889,13 @@ private CompletableFuture<ContainerCommandResponseProto>
applyTransaction(
final CheckedSupplier<ContainerCommandResponseProto, Exception> task
= () -> {
try {
- return dispatchCommand(request, context);
+ long timeNow = Time.monotonicNowNanos();
+ long queueingDelay = timeNow - context.getStartTime();
+ metrics.recordQueueingDelay(request.getCmdType(), queueingDelay);
+ // TODO: add a counter to track number of executing
applyTransaction
+ // and queue size
+ ContainerCommandResponseProto proto = dispatchCommand(request,
context);
+ return proto;
Review Comment:
```suggestion
return dispatchCommand(request, context);
;
```
--
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]