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 A9837200D37 for ; Thu, 9 Nov 2017 20:06:14 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A7EB2160BEF; Thu, 9 Nov 2017 19:06:14 +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 ED7AF1609C8 for ; Thu, 9 Nov 2017 20:06:13 +0100 (CET) Received: (qmail 69509 invoked by uid 500); 9 Nov 2017 19:06:13 -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 69494 invoked by uid 99); 9 Nov 2017 19:06:12 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Nov 2017 19:06:12 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 0D1631A3E68 for ; Thu, 9 Nov 2017 19:06:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.363 X-Spam-Level: ** X-Spam-Status: No, score=2.363 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RDNS_DYNAMIC=0.363, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id JJPfcdwi5MxQ for ; Thu, 9 Nov 2017 19:06:05 +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 714A1615D1 for ; Thu, 9 Nov 2017 18:59:01 +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 vA9IwxeZ007342; Thu, 9 Nov 2017 18:58:59 GMT Message-Id: <201711091858.vA9IwxeZ007342@ip-10-146-233-104.ec2.internal> X-Gerrit-PatchSet: 7 Date: Thu, 9 Nov 2017 18:58:59 +0000 From: "Dan Hecht (Code Review)" To: Tim Armstrong , impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Michael Ho , Tianyi Wang X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-6121=3A_remove_I/O_mgr_request_context_cache=0A?= X-Gerrit-Change-Id: I91414eceaa4938fccd74686fe6bebede6ef36108 X-Gerrit-Change-Number: 8408 X-Gerrit-ChangeURL: X-Gerrit-Commit: 23bcc4f06e1a72ccafd385ed23d64386be54f838 In-Reply-To: References: X-Gerrit-Comment-Date: Thu, 9 Nov 2017 18:58:59 +0000 Reply-To: dhecht@cloudera.com, impala-cr@cloudera.com, twang@cloudera.com, marcelk@gmail.com, tarmstrong@cloudera.com, kwho@cloudera.com, reviews@impala.incubator.apache.org MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.14.2 Content-Type: multipart/alternative; boundary="i5hCzUsbV9M="; charset=UTF-8 archived-at: Thu, 09 Nov 2017 19:06:14 -0000 --i5hCzUsbV9M= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Dan Hecht has posted comments on this change=2E ( http://gerrit=2Ecloudera= =2Eorg:8080/8408 ) Change subject: IMPALA-6121: remove I/O mgr request con= text cache =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E= =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E= =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E = Patch Set 7: (4 comments) http://gerrit=2Ecloudera=2Eorg:8080/#/c/8408/7/= be/src/runtime/disk-io-mgr-reader-context=2Eh File be/src/runtime/disk-io-m= gr-reader-context=2Eh: http://gerrit=2Ecloudera=2Eorg:8080/#/c/8408/7/be/s= rc/runtime/disk-io-mgr-reader-context=2Eh@25 PS7, Line 25: /// Internal per= request-context state=2E This object maintains a lot of state that is so n= o one should include this file except for disk io mgr, is that right? i=2Ee= =2E this class is opaque to everyone else? I think that's less obvious now= that it's not in an -internal=2Eh header=2E http://gerrit=2Ecloudera=2Eo= rg:8080/#/c/8408/7/be/src/runtime/disk-io-mgr-reader-context=2Ecc File be/s= rc/runtime/disk-io-mgr-reader-context=2Ecc: http://gerrit=2Ecloudera=2Eorg= :8080/#/c/8408/7/be/src/runtime/disk-io-mgr-reader-context=2Ecc@108 PS7, Li= ne 108: state_ =3D Inactive; why is it that Cancel() has to do so much mo= re work than this, when this supposedly does a Cancel in addition to markin= g it inactive? Is this really a different kind of cancel? http://gerrit= =2Ecloudera=2Eorg:8080/#/c/8408/7/be/src/runtime/disk-io-mgr=2Eh File be/sr= c/runtime/disk-io-mgr=2Eh: http://gerrit=2Ecloudera=2Eorg:8080/#/c/8408/7/= be/src/runtime/disk-io-mgr=2Eh@654 PS7, Line 654: std::unique_ptr RegisterContext(MemTracker* reader_mem_tracker); I'm not rea= lly sure what it means to "register" a context=2E Should this just be Creat= e()? (And I guess we have these next three methods to keep the context opa= que outside of disk-io-mgr, is that right?) http://gerrit=2Ecloudera=2Eor= g:8080/#/c/8408/7/be/src/runtime/disk-io-mgr=2Eh@662 PS7, Line 662: void = UnregisterContext(DiskIoRequestContext* context); > I don't feel strongly= =2E I think your argument has merit but destroying the d Yeah, except that = the statement "context cannot be used after this call" is what contradicts = the control structure lifetime being tied to QueryState=2E I'm fine with l= eaving it around=2E But, what does it mean to "unregister" the context? Th= e whole register/unregister terminology seems confusing=2E Does the lifecyc= le of these things mirror the lifecycle that we're moving toward and does i= t make sense to use consistent terminology? -- To view, visit http://ge= rrit=2Ecloudera=2Eorg:8080/8408 To unsubscribe, visit http://gerrit=2Ecloud= era=2Eorg:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master G= errit-MessageType: comment Gerrit-Change-Id: I91414eceaa4938fccd74686fe6beb= ede6ef36108 Gerrit-Change-Number: 8408 Gerrit-PatchSet: 7 Gerrit-Owner: Tim= Armstrong Gerrit-Reviewer: Dan Hecht Gerrit-Reviewer: Michael Ho Gerrit-Rev= iewer: Tianyi Wang Gerrit-Reviewer: Tim Armstrong Gerrit-Comment-Date: Thu, 09 Nov 2017 18:58:59 +0= 000 Gerrit-HasComments: Yes --i5hCzUsbV9M=--