[ 
https://issues.apache.org/jira/browse/HADOOP-9912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13754139#comment-13754139
 ] 

Jason Lowe commented on HADOOP-9912:
------------------------------------

bq. In HDFS, listStatus only transparently resolves symlinks in the input path. 
It doesn't resolve the results of the listing, and this is the correct behavior.

Isn't that going to break clients who are not symlink-aware?  That means we 
can't have a tree of files with a symlink to a directory in it.  A 
symlink-unaware tree walker client will not realize that the symlink is 
actually pointing to a directory and should be traversed since the file status 
will say it's not a directory. That's what's happening with Pig now.  Aren't 
there separate calls if one wants to know the true details of a link rather 
than what the link references?
                
> 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

Reply via email to