Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C62A4200CB0 for ; Fri, 9 Jun 2017 03:12:32 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C3AE7160BE7; Fri, 9 Jun 2017 01:12:32 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 13D4B160BD5 for ; Fri, 9 Jun 2017 03:12:31 +0200 (CEST) Received: (qmail 5143 invoked by uid 500); 9 Jun 2017 01:12:25 -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 5132 invoked by uid 99); 9 Jun 2017 01:12:25 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jun 2017 01:12:25 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 3666EC00AE; Fri, 9 Jun 2017 01:12:25 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.99 X-Spam-Level: ** X-Spam-Status: No, score=2.99 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id lXe3rZrKMXa5; Fri, 9 Jun 2017 01:12:22 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 804635F613; Fri, 9 Jun 2017 01:12:22 +0000 (UTC) Received: from reviews.apache.org (unknown [10.41.0.12]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id D7668E00A7; Fri, 9 Jun 2017 01:12:19 +0000 (UTC) Received: from reviews-vm2.apache.org (localhost [IPv6:::1]) by reviews.apache.org (ASF Mail Server at reviews-vm2.apache.org) with ESMTP id 0DA27C4031C; Fri, 9 Jun 2017 01:12:18 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============6790986094829393518==" MIME-Version: 1.0 Subject: Re: Review Request 59885: HIVE-16844: Fix Connection leak in ObjectStore when new Conf object is used From: Anthony Hsu via Review Board To: Ratandeep Ratti , Anthony Hsu , Carl Steinbach Cc: hive , Sunitha Beeram Date: Fri, 09 Jun 2017 01:12:18 -0000 Message-ID: <20170609011218.1778.94879@reviews-vm2.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Anthony Hsu X-ReviewGroup: hive X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/59885/ X-Sender: Anthony Hsu References: <20170607204523.51590.87896@reviews-vm2.apache.org> In-Reply-To: <20170607204523.51590.87896@reviews-vm2.apache.org> Reply-To: Anthony Hsu X-ReviewRequest-Repository: hive-git archived-at: Fri, 09 Jun 2017 01:12:33 -0000 --===============6790986094829393518== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit > On 六月 7, 2017, 8:45 p.m., Anthony Hsu wrote: > > metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java > > Line 302 (original), 304 (patched) > > > > > > Do we need to close the PersistenceManager as well? > > Sunitha Beeram wrote: > Good point, but the call to shutdown() on line 301 closes pm. Ah, yes, thanks for pointing that out. - Anthony ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/59885/#review177222 ----------------------------------------------------------- On 六月 7, 2017, 4:29 p.m., Sunitha Beeram wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/59885/ > ----------------------------------------------------------- > > (Updated 六月 7, 2017, 4:29 p.m.) > > > Review request for hive, Carl Steinbach, Anthony Hsu, and Ratandeep Ratti. > > > Bugs: HIVE-16844 > https://issues.apache.org/jira/browse/HIVE-16844 > > > Repository: hive-git > > > Description > ------- > > HIVE-16844: Fix Connection leak in ObjectStore when new Conf object is used > > > Diffs > ----- > > metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java 4676e15942d72b0db56bedf0ff30aa60964c28d8 > > > Diff: https://reviews.apache.org/r/59885/diff/1/ > > > Testing > ------- > > Can't provide unit tests to test the functionality, but problem is reproducible and one way to simulate it is by setting pmf=null in ObjectStore::setConf - you will notice leaked connections. With the fix the same does not happen. > > > Thanks, > > Sunitha Beeram > > --===============6790986094829393518==--