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 5A493200CD4 for ; Sat, 15 Jul 2017 00:43:41 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 58A3D16B9C4; Fri, 14 Jul 2017 22:43:41 +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 A0ED016B9BF for ; Sat, 15 Jul 2017 00:43:40 +0200 (CEST) Received: (qmail 75274 invoked by uid 500); 14 Jul 2017 22:43:39 -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 75260 invoked by uid 99); 14 Jul 2017 22:43:39 -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; Fri, 14 Jul 2017 22:43:39 +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 43598C0E7E for ; Fri, 14 Jul 2017 22:43:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.363 X-Spam-Level: X-Spam-Status: No, score=0.363 tagged_above=-999 required=6.31 tests=[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 (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Rw8TzS8hhWce for ; Fri, 14 Jul 2017 22:43: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 mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 9FA155F6CD for ; Fri, 14 Jul 2017 22:43:30 +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 v6EMhS0j020723; Fri, 14 Jul 2017 22:43:29 GMT Message-Id: <201707142243.v6EMhS0j020723@ip-10-146-233-104.ec2.internal> Date: Fri, 14 Jul 2017 22:43:28 +0000 From: "Tim Armstrong (Code Review)" To: anujphadke , impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Thomas Tauber-Marshall Reply-To: tarmstrong@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-5586=3A_Null-aware_anti-join_can_take_a_long_time_to_cancel=0A?= X-Gerrit-Change-Id: I0800754d4ad31cbadbdfadc630c640963f3f6053 X-Gerrit-ChangeURL: X-Gerrit-Commit: d766c7e81b96e7cd3a0eee738ad124a505e81286 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: Fri, 14 Jul 2017 22:43:41 -0000 Tim Armstrong has posted comments on this change. Change subject: IMPALA-5586: Null-aware anti-join can take a long time to cancel ...................................................................... Patch Set 3: (2 comments) http://gerrit.cloudera.org:8080/#/c/7393/3/be/src/exec/partitioned-hash-join-node.cc File be/src/exec/partitioned-hash-join-node.cc: Line 1018: // For each row, iterate over all rows in the build table. The need for RETURN_IF_CANCELLED is a little subtle. A one-line comment would be useful, e.g. "This loop can run for a long time. Periodically check for cancellation." Line 1023: for (int j = 0; j < build_rows->num_rows(); ++j) { This loop can also potentially run for a long time if build_rows is large. It will be a bit expensive to check every iteration but maybe check every 1024 rows or something like that (I'm suggesting a power-of-two because computing % is cheap for a constant power-of-two). if (j % 1024 == 0) RETURN_IF_CANCELLED(state); -- To view, visit http://gerrit.cloudera.org:8080/7393 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I0800754d4ad31cbadbdfadc630c640963f3f6053 Gerrit-PatchSet: 3 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: anujphadke Gerrit-Reviewer: Thomas Tauber-Marshall Gerrit-Reviewer: Tim Armstrong Gerrit-Reviewer: anujphadke Gerrit-HasComments: Yes