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 BE4E2200B7C for ; Thu, 8 Sep 2016 22:14:33 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BD0F9160AD0; Thu, 8 Sep 2016 20:14:33 +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 1A755160ABD for ; Thu, 8 Sep 2016 22:14:32 +0200 (CEST) Received: (qmail 34471 invoked by uid 500); 8 Sep 2016 20:14:32 -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 34451 invoked by uid 99); 8 Sep 2016 20:14:32 -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; Thu, 08 Sep 2016 20:14:32 +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 8EECB180533 for ; Thu, 8 Sep 2016 20:14:31 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-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 (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id MTWkxkGIodHU for ; Thu, 8 Sep 2016 20:14:29 +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 76AC15FADC for ; Thu, 8 Sep 2016 20:14:28 +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 u88KER2J008751; Thu, 8 Sep 2016 20:14:27 GMT Message-Id: <201609082014.u88KER2J008751@ip-10-146-233-104.ec2.internal> Date: Thu, 8 Sep 2016 20:14:26 +0000 From: "Lars Volker (Code Review)" To: Marcel Kornacker , impala-cr@cloudera.com, dev@impala.incubator.apache.org CC: Henry Robinson , Matthew Jacobs , Alex Behm , Dan Hecht Reply-To: lv@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-3902=3A_Scheduler_improvements_for_running_multiple_fragment_instances_on_a_single_backend=0A?= X-Gerrit-Change-Id: I240445199e22f009f4e72fdb8754eb8d77e3d680 X-Gerrit-ChangeURL: X-Gerrit-Commit: 4fef6731ca7f0677693ab6b271370d35f7c3a7af 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: Thu, 08 Sep 2016 20:14:33 -0000 Lars Volker has posted comments on this change. Change subject: IMPALA-3902: Scheduler improvements for running multiple fragment instances on a single backend ...................................................................... Patch Set 3: (23 comments) http://gerrit.cloudera.org:8080/#/c/4054/4/be/src/runtime/coordinator.cc File be/src/runtime/coordinator.cc: PS4, Line 1377: . nit trailing whitespace PS4, Line 1802: nit: remove http://gerrit.cloudera.org:8080/#/c/4054/4/be/src/runtime/coordinator.h File be/src/runtime/coordinator.h: PS4, Line 297: ng o nit: Wait() http://gerrit.cloudera.org:8080/#/c/4054/4/be/src/scheduling/query-schedule.cc File be/src/scheduling/query-schedule.cc: Line 330 For consistency you could change this to use return and a ternary expression, or change the next method to use an if-clause and ++result. Line 343 Using return and a ternary expression might be more concise. PS4, Line 346: nullptr Line 355 You could reserve additional space in fragments before this line to reduce the number of re-allocations. Line 360 reserve() before the loop? http://gerrit.cloudera.org:8080/#/c/4054/3/be/src/scheduling/query-schedule.h File be/src/scheduling/query-schedule.h: PS3, Line 281: void InitMtFragmentExecParams(); > comment? ? http://gerrit.cloudera.org:8080/#/c/4054/4/be/src/scheduling/query-schedule.h File be/src/scheduling/query-schedule.h: Line 97: std::vector instance_exec_params; any benefit from using map over unordered_map here? PS4, Line 173: nullptr Line 174: std::vector* exec_params() { return &fragment_exec_params_; } nit: trailing whitespace Line 213: RuntimeProfile* summary_profile() { return summary_profile_; } If you need non-const access, isn't it more idiomatic to return a non-const ref, especially since there's also the getter above, returning a const-ref? PS4, Line 219: nullptr http://gerrit.cloudera.org:8080/#/c/4054/4/be/src/scheduling/simple-scheduler.cc File be/src/scheduling/simple-scheduler.cc: PS4, Line 384: to& auto only for iterators PS4, Line 414: isn't this an implementation detail of the other MtComputeFragmentExecParams() method? PS4, Line 470: plan_exec_info, schedul Can we be sure that recursion depth will not be a problem here? Line 524: // TODO: implement logic for hbase and kudu nit: wrap at 90 characters Line 695: // assign instance ids you could call reserve() before this line Line 1104: for (int i = 0; i < backends.size(); ++i) { BackendConfig has been moved to an own file in asf/master, and this code has been removed. Might result in a merge conflict. http://gerrit.cloudera.org:8080/#/c/4054/4/be/src/scheduling/simple-scheduler.h File be/src/scheduling/simple-scheduler.h: PS4, Line 489: nit: whitespace, wrap at 90 characters PS4, Line 492: MtFragmentExecParams* fr Is there a way around referring to a private member of the schedule here? PS4, Line 502: Is this implementation-detail relevant for the caller? -- To view, visit http://gerrit.cloudera.org:8080/4054 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I240445199e22f009f4e72fdb8754eb8d77e3d680 Gerrit-PatchSet: 3 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Marcel Kornacker Gerrit-Reviewer: Alex Behm Gerrit-Reviewer: Dan Hecht Gerrit-Reviewer: Henry Robinson Gerrit-Reviewer: Lars Volker Gerrit-Reviewer: Marcel Kornacker Gerrit-Reviewer: Matthew Jacobs Gerrit-HasComments: Yes