hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsz Wo (Nicholas), SZE (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-5211) Race condition between DistributedFileSystem#close and FileSystem#close can cause return of a closed DistributedFileSystem instance from the FileSystem cache.
Date Mon, 16 Sep 2013 23:20:54 GMT

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

Tsz Wo (Nicholas), SZE commented on HDFS-5211:
----------------------------------------------

Should we remove super.processDeleteOnExit()?  FileSystem.close() already has it.
                
> Race condition between DistributedFileSystem#close and FileSystem#close can cause return
of a closed DistributedFileSystem instance from the FileSystem cache.
> --------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-5211
>                 URL: https://issues.apache.org/jira/browse/HDFS-5211
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs-client
>    Affects Versions: 1.2.1
>            Reporter: Chris Nauroth
>            Assignee: Chris Nauroth
>         Attachments: HDFS-5211.1.patch
>
>
> {{DistributedFileSystem#close}} closes the underlying {{DFSClient}} before the superclass
call to {{FileSystem#close}}, which removes the instance from the cache.  This leaves a small
window during which another thread can call {{FileSystem#get}} and receive the closed instance
from the cache.

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

Mime
View raw message