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 AFAC6200D52 for ; Sat, 18 Nov 2017 01:22:30 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id AE404160C0A; Sat, 18 Nov 2017 00:22:30 +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 0051D160BFB for ; Sat, 18 Nov 2017 01:22:29 +0100 (CET) Received: (qmail 89551 invoked by uid 500); 18 Nov 2017 00:22:29 -0000 Mailing-List: contact reviews-help@impala.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@impala.apache.org Received: (qmail 89540 invoked by uid 99); 18 Nov 2017 00:22:28 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Nov 2017 00:22:28 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 31417C23FA for ; Sat, 18 Nov 2017 00:22:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.562 X-Spam-Level: ** X-Spam-Status: No, score=2.562 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, KAM_MANYTO=0.2, RDNS_DYNAMIC=0.363, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id OUrx0T1vS2wX for ; Sat, 18 Nov 2017 00:22:27 +0000 (UTC) Received: from ip-10-146-233-104.ec2.internal (ec2-75-101-130-251.compute-1.amazonaws.com [75.101.130.251]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 591665FBB0 for ; Sat, 18 Nov 2017 00:22:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by ip-10-146-233-104.ec2.internal (8.14.4/8.14.4) with ESMTP id vAI0MOFM018513; Sat, 18 Nov 2017 00:22:24 GMT Message-Id: <201711180022.vAI0MOFM018513@ip-10-146-233-104.ec2.internal> X-Gerrit-PatchSet: 5 Date: Sat, 18 Nov 2017 00:22:24 +0000 From: "Gabor Kaszab (Code Review)" To: Lars Volker , Laszlo Gaal , Michael Brown , Zoltan Borok-Nagy , Philip Zeyliger , David Knupp , Attila Jeges , Tim Armstrong , Csaba Ringhofer , impala-cr@cloudera.com, reviews@impala.incubator.apache.org X-Gerrit-MessageType: newpatchset Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-1144=3A_Fix_exception_when_cancelling_query_in_Impala-shell_with_CTRL-C=0A?= X-Gerrit-Change-Id: I6cefaf1dae78baae238289816a7cb9d210fb38e2 X-Gerrit-Change-Number: 8549 X-Gerrit-ChangeURL: X-Gerrit-Commit: ff4a0dc7a800ab24df9dec255b7317eb56258b17 In-Reply-To: References: Reply-To: gaborkaszab@cloudera.com, dknupp@cloudera.com, philip@cloudera.com, reviews@impala.incubator.apache.org, mikeb@cloudera.com, impala-cr@cloudera.com, boroknagyz@cloudera.com, lv@cloudera.com, marcelk@gmail.com, tarmstrong@cloudera.com, laszlo.gaal@cloudera.com, csringhofer@cloudera.com, attilaj@cloudera.com MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.14.2 Content-Type: multipart/alternative; boundary="AY2n+IuBEcM="; charset=UTF-8 archived-at: Sat, 18 Nov 2017 00:22:30 -0000 --AY2n+IuBEcM= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello Lars Volker, Laszlo Gaal, Michael Brown, Zoltan Borok-Nagy, Philip Ze= yliger, David Knupp, Attila Jeges, Tim Armstrong, Csaba Ringhofer, I'd li= ke you to reexamine a change=2E Please visit http://gerrit=2Ecloudera= =2Eorg:8080/8549 to look at the new patch set (#5)=2E Change subject: IMP= ALA-1144: Fix exception when cancelling query in Impala-shell with CTRL-C = =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E= =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E= =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E IMPALA-1144: = Fix exception when cancelling query in Impala-shell with CTRL-C Issue1: Wh= en query is cancelled via CTRL-C while being executed in Impala-shell then = an exception is thrown from Impala backend saying 'Invalid query handle'=2E= This is because one ImpalaClient was making RPC's while another ImpalaClie= nt cancelled the query on the backend=2E As a result RPC handlers in Impala= Server try to access a ClientRequestState that had been cleared from the ba= ckend=2E The issue is confidently reproducable both in wait_to_finish and i= n fetch states of the query=2E As a solution the query cancellation is ind= icated to ImpalaClient via a bool flag=2E Once a cancellation originated ex= ception reaches Impala shell this flag is checked to decide whether to supp= ress the error or not=2E Issue2: Every time a query was cancelled a 'use d= b' command was issued automatically=2E This happened to historical reasons = but is not needed anymore (see Jira for more details)=2E Change-Id: I6cefa= f1dae78baae238289816a7cb9d210fb38e2 --- M shell/impala_client=2Epy M shell/= impala_shell=2Epy M tests/shell/test_shell_commandline=2Epy 3 files changed= , 54 insertions(+), 6 deletions(-) git pull ssh://gerrit=2Ecloudera=2Eo= rg:29418/Impala-ASF refs/changes/49/8549/5 -- To view, visit http://gerrit= =2Ecloudera=2Eorg:8080/8549 To unsubscribe, visit http://gerrit=2Ecloudera= =2Eorg:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerr= it-MessageType: newpatchset Gerrit-Change-Id: I6cefaf1dae78baae238289816a7c= b9d210fb38e2 Gerrit-Change-Number: 8549 Gerrit-PatchSet: 5 Gerrit-Owner: Ga= bor Kaszab Gerrit-Reviewer: Attila Jeges Gerrit-Reviewer: Csaba Ringhofer Gerrit-Reviewer: David Knupp Gerrit-Reviewe= r: Gabor Kaszab Gerrit-Reviewer: Lars Volker <= lv@cloudera=2Ecom> Gerrit-Reviewer: Laszlo Gaal Gerrit-Reviewer: Michael Brown Gerrit-Reviewer: = Philip Zeyliger Gerrit-Reviewer: Tim Armstrong Gerrit-Reviewer: Zoltan Borok-Nagy --AY2n+IuBEcM=--