[ 
https://issues.apache.org/jira/browse/HDDS-17656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Elavarasan Kathirvel updated HDDS-17656:
----------------------------------------
    Priority: Minor  (was: Major)

> One short-circuit GetBlock increments NumOps twice
> --------------------------------------------------
>
>                 Key: HDDS-17656
>                 URL: https://issues.apache.org/jira/browse/HDDS-17656
>             Project: Apache Ozone
>          Issue Type: Bug
>            Reporter: Elavarasan Kathirvel
>            Assignee: Gargi Jaiswal
>            Priority: Minor
>              Labels: short-circuit-read
>
> A short-circuit read of one block is counted twice in the datanode total 
> operation count. The block-read counters stay correct.
> ||Counter in the datanode metrics||Expected increase for one read||Actual 
> increase||
> |Total operation count ({{{}NumOps{}}})|1|2|
> |GetBlock count ({{{}numGetBlock{}}})|1|1|
> |Local GetBlock count ({{{}numLocalGetBlock{}}})|1|1|
>  
> {*}Steps to reproduce{*}:
>  # Write a 10 MB key and get the replica on that datanode.
>  # Read {{{}NumOps{}}}, {{{}numGetBlock{}}}, and {{numLocalGetBlock}} from 
> {{{}http://<datanode>:9882/jmx?qry=Hadoop:service=HddsDatanode,name=StorageContainerMetrics{}}}.
>  # Read the key with {{{}ozone sh key get <volume>/<bucket>/<key> 
> /tmp/out{}}}.
>  # Read the same three counters again.
> Expected: All three counters increase by 1.
> Actual: {{NumOps}} increases by 2. {{numGetBlock}} and {{numLocalGetBlock}} 
> increase by 1.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

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

Reply via email to