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 DB46A200B7E for ; Tue, 6 Sep 2016 22:45:21 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D9D98160ACB; Tue, 6 Sep 2016 20:45:21 +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 2A72D160AA9 for ; Tue, 6 Sep 2016 22:45:21 +0200 (CEST) Received: (qmail 12208 invoked by uid 500); 6 Sep 2016 20:45:20 -0000 Mailing-List: contact dev-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@impala.incubator.apache.org Delivered-To: mailing list dev@impala.incubator.apache.org Received: (qmail 12191 invoked by uid 99); 6 Sep 2016 20:45:19 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2016 20:45:19 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 7010CC0361 for ; Tue, 6 Sep 2016 20:45:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-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-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id RUuYAJ2T11kb for ; Tue, 6 Sep 2016 20:45:17 +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-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 6E3835FBF8 for ; Tue, 6 Sep 2016 20:45:17 +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 u86KjGCd019284; Tue, 6 Sep 2016 20:45:16 GMT Message-Id: <201609062045.u86KjGCd019284@ip-10-146-233-104.ec2.internal> Date: Tue, 6 Sep 2016 20:45:16 +0000 From: "Marcel Kornacker (Code Review)" To: Sailesh Mukil , impala-cr@cloudera.com, dev@impala.incubator.apache.org CC: Lars Volker Reply-To: marcel@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-4053=3A_Address_follow_up_comments_for_IMPALA-3610=0A?= X-Gerrit-Change-Id: I7499558cc9d3622a9f3b68904aa5fe92a113f579 X-Gerrit-ChangeURL: X-Gerrit-Commit: 4c14b54304de9d7390d5d585254758bc061f25c8 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.2 archived-at: Tue, 06 Sep 2016 20:45:22 -0000 Marcel Kornacker has posted comments on this change. Change subject: IMPALA-4053: Address follow up comments for IMPALA-3610 ...................................................................... Patch Set 2: (9 comments) http://gerrit.cloudera.org:8080/#/c/4306/2/be/src/runtime/coordinator.cc File be/src/runtime/coordinator.cc: Line 374 what's the rationale for leaving this here? Line 264: /// it is disabled. more interesting: how is the discarded or disabled state recorded in this struct? Line 277: vector* targets() { return &targets_; } FilterTarget isn't referenced in the .h file, also move it here Line 290: /// Discards a filter as we will use it no more. A discarded filter consumes no memory. don't comment on the intention of the caller. describe the externally visible behavior of this call instead. Line 295: MemTracker* filter_mem_tracker, TPublishFilterParams* rpc_params); describe externally visible behavior and role of parameters. just looking at the signature and the comment doesn't tell me what's going on. Line 2075: remove blank line Line 2077: and this. this section of code deals with applying updates, so it's a good idea to group it Line 2082: for (FilterTarget target: *state->targets()) { const FilterTarget& since you're not updating the targets here, you can also add another accessor const vector& targets() const { return ...} Line 2090: state->AssignOutgoingFilter(params, filter_mem_tracker_.get(), rpc_params.get()); i find the control flow harder to follow than before, and the code has more special cases now. what was the reason for this change? -- To view, visit http://gerrit.cloudera.org:8080/4306 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I7499558cc9d3622a9f3b68904aa5fe92a113f579 Gerrit-PatchSet: 2 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Sailesh Mukil Gerrit-Reviewer: Lars Volker Gerrit-Reviewer: Marcel Kornacker Gerrit-HasComments: Yes