[ 
https://issues.apache.org/jira/browse/HDFS-13048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16338824#comment-16338824
 ] 

Akira Ajisaka commented on HDFS-13048:
--------------------------------------

The test case shows how the metric becomes negative. Without the fix, if a 
block is added to LowRedundancyBlocks with corrupt_blocks priority and removed 
with low_redundancy priority, the counter for corrupt_block is not decremented.

> LowRedundancyReplicatedBlocks metric can be negative
> ----------------------------------------------------
>
>                 Key: HDFS-13048
>                 URL: https://issues.apache.org/jira/browse/HDFS-13048
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: metrics
>    Affects Versions: 3.0.0
>            Reporter: Akira Ajisaka
>            Assignee: Akira Ajisaka
>            Priority: Major
>         Attachments: HDFS-13048-sample.patch, HDFS-13048.001.patch, 
> HDFS-13048.002.patch
>
>
> I'm seeing {{LowRedundancyReplicatedBlocks}} become negative. This should be 
> 0 or positive.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to