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

Daryn Sharp commented on HADOOP-9912:
-------------------------------------

Jason makes an excellent point about how the crux of the problem is 
{{listStatus}} combines both {{readdir}} + {{stat}}.

There may be another alternative to a new API call.  I haven't thought it 
through, but perhaps a middle-ground to address compatibility and to better 
handle symlinks is to return the resolved link's file status but to set the 
{{isLink}} bit in the status.  This allows the extremely few use cases that 
care about whether something is a symlink to call {{getFileLinkStatus}}.  It's 
an extra RPC, but probably 99% of the time the user doesn't care that something 
is a symlink.  The only "common" case is probably {{FSShell}} ls.
                
> 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