Elavarasan Kathirvel created HDDS-16720:
-------------------------------------------

             Summary: Short-circuit GetBlock ops are counted in both 
numGetBlock and numLocalGetBlock
                 Key: HDDS-16720
                 URL: https://issues.apache.org/jira/browse/HDDS-16720
             Project: Apache Ozone
          Issue Type: Bug
          Components: Ozone Datanode
            Reporter: Elavarasan Kathirvel
            Assignee: Gargi Jaiswal


When Short-Circuit Read (SCR) is enabled and a co-located client reads a key 
via the domain-socket path, {{numLocalGetBlock}} correctly increments — but 
{{numGetBlock}} also increments, even though SCR did not use the remote/gRPC 
read path.

This makes {{numGetBlock}} unreliable for SCR validation and causes 
double-counting in datanode metrics.

*Expected behavior:*
 * SCR reads should increment only {{{}numLocalGetBlock{}}}. gRPC reads should 
increment only {{{}numGetBlock{}}}.

*Actual behavior:*
 * SCR reads increment both numLocalGetBlock and numGetBlock is incremented 
twice for one read.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to