Return-Path: X-Original-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E572AF7FE for ; Wed, 20 Mar 2013 04:45:17 +0000 (UTC) Received: (qmail 76491 invoked by uid 500); 20 Mar 2013 04:45:17 -0000 Delivered-To: apmail-hadoop-hdfs-dev-archive@hadoop.apache.org Received: (qmail 76338 invoked by uid 500); 20 Mar 2013 04:45:16 -0000 Mailing-List: contact hdfs-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-dev@hadoop.apache.org Delivered-To: mailing list hdfs-dev@hadoop.apache.org Received: (qmail 76042 invoked by uid 99); 20 Mar 2013 04:45:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Mar 2013 04:45:15 +0000 Date: Wed, 20 Mar 2013 04:45:15 +0000 (UTC) From: "Jing Zhao (JIRA)" To: hdfs-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HDFS-4616) Update the FilesDeleted metric while deleting file/dir in the current tree MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Jing Zhao created HDFS-4616: ------------------------------- Summary: 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 Reporter: Jing Zhao Assignee: Jing Zhao Priority: Minor 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