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 AD770200C87 for ; Wed, 17 May 2017 23:58:48 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id ABEA1160BBA; Wed, 17 May 2017 21:58:48 +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 F31F6160BAC for ; Wed, 17 May 2017 23:58:47 +0200 (CEST) Received: (qmail 86882 invoked by uid 500); 17 May 2017 21:58:47 -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 86871 invoked by uid 99); 17 May 2017 21:58:46 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 May 2017 21:58:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 5D009185E85; Wed, 17 May 2017 21:58:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.999 X-Spam-Level: ** X-Spam-Status: No, score=2.999 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id er3R7HryAHys; Wed, 17 May 2017 21:58:45 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id B87B65F568; Wed, 17 May 2017 21:58:44 +0000 (UTC) Received: from reviews.apache.org (unknown [10.41.0.12]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 624EFE01A8; Wed, 17 May 2017 21:58:44 +0000 (UTC) Received: from reviews-vm2.apache.org (localhost [IPv6:::1]) by reviews.apache.org (ASF Mail Server at reviews-vm2.apache.org) with ESMTP id 59A4BC40390; Wed, 17 May 2017 21:58:44 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============8188639404099720634==" MIME-Version: 1.0 Subject: Re: Review Request 59325: Cleanup of structures required when LLAP access from external clients completes From: Siddharth Seth To: Sergey Shelukhin , Jason Dere Cc: hive , Siddharth Seth Date: Wed, 17 May 2017 21:58:44 -0000 Message-ID: <20170517215844.55001.46502@reviews-vm2.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Siddharth Seth X-ReviewGroup: hive X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/59325/ X-Sender: Siddharth Seth References: <20170517020251.61684.14018@reviews-vm2.apache.org> In-Reply-To: <20170517020251.61684.14018@reviews-vm2.apache.org> Reply-To: Siddharth Seth X-ReviewRequest-Repository: hive-git archived-at: Wed, 17 May 2017 21:58:48 -0000 --===============8188639404099720634== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On May 17, 2017, 2:02 a.m., Sergey Shelukhin wrote: > > llap-server/src/java/org/apache/hadoop/hive/llap/daemon/impl/QueryTracker.java > > Lines 464 (patched) > > > > > > will there be a callable created after every single fragment that finishes for the query with no other fragments running? Perhaps one callable should wait for the entire query and the fragments coming it should just push back the timestamp at which the query would time out and be cleaned? > > > > also what if readLock blocks all cleanup attempts? > > Siddharth Seth wrote: > In terms of the callable - was trying to keep it simple. Can try making use of a single callable. > > Why would a readLock block all cleanup attempts? If I'm not mistaken, a readLock means something else is running - which would cause another cleanup to be scheduled. Haven't made the Callable change here. Made small improvements to when cleanup runs (it will not create a new lock). Will file a follow up for the single Callable. Think it adds a bit of code since we can't have a thread wait, so it'll really be a one callable optionally schedules the next callable etc. - Siddharth ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/59325/#review175184 ----------------------------------------------------------- On May 17, 2017, 9:56 p.m., Siddharth Seth wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/59325/ > ----------------------------------------------------------- > > (Updated May 17, 2017, 9:56 p.m.) > > > Review request for hive, Jason Dere and Sergey Shelukhin. > > > Bugs: HIVE-14052 > https://issues.apache.org/jira/browse/HIVE-14052 > > > Repository: hive-git > > > Description > ------- > > Cleanup of structures required when LLAP access from external clients completes > > > Diffs > ----- > > llap-common/src/gen/protobuf/gen-java/org/apache/hadoop/hive/llap/daemon/rpc/LlapDaemonProtocolProtos.java ece31ed > llap-common/src/protobuf/LlapDaemonProtocol.proto 3a3a2b8 > llap-server/src/java/org/apache/hadoop/hive/llap/daemon/impl/QueryInfo.java ce2f457 > llap-server/src/java/org/apache/hadoop/hive/llap/daemon/impl/QueryTracker.java daeb555 > llap-server/src/test/org/apache/hadoop/hive/llap/daemon/impl/TaskExecutorTestHelpers.java 27c426c > ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFGetSplits.java 868eec7 > > > Diff: https://reviews.apache.org/r/59325/diff/2/ > > > Testing > ------- > > > Thanks, > > Siddharth Seth > > --===============8188639404099720634==--