[
https://issues.apache.org/jira/browse/HDFS-4616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13609354#comment-13609354
]
Tsz Wo (Nicholas), SZE commented on HDFS-4616:
----------------------------------------------
I have committed this. Thanks, Jing!
> 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