Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-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 DD416F7B0 for ; Thu, 30 May 2013 17:29:22 +0000 (UTC) Received: (qmail 49818 invoked by uid 500); 30 May 2013 17:29:22 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 49579 invoked by uid 500); 30 May 2013 17:29:22 -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 49493 invoked by uid 99); 30 May 2013 17:29:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 May 2013 17:29:20 +0000 Date: Thu, 30 May 2013 17:29:20 +0000 (UTC) From: "Brandon Li (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-4848) copyFromLocal and renaming a file to ".snapshot" should output that ".snapshot" is a reserved name 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-4848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13670513#comment-13670513 ] Brandon Li commented on HDFS-4848: ---------------------------------- I've committed the patch to trunk. Thanks, Jing and Nicholas. > copyFromLocal and renaming a file to ".snapshot" should output that ".snapshot" is a reserved name > -------------------------------------------------------------------------------------------------- > > Key: HDFS-4848 > URL: https://issues.apache.org/jira/browse/HDFS-4848 > Project: Hadoop HDFS > Issue Type: Improvement > Components: snapshots > Affects Versions: 3.0.0 > Reporter: Stephen Chu > Assignee: Jing Zhao > Priority: Minor > Labels: snapshot > Attachments: HDFS-4848.000.patch, HDFS-4848.001.patch, HDFS-4848.002.patch, HDFS-4848.002.patch > > > Might be an unlikely scenario, but if users copyFromLocal a file/dir from local to HDFS and want the file/dir to be renamed to _.snapshot_, then they'll see an Input/output error like the following: > {code} > schu-mbp:~ schu$ hdfs dfs -copyFromLocal testFile1 /tmp/.snapshot > copyFromLocal: rename `/tmp/.snapshot._COPYING_' to `/tmp/.snapshot': Input/output error > {code} > It'd be more clear if the error output was the usual _".snapshot" is a reserved name_ (this does show in the NN logs, though). -- 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