duongkame commented on code in PR #6947:
URL: https://github.com/apache/ozone/pull/6947#discussion_r1680163615
##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/KeyValueHandler.java:
##########
@@ -898,6 +900,7 @@ ContainerCommandResponseProto handleWriteChunk(
blockDataProto = blockData.getProtoBufMessage();
final long numBytes = blockDataProto.getSerializedSize();
metrics.incContainerBytesStats(Type.PutBlock, numBytes);
+ metrics.incContainerOpsLatencies(Type.PutBlock,
Time.monotonicNowNanos() - startTime);
Review Comment:
No, it's counted under Type.WriteChunk because the RequestType is
WriteChunk. We want to know how much is spent on PutBlock as well.
--
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]