[
https://issues.apache.org/jira/browse/HDFS-781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Suresh Srinivas updated HDFS-781:
---------------------------------
Attachment: hdfs-781.rel20.patch
Attaching patch for branch 20. This patch has one difference from the trunk
version - in TestNameNodeMetrics.testFileAdd(), after deletion of the file, the
metrics "blocksTotal" is not expected to be set to 0. In 21 and trunk block
that belongs to a file is deleted immediately. In 20 this is done later on
receiving block report from the datanode.
> 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
> Attachments: hdfs-781.1.patch, hdfs-781.2.patch, hdfs-781.3.patch,
> hdfs-781.4.patch, hdfs-781.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.
-
You can reply to this email to add a comment to the issue online.