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 23F4C1170A for ; Thu, 10 Jul 2014 04:37:07 +0000 (UTC) Received: (qmail 22525 invoked by uid 500); 10 Jul 2014 04:37:06 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 22453 invoked by uid 500); 10 Jul 2014 04:37:06 -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 22431 invoked by uid 500); 10 Jul 2014 04:37:06 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 22394 invoked by uid 99); 10 Jul 2014 04:37:06 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jul 2014 04:37:06 +0000 Date: Thu, 10 Jul 2014 04:37:06 +0000 (UTC) From: "Szehon Ho (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-7353) HiveServer2 using embedded MetaStore leaks JDOPersistanceManager 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-7353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14057117#comment-14057117 ] Szehon Ho commented on HIVE-7353: --------------------------------- Looks like a bad leak we should fix. I put some comment and question on the rb, thanks. > HiveServer2 using embedded MetaStore leaks JDOPersistanceManager > ---------------------------------------------------------------- > > Key: HIVE-7353 > URL: https://issues.apache.org/jira/browse/HIVE-7353 > Project: Hive > Issue Type: Bug > Components: HiveServer2 > Affects Versions: 0.13.0 > Reporter: Vaibhav Gumashta > Assignee: Vaibhav Gumashta > Fix For: 0.14.0 > > Attachments: HIVE-7353.1.patch > > > While using embedded metastore, while creating background threads to run async operations, HiveServer2 ends up creating new instances of JDOPersistanceManager rather than using the one from the foreground (handler) thread. Since JDOPersistanceManagerFactory caches JDOPersistanceManager instances, they are never GCed. -- This message was sent by Atlassian JIRA (v6.2#6252)