[
https://issues.apache.org/jira/browse/HDFS-781?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12997738#comment-12997738
]
sravankorumilli commented on HDFS-781:
--------------------------------------
There is a possibility that if the condition if (!it.hasNext()) is met in the
method invalidateWorkForOneNode()
We are reducing the pendingDeletionBlocksCount twice
1.first time in the method removeFromInvalidates(firstNodeId);
2.second time as per the patch pendingDeletionBlocksCount -=
blocksToInvalidate.size()
> Metrics PendingDeletionBlocks is not decremented
> ------------------------------------------------
>
> Key: HDFS-781
> URL: https://issues.apache.org/jira/browse/HDFS-781
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: name-node
> Affects Versions: 0.20.2, 0.21.0, 0.22.0
> Reporter: Suresh Srinivas
> Assignee: Suresh Srinivas
> Priority: Blocker
> Fix For: 0.20.2, 0.21.0
>
> Attachments: hdfs-781.1.patch, hdfs-781.2.patch, hdfs-781.3.patch,
> hdfs-781.4.patch, hdfs-781.patch, hdfs-781.rel20.1.patch, hdfs-781.rel20.patch
>
>
> PendingDeletionBlocks is not decremented decremented when blocks pending
> deletion in {{BlockManager.recentInvalidateSets}} are sent to datanode for
> deletion. This results in invalid value in the metrics.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira