ozone
ozone copied to clipboard
HDDS-10907. DataNode StorageContainerMetrics numWriteChunk is counted multiple times
What changes were proposed in this pull request?
StorageContainerMetrics.incContainerOpsMetrics() updates operation counts. It is incremented not just once for WriteChunk, because it is called by HddsDispatcher.dispatchRequest() during WRITE_DATA (by ContainerStateMachine.writeStateMachineData()) and COMMIT_DATA phase.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-10907
How was this patch tested?
Add assertion of containerMetrics in TestBlockOutputStream