Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1A5B7108A8 for ; Fri, 23 May 2014 05:50:03 +0000 (UTC) Received: (qmail 99125 invoked by uid 500); 23 May 2014 05:50:01 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 98820 invoked by uid 500); 23 May 2014 05:50:01 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 98729 invoked by uid 500); 23 May 2014 05:50:01 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 98726 invoked by uid 99); 23 May 2014 05:50:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 May 2014 05:50:01 +0000 Date: Fri, 23 May 2014 05:50:01 +0000 (UTC) From: "Swarnim Kulkarni (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-7109) Resource leak in HBaseStorageHandler 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/HIVE-7109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14006836#comment-14006836 ] Swarnim Kulkarni commented on HIVE-7109: ---------------------------------------- This is now available for review. > Resource leak in HBaseStorageHandler > ------------------------------------ > > Key: HIVE-7109 > URL: https://issues.apache.org/jira/browse/HIVE-7109 > Project: Hive > Issue Type: Bug > Components: HBase Handler > Affects Versions: 0.13.0 > Reporter: Swarnim Kulkarni > Assignee: Swarnim Kulkarni > Attachments: HIVE-7109.1.patch.txt > > > The "preCreateTable" method in the HBaseStorageHandler checks that the HBase table is still online by creating a new instance of HTable > {code} > // ensure the table is online > new HTable(hbaseConf, tableDesc.getName()); > {code} > However this instance is never closed. So if this test succeeds, we would have a resource leak in the code. -- This message was sent by Atlassian JIRA (v6.2#6252)