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 BB521100AD for ; Mon, 14 Oct 2013 21:49:48 +0000 (UTC) Received: (qmail 54536 invoked by uid 500); 14 Oct 2013 21:49:44 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 54402 invoked by uid 500); 14 Oct 2013 21:49:44 -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 54258 invoked by uid 500); 14 Oct 2013 21:49:44 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 54246 invoked by uid 99); 14 Oct 2013 21:49:44 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Oct 2013 21:49:44 +0000 Date: Mon, 14 Oct 2013 21:49:44 +0000 (UTC) From: "Vaibhav Gumashta (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-5229) Better thread management for HiveServer2 async threads 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-5229?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vaibhav Gumashta updated HIVE-5229: ----------------------------------- Affects Version/s: 0.13.0 0.12.0 > Better thread management for HiveServer2 async threads > ------------------------------------------------------ > > Key: HIVE-5229 > URL: https://issues.apache.org/jira/browse/HIVE-5229 > Project: Hive > Issue Type: Improvement > Components: HiveServer2 > Affects Versions: 0.12.0, 0.13.0 > Reporter: Vaibhav Gumashta > Assignee: Vaibhav Gumashta > Fix For: 0.13.0 > > > [HIVE-4617|https://issues.apache.org/jira/browse/HIVE-4617] provides support for async execution in HS2. The async (background) thread pool currently creates N threads (server config), which are alive all the time. If all the threads in the pool are busy, a new request is added to a blocking queue. However, we can improve the strategy by not having all the async (background) threads alive when there are no corresponding requests. The async threads should die after a certain timeout if there are no new requests to handle. -- This message was sent by Atlassian JIRA (v6.1#6144)