hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rekha Joshi (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-9355) HBaseTestingUtility#cleanupDataTestDirOnTestFS() doesn't close the FileSystem
Date Tue, 04 Mar 2014 12:22:22 GMT

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

Rekha Joshi updated HBASE-9355:
-------------------------------

    Affects Version/s: 0.92.2
               Status: Patch Available  (was: Open)

Attached patch.
Think the configuration parameter - fs.automatic.close set to true seems better, rather than
the boilerplate.What do you think?

> HBaseTestingUtility#cleanupDataTestDirOnTestFS() doesn't close the FileSystem
> -----------------------------------------------------------------------------
>
>                 Key: HBASE-9355
>                 URL: https://issues.apache.org/jira/browse/HBASE-9355
>             Project: HBase
>          Issue Type: Test
>    Affects Versions: 0.92.2
>            Reporter: Ted Yu
>            Priority: Minor
>         Attachments: HBASE-9355.1.patch
>
>
> Here is related code:
> {code}
>   public boolean cleanupDataTestDirOnTestFS() throws IOException {
>     boolean ret = getTestFileSystem().delete(dataTestDirOnTestFS, true);
>     if (ret)
>       dataTestDirOnTestFS = null;
>     return ret;
>   }
> {code}
> The FileSystem returned by getTestFileSystem() is not closed.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message