Gargi-jais11 opened a new pull request, #11920:
URL: https://github.com/apache/ozone/pull/11920

   ## What changes were proposed in this pull request?
   Short-circuit **GetBlock** over the datanode domain socket was counted twice 
in `StorageContainerMetrics.NumOps`. `numGetBlock` and `numLocalGetBlock` were 
correct.
   
   **Receiver** calls i`ncContainerLocalOpsMetrics`, and **HddsDispatcher** 
calls `incContainerOpsMetrics` for the same request. Both methods incremented 
NumOps. The local helper now only updates `numLocalGetBlock`. The dispatcher 
remains the single place that increments the total and numGetBlock.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-17656
   
   ## How was this patch tested?
   
   Added `testShortCircuitGetBlockIncrementsNumOpsOnce`.
   


-- 
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]

Reply via email to