Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 45099 invoked from network); 16 Mar 2009 20:20:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Mar 2009 20:20:14 -0000 Received: (qmail 36075 invoked by uid 500); 16 Mar 2009 20:20:12 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 35852 invoked by uid 500); 16 Mar 2009 20:20: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 35841 invoked by uid 99); 16 Mar 2009 20:20:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Mar 2009 13:20: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, 16 Mar 2009 20:20:10 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6F011234C004 for ; Mon, 16 Mar 2009 13:19:50 -0700 (PDT) Message-ID: <708422050.1237234790440.JavaMail.jira@brutus> Date: Mon, 16 Mar 2009 13:19:50 -0700 (PDT) From: "Raghu Angadi (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-5492) Quota exceed exception creates file of size 0 In-Reply-To: <1253064014.1237055570652.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-5492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12682442#action_12682442 ] Raghu Angadi commented on HADOOP-5492: -------------------------------------- > Empty file of size 0 is created when QuotaExceed exception occurs while copying a file. clarification : Neither the exception nor the operation that results in the exception creates a file. The file already exists. In this case, copyFromLocal does '{{create(file); write(file, data); close(file);}}', and write() operation throws this exception. As expected, the created file exists on HDFS. How copyFromLocal deals with such failed copies (and related files) should really be part of implementation of the shell command. > Quota exceed exception creates file of size 0 > --------------------------------------------- > > Key: HADOOP-5492 > URL: https://issues.apache.org/jira/browse/HADOOP-5492 > Project: Hadoop Core > Issue Type: Bug > Components: dfs > Affects Versions: 0.18.3 > Reporter: Ravi Phulari > > Empty file of size 0 is created when QuotaExceed exception occurs while copying a file. This file is created with the same name of which file copy is tried . > I.E if operation > Hadoop fs -copyFromLocal testFile1 /testDir > Fails due to quota exceed exception then testFile1 of size 0 is created in testDir on HDFS. > Steps to verify > 1) Create testDir and apply space quota of 16kb > 2) Copy file say testFile of size greater than 16kb from local file system > 3) You should see QuotaException error > 4) testFile of size 0 is created in testDir which is not expected . -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.