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 13C0910E75 for ; Fri, 6 Sep 2013 18:35:56 +0000 (UTC) Received: (qmail 95836 invoked by uid 500); 6 Sep 2013 18:35:55 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 95806 invoked by uid 500); 6 Sep 2013 18:35:55 -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 95789 invoked by uid 99); 6 Sep 2013 18:35:55 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Sep 2013 18:35:55 +0000 Date: Fri, 6 Sep 2013 18:35:55 +0000 (UTC) From: "Jason Lowe (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-9912) globStatus of a symlink to a directory does not report symlink as a directory 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/HADOOP-9912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13760496#comment-13760496 ] Jason Lowe commented on HADOOP-9912: ------------------------------------ bq. There may be an occasional program that needs a tiny change to be compatible with symlinks. I think this is likely to be extremely rare, since getFileStatus resolves symlinks fully, and symlinks are mostly transparent to the application. For symlinks to files, I agree most programs will "just work." However for symlinks to directories, getFileStatus isn't applicable since directory walkers are going to rely on the status returned from listStatus rather than doing another getFileStatus on each of the results from listStatus. That's why Pig/MapReduce break, and I suspect many other walkers would as well. > globStatus of a symlink to a directory does not report symlink as a directory > ----------------------------------------------------------------------------- > > Key: HADOOP-9912 > URL: https://issues.apache.org/jira/browse/HADOOP-9912 > Project: Hadoop Common > Issue Type: Bug > Components: fs > Affects Versions: 2.3.0 > Reporter: Jason Lowe > Priority: Blocker > Attachments: HADOOP-9912-testcase.patch, new-hdfs.txt, new-local.txt, old-hdfs.txt, old-local.txt > > > globStatus for a path that is a symlink to a directory used to report the resulting FileStatus as a directory but recently this has changed. -- 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