Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D8B26186A9 for ; Tue, 9 Jun 2015 17:03:00 +0000 (UTC) Received: (qmail 6412 invoked by uid 500); 9 Jun 2015 17:03:00 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 6345 invoked by uid 500); 9 Jun 2015 17:03:00 -0000 Mailing-List: contact issues-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 issues@hive.apache.org Received: (qmail 6175 invoked by uid 99); 9 Jun 2015 17:03:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jun 2015 17:03:00 +0000 Date: Tue, 9 Jun 2015 17:03:00 +0000 (UTC) From: "Jimmy Xiang (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-10956) HS2 leaks HMS connections 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-10956?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jimmy Xiang updated HIVE-10956: ------------------------------- Attachment: HIVE-10956.2.patch Attached patch v2. It is also on RB: https://reviews.apache.org/r/35256/ The new patch closes the connection when the Hive session is closed. > HS2 leaks HMS connections > ------------------------- > > Key: HIVE-10956 > URL: https://issues.apache.org/jira/browse/HIVE-10956 > Project: Hive > Issue Type: Bug > Reporter: Jimmy Xiang > Assignee: Jimmy Xiang > Fix For: 1.3.0, 2.0.0 > > Attachments: HIVE-10956.1.patch, HIVE-10956.2.patch > > > HS2 uses threadlocal to cache HMS client in class Hive. When the thread is dead, the HMS client is not closed. So the connection to the HMS is leaked. -- This message was sent by Atlassian JIRA (v6.3.4#6332)