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

Eli Collins commented on HADOOP-6378:
-------------------------------------

I think we should do option (a) plus log a warning, I don't see why users would 
want us to fake up a FileStatus representing the link unless they could 
explicitly ask about the link itself (which they can't because FileContext 
doesn't have an lstat equivalent).

fwiw in the symlink patch getFileStatus on a dangling link yields a FNF 
exception (to maintain compatibility) while _getFileLinkStatus_ yields a 
FileStatus representing the dangling link (see testDanglingLink in 
TestLocalFsLink.java for the particular FileStatus field values).

> Broken symlinks in directory break RawLocalFileSystem.listStatus
> ----------------------------------------------------------------
>
>                 Key: HADOOP-6378
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6378
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.20.0, 0.21.0, 0.22.0
>            Reporter: Todd Lipcon
>
> I have a broken unix symlink in my home directory. listStatus on that 
> directory fails with a FileNotFoundException, which is unexpected.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to