hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andras Bokor (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HADOOP-10792) Add FileSystem#closeIfNotReferred method
Date Thu, 18 May 2017 12:33:04 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-10792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Andras Bokor resolved HADOOP-10792.
    Resolution: Won't Fix

> Add FileSystem#closeIfNotReferred method
> ----------------------------------------
>                 Key: HADOOP-10792
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10792
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: fs
>            Reporter: Kousuke Saruta
> FileSystem#close closes FileSystem even if the same instance of FileSystem is referred
by someone.
> For instance, a library using FileSystem calls FileSystem.get, and a program using the
library calls FileSystem.get, both of instances of FileSystem is same. 
> When the library and the program is implemented as different threads and one calls FileSystem.close,
another fails most of operations of FileSystem.
> So, we need the method like cloesIfNotReferred, which closes FileSystem only if a instance
of FileSystem is not referred by anyone.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org

View raw message