hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Todd Lipcon (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-6378) Broken symlinks in directory break RawLocalFileSystem.listStatus
Date Mon, 16 Nov 2009 23:15:39 GMT

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

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

I have a broken symlink in my home dir (an emacs lock file):
{noformat}
todd@todd-laptop:~$ ls -l .#caltrain.html 
lrwxrwxrwx 1 todd todd 21 2009-04-08 19:51 .#caltrain.html -> todd@todd-laptop.6714
{noformat}

listStatus fails with the following exception (modified FsShell to actually show stack):
{noformat}
todd@todd-laptop:~/git/hadoop-common$ ./bin/hadoop fs -ls /home/todd/
java.io.FileNotFoundException: File file:/home/todd/.#caltrain.html does not exist.
        at org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:420)
        at org.apache.hadoop.fs.RawLocalFileSystem.listStatus(RawLocalFileSystem.java:311)
        at org.apache.hadoop.fs.FileSystem.listStatus(FileSystem.java:1058)
        at org.apache.hadoop.fs.FileSystem.listStatus(FileSystem.java:1083)
        at org.apache.hadoop.fs.ChecksumFileSystem.listStatus(ChecksumFileSystem.java:473)
        at org.apache.hadoop.fs.FsShell.shellListStatus(FsShell.java:1251)
        at org.apache.hadoop.fs.FsShell.ls(FsShell.java:601)
        at org.apache.hadoop.fs.FsShell.ls(FsShell.java:590)
        at org.apache.hadoop.fs.FsShell.doall(FsShell.java:1647)
        at org.apache.hadoop.fs.FsShell.run(FsShell.java:1867)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
        at org.apache.hadoop.fs.FsShell.main(FsShell.java:1973)
ls: could not get listing for 'file:/home/todd'
{noformat}

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


Mime
View raw message