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 B906110ED0 for ; Tue, 3 Sep 2013 20:17:57 +0000 (UTC) Received: (qmail 16549 invoked by uid 500); 3 Sep 2013 20:17:54 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 16057 invoked by uid 500); 3 Sep 2013 20:17:53 -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 15632 invoked by uid 99); 3 Sep 2013 20:17:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Sep 2013 20:17:52 +0000 Date: Tue, 3 Sep 2013 20:17:51 +0000 (UTC) From: "Andrew Wang (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=13757015#comment-13757015 ] Andrew Wang commented on HADOOP-9912: ------------------------------------- I don't mind Daryn's proposal of a {{resolveLink}} flag defaulting to true for {{globStatus}} and {{listStatus}}. It's a little gross since (as Eli noted) Hadoop 2 GA APIs should all be symlink-aware by default (and we should be allowed to break compat here), but compatibility is compatibility. However, I don't want the {{isSymlink}} bit being set for a resolved {{FileStatus}}, since isSymlink/isDir/isFile should be exclusive properties. There isn't much you can do with the knowledge a FileStatus was reached through a symlink. Symlink-aware clients will just use {{resolveLink=false}} and walk it properly themselves. > 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 > > > 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