[
https://issues.apache.org/jira/browse/HADOOP-9912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13760282#comment-13760282
]
Kihwal Lee commented on HADOOP-9912:
------------------------------------
bq. on HDFS, the behavior of listStatus has always been not resolving symlinks.
Ever since Eli added the feature a few years ago. It has never dereferenced.
Perhaps a bit of context might help. Yes, that was the design decision made in
HDFS-245 and HADOOP-6421, for accessing HDFS through *FileContext*. It was an
incompatible change and users were expected to update their code to be
symlink-aware as they migrate from FileSystem to FileContext.
The migration has been slow and we have finally decided to support symlinks in
FileSystem. A number of people worked hard to implement something equivalent to
the symlink feature in FileContext. The change was obviously semantically
incompatible.
Impact of incompatibility in FileSystem now is quite different from doing it
back in HADOOP-6421/HDFS-245 to FileContext. So, we cannot simply say this is
the right way since it is consistent with what we did years ago in a completely
different context.
Whatever decision we make about symlinks, we should not overlook the fact that
the situation is different now.
> 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