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 D4DC1200B73 for ; Mon, 15 Aug 2016 03:23:25 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C2A49160AB4; Mon, 15 Aug 2016 01:23:25 +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 1293B160AA9 for ; Mon, 15 Aug 2016 03:23:24 +0200 (CEST) Received: (qmail 45654 invoked by uid 500); 15 Aug 2016 01:23:24 -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 45642 invoked by uid 99); 15 Aug 2016 01:23:23 -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; Mon, 15 Aug 2016 01:23:23 +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 816EE1804D8 for ; Mon, 15 Aug 2016 01:23:23 +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-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 rqMsiJ4f8Sxi for ; Mon, 15 Aug 2016 01:23:21 +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 4544D5FCCF for ; Mon, 15 Aug 2016 01:23:21 +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 u7F1NKgt019335; Mon, 15 Aug 2016 01:23:20 GMT Message-Id: <201608150123.u7F1NKgt019335@ip-10-146-233-104.ec2.internal> Date: Mon, 15 Aug 2016 01:23:20 +0000 From: "Alex Behm (Code Review)" To: impala-cr@cloudera.com, dev@impala.incubator.apache.org CC: Matthew Jacobs Reply-To: alex.behm@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-3952=3A_Clear_scratch_batch_mem_pool_if_Open=28=29_failed=2E=0A?= X-Gerrit-Change-Id: I55f32ed698a5b6fed8c28af1391aa07e1560e782 X-Gerrit-ChangeURL: X-Gerrit-Commit: 9d172e079c4a9f40171a4ba30cc3c0019037f722 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: Mon, 15 Aug 2016 01:23:26 -0000 Alex Behm has posted comments on this change. Change subject: IMPALA-3952: Clear scratch batch mem pool if Open() failed. ...................................................................... Patch Set 1: (3 comments) http://gerrit.cloudera.org:8080/#/c/3953/1//COMMIT_MSG Commit Message: PS1, Line 11: pts > ptrs Done http://gerrit.cloudera.org:8080/#/c/3953/1/be/src/exec/hdfs-parquet-scanner.cc File be/src/exec/hdfs-parquet-scanner.cc: PS1, Line 210: else if (!FLAGS_enable_partitioned_hash_join || : !FLAGS_enable_partitioned_aggregation) { > Not necessarily an issue, but it might be better to just I thought about executing the branch in any case, but I felt it's better to be explicit about the conditions in which this code is required. Once we finally remove the legacy join/agg flags, then this code becomes dead and it should be obvious that we can delete it. Also note that we need this extra branch even if the plan does not contain any legacy joins or aggs. The main difference in that if we enable a legacy joins or aggs, then the tuple ptrs of a row batch are allocated from the row batcht's mem pool (see c'tor of row-batch.cc). That's the main reason why need special handling here because if Open() fails the scratch batch will still have the tuple ptrs allocated. PS1, Line 212: pts > ptrs Done -- To view, visit http://gerrit.cloudera.org:8080/3953 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I55f32ed698a5b6fed8c28af1391aa07e1560e782 Gerrit-PatchSet: 1 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Alex Behm Gerrit-Reviewer: Alex Behm Gerrit-Reviewer: Matthew Jacobs Gerrit-HasComments: Yes