Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0D12ACBC6 for ; Sun, 14 Jul 2013 12:46:54 +0000 (UTC) Received: (qmail 23767 invoked by uid 500); 14 Jul 2013 12:46:53 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 23526 invoked by uid 500); 14 Jul 2013 12:46:52 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 23518 invoked by uid 99); 14 Jul 2013 12:46:50 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Jul 2013 12:46:50 +0000 Date: Sun, 14 Jul 2013 12:46:50 +0000 (UTC) From: "Harsh J (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-7478) 0-byte files retained in the dfs while the FSshell -put is unsuccessful MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-7478?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Harsh J updated HADOOP-7478: ---------------------------- Resolution: Cannot Reproduce Status: Resolved (was: Patch Available) No longer an issue on trunk after the shell changes. {code} $ hadoop fs -put /etc/foo foo =E2=80=A6 13/07/14 05:40:44 ERROR hdfs.DFSClient: Failed to close file /user/test/foo= ._COPYING_ org.apache.hadoop.ipc.RemoteException(java.io.IOException): File /user/test= /foo._COPYING_ could only be replicated to 0 nodes instead of minReplicatio= n (=3D1). There are 2 datanode(s) running and 2 node(s) are excluded in th= is operation. =E2=80=A6 $ hadoop fs -ls /user/test/foo._COPYING_ ls: `/user/test/foo._COPYING_': No such file or directory $ hadoop fs -ls /user/test/foo ls: `/user/test/foo': No such file or directory {code} =20 > 0-byte files retained in the dfs while the FSshell -put is unsuccessful > ----------------------------------------------------------------------- > > Key: HADOOP-7478 > URL: https://issues.apache.org/jira/browse/HADOOP-7478 > Project: Hadoop Common > Issue Type: Bug > Components: fs > Affects Versions: 0.23.0 > Reporter: XieXianshan > Assignee: XieXianshan > Priority: Trivial > Attachments: HADOOP-7478.patch > > > The process of putting file into dfs is approximately as follows: > 1) create a file in the dfs > 2) copy from one stream to the file > But the problem is that the file is still retained in the dfs when the pr= ocess 2) is terminated abnormally with unexpected exceptions,such as there = is no DataNode alive. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira