You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Todd Lipcon (JIRA)" <ji...@apache.org> on 2009/12/27 21:36:29 UTC

[jira] Commented: (HADOOP-6378) Broken symlinks in directory break RawLocalFileSystem.listStatus

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

Todd Lipcon commented on HADOOP-6378:
-------------------------------------

This is slightly tricky to resolve. In listStatus, we can catch FileNotFoundException after calling getFileStatus. When that occurs, we have two options: (a) we just don't include that file in the listStatus results, or (b) we include that file with a FileStatus that indicates a 0 length file with 000 permissions. Unfortunately, Java <7 doesn't have any kind of lstat equivalent.

> 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.