[ http://issues.apache.org/jira/browse/HADOOP-319?page=comments#action_12417378 ]
Doug Cutting commented on HADOOP-319: ------------------------------------- FileSystem.close(String) should not be called by anything other than an implementation, so it should be protected instead of public. Alternately, one could change FileSystem.close() to call NAME_TO_FS.remove(getName()), then just add a call to super.close() in the implementations (and document that all FileSystem implementations should do this). > FileSystem "close" does not remove the closed fs from the fs map > ---------------------------------------------------------------- > > Key: HADOOP-319 > URL: http://issues.apache.org/jira/browse/HADOOP-319 > Project: Hadoop > Type: Bug > Components: fs > Versions: 0.3.2 > Reporter: Hairong Kuang > Assignee: Hairong Kuang > Fix For: 0.4.0 > Attachments: fs_close.patch, fs_close.patch > > The close methods of both DistributedFileSystem and LocalFileSystem do not > remove the closed file system from the fs map in FileSystem. As a result, a > subsequent call to FileSystem.getNamed may return the handle to the closed > file system and receive errors if perform any operation on the fs handle. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
