[
https://issues.apache.org/jira/browse/HDFS-4616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tsz Wo (Nicholas), SZE resolved HDFS-4616.
------------------------------------------
Resolution: Fixed
Fix Version/s: Snapshot (HDFS-2802)
> Update the FilesDeleted metric while deleting file/dir in the current tree
> --------------------------------------------------------------------------
>
> Key: HDFS-4616
> URL: https://issues.apache.org/jira/browse/HDFS-4616
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: namenode
> Reporter: Jing Zhao
> Assignee: Jing Zhao
> Priority: Minor
> Fix For: Snapshot (HDFS-2802)
>
> Attachments: HDFS-4616.001.patch
>
>
> Currently in INode#cleanSubtree(...) we only calculate the
> namespace/diskspace change when deleting snapshots. We also need to compute
> the space change when deleting files/directories in the current tree so as to
> update the FilesDeleted metric. This can fix the failing testcase
> TestNameNodeMetrics.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira