You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Amar Kamat (JIRA)" <ji...@apache.org> on 2008/09/12 22:15:44 UTC

[jira] Created: (HADOOP-4167) RawLocalFileSystem.listStatus() should not throw FileNotFound exception if a file goes missing while the list is being computed

RawLocalFileSystem.listStatus() should not throw FileNotFound exception if a file goes missing while the list is being computed
-------------------------------------------------------------------------------------------------------------------------------

                 Key: HADOOP-4167
                 URL: https://issues.apache.org/jira/browse/HADOOP-4167
             Project: Hadoop Core
          Issue Type: Bug
          Components: dfs
            Reporter: Amar Kamat


{{RawLocalFileSystem.listStatus()}} first caches the filenames and then gets their statuses. Since there is no directory locking, other processes can delete files in between making the cached filenames invalid. Getting the filestatus of missing file results into {{FileNotFound}} exception.

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


[jira] Commented: (HADOOP-4167) RawLocalFileSystem.listStatus() should not throw FileNotFound exception if a file goes missing while the list is being computed

Posted by "Michael Bieniosek (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-4167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12651162#action_12651162 ] 

Michael Bieniosek commented on HADOOP-4167:
-------------------------------------------

This affects emacs autosave files.  When a buffer is edited, emacs automatically creates a .#filename file which returns false when java runs an exists() test.  This means that I can't list directories where I have unsaved emacs buffers open.

> RawLocalFileSystem.listStatus() should not throw FileNotFound exception if a file goes missing while the list is being computed
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-4167
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4167
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: dfs
>            Reporter: Amar Kamat
>
> {{RawLocalFileSystem.listStatus()}} first caches the filenames and then gets their statuses. Since there is no directory locking, other processes can delete files in between making the cached filenames invalid. Getting the filestatus of missing file results into {{FileNotFound}} exception.

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