Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 82328 invoked from network); 12 Oct 2009 21:42:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Oct 2009 21:42:54 -0000 Received: (qmail 30213 invoked by uid 500); 12 Oct 2009 21:42:54 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 30142 invoked by uid 500); 12 Oct 2009 21:42:53 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 30130 invoked by uid 99); 12 Oct 2009 21:42:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Oct 2009 21:42:53 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI 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, 12 Oct 2009 21:42:51 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 55254234C045 for ; Mon, 12 Oct 2009 14:42:31 -0700 (PDT) Message-ID: <1563231941.1255383751333.JavaMail.jira@brutus> Date: Mon, 12 Oct 2009 14:42:31 -0700 (PDT) From: "Suresh Srinivas (JIRA)" To: hdfs-issues@hadoop.apache.org Subject: [jira] Updated: (HDFS-677) Rename failure due to quota results in deletion of src directory In-Reply-To: <197667983.1254858931299.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-677?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Suresh Srinivas updated HDFS-677: --------------------------------- Attachment: hdfs-677.9.patch > will need extensive testing... Currently TestHDFSCLI, TestQuota and the new test cases added add to a lot of testcases. Let me know if you feel any thing more specific is needed. Also FSDirectory.verifyQuota() is mostly refactored code out of FSDirectory.updateCount(). > Check the value returned by getExistingPathINodes(), compare it with the number of path components. This is what current checks for {{dstInodes[dstInodes.length-1] != null}} and {{dstInodes[dstInodes.length-2] == null}} does. If you feel it is still good to add additional check for return value, I can add it. > you addChild() with inheritPermission == true. In the old code it was false. Is that intentional? That was not intentional. Thanks for catching it. Attaching new patch with incorporated comments. > Rename failure due to quota results in deletion of src directory > ---------------------------------------------------------------- > > Key: HDFS-677 > URL: https://issues.apache.org/jira/browse/HDFS-677 > Project: Hadoop HDFS > Issue Type: Bug > Components: name-node > Affects Versions: 0.20.1, 0.20.2, 0.21.0, 0.22.0 > Reporter: Suresh Srinivas > Assignee: Suresh Srinivas > Priority: Blocker > Fix For: 0.20.2, 0.21.0, 0.22.0 > > Attachments: hdfs-677.8.patch, hdfs-677.9.patch > > > Renaming src to destination where src has exceeded the quota to a dst without sufficent quota fails. During this failure, src is deleted. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.