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

Eli Collins commented on HADOOP-9912:
-------------------------------------

bq. While I agree that from a purity perspective that returning the link status 
is arguably correct, in practice it's likely to break a lot of code if they try 
to use symlinks which will impede the use of symlinks.

It's not just a purity perspective. While we've attempted to make symlinks 
mostly transparent to users they are not going to be completely transparent. 
For example, in HADOOP-6585 we added isFile because some clients assume !isDir 
means the file status is a file, which was a valid assumption that's now 
broken. So while we tried to avoid this, using symlinks does introduce some 
incompatibilities that other frameworks and users need to be aware of that we 
are just not going to be able to hack around.

The challenge here is that for some users auto-resolving is not the right 
behavior, and the clients can't easily undo it (you might have hopped file 
systems). In which case you want to not resolve and modify clients to be 
symlink aware. The challenge here of course is keeping new programs working on 
older systems, which is the idea behind backporting symlinks to FileSystem - 
all v2 GA APIs should support symlinks.

listStatus is going to be inconsistent across HDFS and local file system 
because the local file system doesn't really implement symlinks (just passes 
through to the underlying file system).
                
> 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