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 2BDB22009F8 for ; Fri, 20 May 2016 00:52:36 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2A47A160A1D; Thu, 19 May 2016 22:52:36 +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 53C90160A0D for ; Fri, 20 May 2016 00:52:35 +0200 (CEST) Received: (qmail 61096 invoked by uid 500); 19 May 2016 22:52:34 -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 61085 invoked by uid 99); 19 May 2016 22:52:34 -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, 19 May 2016 22:52:34 +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 AFCD71804EF for ; Thu, 19 May 2016 22:52:33 +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 mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id UcgP0ti7LrWE for ; Thu, 19 May 2016 22:52:31 +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 mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 6B19E5F1F0 for ; Thu, 19 May 2016 22:52:31 +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 u4JMqTTM023041; Thu, 19 May 2016 22:52:29 GMT Message-Id: <201605192252.u4JMqTTM023041@ip-10-146-233-104.ec2.internal> Date: Thu, 19 May 2016 22:52:27 +0000 From: "Michael Ho (Code Review)" To: Tim Armstrong , Dan Hecht , impala-cr@cloudera.com, dev@impala.incubator.apache.org Reply-To: kwho@cloudera.com X-Gerrit-MessageType: newpatchset Subject: =?UTF-8?Q?[Impala-CR](cdh5-2.6.0=5F5.8.0)_IMPALA-3242:_Remove_most_usages_of_RuntimeState::SetMemLimitExceeded()=0A?= X-Gerrit-Change-Id: Ic0ca128c768d1e73713866e8c513a1b75e6b4b59 X-Gerrit-ChangeURL: X-Gerrit-Commit: 8ebd63f3a6a5d61e74f1fc9443bee226b5e2e5aa 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.10-rc0 archived-at: Thu, 19 May 2016 22:52:36 -0000 Hello Tim Armstrong, Dan Hecht, I'd like you to reexamine a change. Please visit http://gerrit.cloudera.org:8080/3140 to look at the new patch set (#2). Change subject: IMPALA-3242: Remove most usages of RuntimeState::SetMemLimitExceeded() ...................................................................... IMPALA-3242: Remove most usages of RuntimeState::SetMemLimitExceeded() There are multiple places in the code which call RuntimeState::SetMemLimitExceeded(). Most of them are unnecessary as the error status constructed will eventually be propagated up the tree of exec nodes. There is no obvious reason to treat query memory limit exceeded differently. In some cases such as scan-node, calling SetMemLimitExceeded() is actually confusing as all scanner threads may pick up error status when any thread exceeds query memory limit, causing a lot of noise in the log. This change replaces most calls to RuntimeState::SetMemLimitExceeded() with MemTracker::MemLimitExceeded(). The remaining places are: the old hash table code, the UDF framework and QueryMaintenance() which checks for memory limit periodically. The query maintenance case will be removed eventually once IMPALA-2399 is fixed. Change-Id: Ic0ca128c768d1e73713866e8c513a1b75e6b4b59 --- M be/src/exec/hash-table.cc M be/src/exec/hash-table.h M be/src/exec/hdfs-rcfile-scanner.cc M be/src/exec/hdfs-scan-node.cc M be/src/exec/partitioned-aggregation-node.cc M be/src/exec/partitioned-aggregation-node.h M be/src/exec/partitioned-hash-join-node.cc M be/src/runtime/plan-fragment-executor.cc M be/src/runtime/runtime-state.h M be/src/service/query-exec-state.cc M common/thrift/generate_error_codes.py 11 files changed, 59 insertions(+), 60 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala refs/changes/40/3140/2 -- To view, visit http://gerrit.cloudera.org:8080/3140 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: newpatchset Gerrit-Change-Id: Ic0ca128c768d1e73713866e8c513a1b75e6b4b59 Gerrit-PatchSet: 2 Gerrit-Project: Impala Gerrit-Branch: cdh5-2.6.0_5.8.0 Gerrit-Owner: Michael Ho Gerrit-Reviewer: Dan Hecht Gerrit-Reviewer: Tim Armstrong