hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (HBASE-9355) HBaseTestingUtility#cleanupDataTestDirOnTestFS() doesn't close the FileSystem
Date Wed, 05 Mar 2014 06:24:44 GMT

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

Ted Yu edited comment on HBASE-9355 at 3/5/14 6:23 AM:
-------------------------------------------------------

When getTestFileSystem().delete() returns true, dataTestDirOnTestFS is set to null.
Test file system should be closed in the above case.


was (Author: yuzhihong@gmail.com):
When getTestFileSystem().delete() returns true, dataTestDirOnTestFS is set to null.
dataTestDirOnTestFS should be closed in the above case.

> 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
>            Assignee: Rekha Joshi
>            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