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 501E91024B for ; Fri, 8 Nov 2013 00:26:02 +0000 (UTC) Received: (qmail 45589 invoked by uid 500); 8 Nov 2013 00:26:01 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 45448 invoked by uid 500); 8 Nov 2013 00:26:01 -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 45436 invoked by uid 99); 8 Nov 2013 00:26:01 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Nov 2013 00:26:01 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 724CD1D3960; Fri, 8 Nov 2013 00:25:58 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============8795071142919070117==" MIME-Version: 1.0 Subject: Re: Review Request 14486: HIVE-5441: Async query execution doesn't return resultset status From: "Brock Noland" To: "Thejas Nair" , "Prasad Mujumdar" , "Vaibhav Gumashta" , "hive" , "Brock Noland" Date: Fri, 08 Nov 2013 00:25:58 -0000 Message-ID: <20131108002558.30021.26928@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Brock Noland" X-ReviewGroup: hive X-ReviewRequest-URL: https://reviews.apache.org/r/14486/ X-Sender: "Brock Noland" References: <20131107163146.30022.78168@reviews.apache.org> In-Reply-To: <20131107163146.30022.78168@reviews.apache.org> Reply-To: "Brock Noland" --===============8795071142919070117== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit > On Nov. 7, 2013, 4:31 p.m., Brock Noland wrote: > > ql/src/java/org/apache/hadoop/hive/ql/Driver.java, line 979 > > > > > > Question: what happens if compile throws an exception, like NPE or something. Does that mean the locks do not get released? > > > > If that is true then I think we should follow a follow-on jira, as it's not introduced here, to ensure the locks are released. > > Thejas Nair wrote: > The lock will be freed if an exception is thrown. That is not a problem. > > > Brock Noland wrote: > Great to hear! For my own learning purposes, could you share how exactly that will occur? I just don't see it. > > Thejas Nair wrote: > Using > sychronized(obj){ > //sync code > } > is equivalent to - > > obj.intrinsicLock.lock(); > try{ > //sync code > } > finally{ > //gets called even on exception > obj.intrinsicLock.unlock(); > } I think there maybe some kind of confusion here. I wasn't referring to the synchronized statement... I was referring to the HiveLock objects that the driver owns. - Brock ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/14486/#review28376 ----------------------------------------------------------- On Nov. 6, 2013, 11:50 p.m., Prasad Mujumdar wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/14486/ > ----------------------------------------------------------- > > (Updated Nov. 6, 2013, 11:50 p.m.) > > > Review request for hive. > > > Bugs: HIVE-5441 > https://issues.apache.org/jira/browse/HIVE-5441 > > > Repository: hive-git > > > Description > ------- > > Separate out the query compilation and execute that part synchronously. > > > Diffs > ----- > > ql/src/java/org/apache/hadoop/hive/ql/Driver.java c09ffde > service/src/java/org/apache/hive/service/cli/operation/SQLOperation.java 4ee1b74 > service/src/test/org/apache/hive/service/cli/CLIServiceTest.java cd9d99a > > Diff: https://reviews.apache.org/r/14486/diff/ > > > Testing > ------- > > Added test cases > > > Thanks, > > Prasad Mujumdar > > --===============8795071142919070117==--