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 EEBD710C37 for ; Mon, 21 Oct 2013 23:57:42 +0000 (UTC) Received: (qmail 14110 invoked by uid 500); 21 Oct 2013 23:57:42 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 14053 invoked by uid 500); 21 Oct 2013 23:57:42 -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 14045 invoked by uid 500); 21 Oct 2013 23:57:42 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 14042 invoked by uid 99); 21 Oct 2013 23:57:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Oct 2013 23:57:42 +0000 Date: Mon, 21 Oct 2013 23:57:42 +0000 (UTC) From: "Thiruvel Thirumoolan (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-5268) HiveServer2 accumulates orphaned OperationHandle objects when a client fails while executing query 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-5268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13801331#comment-13801331 ] Thiruvel Thirumoolan commented on HIVE-5268: -------------------------------------------- [~vgumashta] Here it is https://reviews.apache.org/r/14809/ Let me dig in and come up with a design. > HiveServer2 accumulates orphaned OperationHandle objects when a client fails while executing query > -------------------------------------------------------------------------------------------------- > > Key: HIVE-5268 > URL: https://issues.apache.org/jira/browse/HIVE-5268 > Project: Hive > Issue Type: Bug > Components: HiveServer2 > Reporter: Vaibhav Gumashta > Assignee: Thiruvel Thirumoolan > Fix For: 0.13.0 > > Attachments: HIVE-5268_prototype.patch > > > When queries are executed against the HiveServer2 an OperationHandle object is stored in the OperationManager.handleToOperation HashMap. Currently its the duty of the JDBC client to explicitly close to cleanup the entry in the map. But if the client fails to close the statement then the OperationHandle object is never cleaned up and gets accumulated in the server. > This can potentially cause OOM on the server over time. This also can be used as a loophole by a malicious client to bring down the Hive server. -- This message was sent by Atlassian JIRA (v6.1#6144)