Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 38A1210E19 for ; Tue, 4 Mar 2014 12:22:26 +0000 (UTC) Received: (qmail 3607 invoked by uid 500); 4 Mar 2014 12:22:24 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 3461 invoked by uid 500); 4 Mar 2014 12:22:22 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 3438 invoked by uid 99); 4 Mar 2014 12:22:22 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Mar 2014 12:22:22 +0000 Date: Tue, 4 Mar 2014 12:22:22 +0000 (UTC) From: "Rekha Joshi (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-9355) HBaseTestingUtility#cleanupDataTestDirOnTestFS() doesn't close the FileSystem MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)