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 9CBF4200CC1 for ; Mon, 26 Jun 2017 03:41:49 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9A9E1160BF4; Mon, 26 Jun 2017 01:41:49 +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 DF3DB160BE0 for ; Mon, 26 Jun 2017 03:41:48 +0200 (CEST) Received: (qmail 12363 invoked by uid 500); 26 Jun 2017 01:41:48 -0000 Mailing-List: contact reviews-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@impala.incubator.apache.org Received: (qmail 12352 invoked by uid 99); 26 Jun 2017 01:41:47 -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; Mon, 26 Jun 2017 01:41:47 +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 5A1B1C05E0 for ; Mon, 26 Jun 2017 01:41:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.362 X-Spam-Level: X-Spam-Status: No, score=0.362 tagged_above=-999 required=6.31 tests=[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 Ppkxz-W5riG7 for ; Mon, 26 Jun 2017 01:41:45 +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 25B6C5FB71 for ; Mon, 26 Jun 2017 01:41:45 +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 v5Q1fg2i026783; Mon, 26 Jun 2017 01:41:42 GMT Message-Id: <201706260141.v5Q1fg2i026783@ip-10-146-233-104.ec2.internal> Date: Mon, 26 Jun 2017 01:41:41 +0000 From: "Sailesh Mukil (Code Review)" To: Michael Ho , impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Juan Yu , Lars Volker , Dan Hecht , Mostafa Mokhtar , Matthew Jacobs Reply-To: sailesh@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-5558/IMPALA-5576=3A_Reopen_stale_client_connection=0A?= X-Gerrit-Change-Id: I4d722c8ad3bf0e78e89887b6cb286c69ca61b8f5 X-Gerrit-ChangeURL: X-Gerrit-Commit: 1205d13ccca4cfac4d6b17a0ed89806f91de4d19 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.12.7 archived-at: Mon, 26 Jun 2017 01:41:49 -0000 Sailesh Mukil has posted comments on this change. Change subject: IMPALA-5558/IMPALA-5576: Reopen stale client connection ...................................................................... Patch Set 10: (4 comments) Have one final question about the sleeping holding the coordinator lock. Will +1 after we come to a conclusion on that. http://gerrit.cloudera.org:8080/#/c/7284/10/be/src/runtime/coordinator-backend-state.cc File be/src/runtime/coordinator-backend-state.cc: PS10, Line 248: if (instance_stats->done_) continue; It would be good to mention this fix in the commit message too. i.e. previously we would drop some other finstances statuses if we received duplicate 'done' statuses from the same finstance(s). PS10, Line 353: SleepForMs(100); Just wondering if it's a good idea to have the coordinator thread go to sleep. It may hold up a lot of work even though it's just for 300ms, since it takes the coordinator lock_ before calling this in Coordinator::Cancel(). Is there a risk in leaving it as it was before, i.e. try to cancel without a sleep? PS10, Line 356: status_.MergeStatus(client_status); Isn't this redundant if you're adding its message as a detail below in L361 anyway? PS10, Line 365: status_.MergeStatus(rpc_status); Same here -- To view, visit http://gerrit.cloudera.org:8080/7284 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I4d722c8ad3bf0e78e89887b6cb286c69ca61b8f5 Gerrit-PatchSet: 10 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Michael Ho Gerrit-Reviewer: Dan Hecht Gerrit-Reviewer: Juan Yu Gerrit-Reviewer: Lars Volker Gerrit-Reviewer: Matthew Jacobs Gerrit-Reviewer: Michael Ho Gerrit-Reviewer: Mostafa Mokhtar Gerrit-Reviewer: Sailesh Mukil Gerrit-HasComments: Yes