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 F30D6200BF1 for ; Tue, 3 Jan 2017 21:30:59 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id F1973160B46; Tue, 3 Jan 2017 20:30:59 +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 48F45160B20 for ; Tue, 3 Jan 2017 21:30:59 +0100 (CET) Received: (qmail 11921 invoked by uid 500); 3 Jan 2017 20:30:58 -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 11898 invoked by uid 99); 3 Jan 2017 20:30:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jan 2017 20:30:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 66EE92C0453 for ; Tue, 3 Jan 2017 20:30:58 +0000 (UTC) Date: Tue, 3 Jan 2017 20:30:58 +0000 (UTC) From: "Sergey Shelukhin (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (HIVE-15441) Provide a config to timeout long compiling queries MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 03 Jan 2017 20:31:00 -0000 [ https://issues.apache.org/jira/browse/HIVE-15441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15796098#comment-15796098 ] Sergey Shelukhin edited comment on HIVE-15441 at 1/3/17 8:30 PM: ----------------------------------------------------------------- I think the only way to achieve this would be to add interrupt checks on case by case basis (e.g. during partition fetching, and in some intermediate points during compilation). Explicit checks would also allow for a better error message. Talking to remote metastore or metastore DB should be blocking, right? So at least the network call will be interrupted, and hopefully won't just lead to retry, undecipherable errors or some other such nonsense typical of the Hive exception handing :) was (Author: sershe): I think the only way to achieve this would be to add interrupt checks on case by case basis. Talking to remote metastore or metastore DB should be blocking, right? So at least the network call will be interrupted, and hopefully won't just lead to retry, undecipherable errors or some other such nonsense typical of the Hive exception handing :) > Provide a config to timeout long compiling queries > -------------------------------------------------- > > Key: HIVE-15441 > URL: https://issues.apache.org/jira/browse/HIVE-15441 > Project: Hive > Issue Type: Improvement > Components: Query Planning > Reporter: Chao Sun > Assignee: Chao Sun > Attachments: HIVE-15441.1.patch > > > Sometimes Hive users have long compiling queries which may need to scan thousands or even more partitions (perhaps by accident). The compilation process may take a very long time, especially in {{getInputSummary}} where it need to make NN calls to get info about each input path. > This is bad because it may block many other queries. Parallel compilation may be useful but still {{getInputSummary}} has a global lock. In this case, it makes sense to provide Hive admin with a config to put a timeout limit for compilation, so that these "bad" queries can be blocked. > Note https://issues.apache.org/jira/browse/HIVE-12431 also tries to address similar issue. However it cancels those queries that are waiting for the compile lock, which I think is not so useful for our case since the *query under compile is the one to be blamed.* -- This message was sent by Atlassian JIRA (v6.3.4#6332)