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 EB957200CEE for ; Mon, 7 Aug 2017 23:10:17 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EA6001628CE; Mon, 7 Aug 2017 21:10:17 +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 3E4F516292A for ; Mon, 7 Aug 2017 23:10:17 +0200 (CEST) Received: (qmail 94798 invoked by uid 500); 7 Aug 2017 21:10:16 -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 94647 invoked by uid 99); 7 Aug 2017 21:10:15 -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, 07 Aug 2017 21:10:15 +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 32C20C0279 for ; Mon, 7 Aug 2017 21:10:15 +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 tgiTZbvNOZgM for ; Mon, 7 Aug 2017 21:10:10 +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 5C3835F649 for ; Mon, 7 Aug 2017 21:10:10 +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 v77LA8w0011463; Mon, 7 Aug 2017 21:10:08 GMT Message-Id: <201708072110.v77LA8w0011463@ip-10-146-233-104.ec2.internal> Date: Mon, 7 Aug 2017 21:10:08 +0000 From: "Tim Armstrong (Code Review)" To: impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Henry Robinson , Michael Ho , Matthew Jacobs Reply-To: tarmstrong@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-5715=3A_=28mitigation_only=29_defer_destruction_of_MemTrackers=0A?= X-Gerrit-Change-Id: I205abb0076d1ffd08cb93c0f1671c8b81e7fba0f X-Gerrit-ChangeURL: X-Gerrit-Commit: 43a5bb12a4f9108602c9087a06bf16f2dd641f01 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, 07 Aug 2017 21:10:18 -0000 Tim Armstrong has posted comments on this change. Change subject: IMPALA-5715: (mitigation only) defer destruction of MemTrackers ...................................................................... Patch Set 4: (3 comments) http://gerrit.cloudera.org:8080/#/c/7492/3/be/src/runtime/mem-tracker.cc File be/src/runtime/mem-tracker.cc: PS3, Line 114: if (closed_) return; > Why this change ? Why not always have the DCHECK() below ? I don't think the DCHECK necessarily makes sense if there's a consumption metric. E.g. if it's the TCMalloc consumption, it's probably not going to be exactly zero. I guess we never Close() a MemTracker with a consumption metric so it's academic at the moment. I can remove the condition if you think it's clearer. PS3, Line 200: mTracker::~MemTracker() { > Ideally, we'd like to have a DCHECK(closed_) here if we fix up all backend Yeah I agree. I went through and looked at the tests and it seemed like a lot of added code for not much benefit. I made this a little stricter by checking whether it's running in a backend test. http://gerrit.cloudera.org:8080/#/c/7492/3/be/src/runtime/query-state.cc File be/src/runtime/query-state.cc: Line 80: // and they can be safely destroyed. > nit: long line Done -- To view, visit http://gerrit.cloudera.org:8080/7492 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I205abb0076d1ffd08cb93c0f1671c8b81e7fba0f Gerrit-PatchSet: 4 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Tim Armstrong Gerrit-Reviewer: Henry Robinson Gerrit-Reviewer: Matthew Jacobs Gerrit-Reviewer: Michael Ho Gerrit-Reviewer: Tim Armstrong Gerrit-HasComments: Yes