Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 41646 invoked from network); 10 Mar 2008 19:00:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Mar 2008 19:00:15 -0000 Received: (qmail 79110 invoked by uid 500); 10 Mar 2008 19:00:11 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 79094 invoked by uid 500); 10 Mar 2008 19:00:11 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 79085 invoked by uid 99); 10 Mar 2008 19:00:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Mar 2008 12:00:11 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Mar 2008 18:59:31 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 43BC2234C08D for ; Mon, 10 Mar 2008 11:58:46 -0700 (PDT) Message-ID: <1973369767.1205175526276.JavaMail.jira@brutus> Date: Mon, 10 Mar 2008 11:58:46 -0700 (PDT) From: "dhruba borthakur (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Updated: (HADOOP-771) Namenode should return error when trying to delete non-empty directory MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-771?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] dhruba borthakur updated HADOOP-771: ------------------------------------ Resolution: Fixed Status: Resolved (was: Patch Available) I just committed this. Thanks Mahadev. > Namenode should return error when trying to delete non-empty directory > ---------------------------------------------------------------------- > > Key: HADOOP-771 > URL: https://issues.apache.org/jira/browse/HADOOP-771 > Project: Hadoop Core > Issue Type: Improvement > Components: dfs > Affects Versions: 0.8.0 > Environment: all > Reporter: Milind Bhandarkar > Assignee: Mahadev konar > Fix For: 0.17.0 > > Attachments: Hadoop-771_2.patch, Hadoop-771_3.patch, Hadoop-771_4.patch, Hadoop-771_5.patch, Hadoop-771_6.patch, Hadoop-771_7.patch, Hadoop-771_8.patch, patch_771_1.patch > > > Currently, the namenode.delete() method allows recursive deletion of a directory. That is, even a non-empty directory could be deleted using namenode.delete(). To avoid costly programmer errors, the namenode should not remove the non-empty directories in this method. Recursively deleting directory should either be performed with listPaths() followed by a delete() for every path, or with a specific namenode method such as deleteRecursive(). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.