Return-Path: X-Original-To: apmail-impala-dev-archive@minotaur.apache.org Delivered-To: apmail-impala-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BF9DC19C83 for ; Wed, 20 Apr 2016 00:17:53 +0000 (UTC) Received: (qmail 29150 invoked by uid 500); 20 Apr 2016 00:17:53 -0000 Delivered-To: apmail-impala-dev-archive@impala.apache.org Received: (qmail 29108 invoked by uid 500); 20 Apr 2016 00:17:53 -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 29097 invoked by uid 99); 20 Apr 2016 00:17:53 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Apr 2016 00:17:53 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id A8CA5C05EF for ; Wed, 20 Apr 2016 00:17:52 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-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 (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 557ea65vDQyQ for ; Wed, 20 Apr 2016 00:17:50 +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 A8A7C5FB46 for ; Wed, 20 Apr 2016 00:17:50 +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 u3K0Hn4n007187; Wed, 20 Apr 2016 00:17:49 GMT Message-Id: <201604200017.u3K0Hn4n007187@ip-10-146-233-104.ec2.internal> Date: Wed, 20 Apr 2016 00:17:49 +0000 From: "Tim Armstrong (Code Review)" To: impala-cr@cloudera.com, dev@impala.incubator.apache.org CC: Matthew Jacobs , Dan Hecht , Michael Ho Reply-To: tarmstrong@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?[Impala-CR](cdh5-trunk)_IMPALA-3317:_fix_crash_in_sorter_when_spilling_zero-length_strings=0A?= X-Gerrit-Change-Id: I5f64593e94d367d6b6efb61a8b86e35516f18839 X-Gerrit-ChangeURL: X-Gerrit-Commit: a271b9961379251a40388f7edc5750c05d97f453 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 Tim Armstrong has posted comments on this change. Change subject: IMPALA-3317: fix crash in sorter when spilling zero-length strings ...................................................................... Patch Set 1: (6 comments) http://gerrit.cloudera.org:8080/#/c/2780/1/be/src/runtime/sorter.cc File be/src/runtime/sorter.cc: Line 477: } else { > how about: DCHECK_EQ(var_len_blocks_.back(), cur_var_len_block) to support Done Line 564: cur_sorted_var_len_block->Allocate(total_var_len); > same dcheck Done Line 732: // offset in the lower 32 bits. > Add: see CopyVarLenDataConvertOffset() Done. I'm going to refactor some of this in a follow-up patch so that the encode/decode methods are adjacent to each other. Line 827: block_size_ > Let's also dcheck that the calculation to get block_offset fits in 32-bits Done http://gerrit.cloudera.org:8080/#/c/2780/1/testdata/workloads/functional-query/queries/QueryTest/large-sorts.test File testdata/workloads/functional-query/queries/QueryTest/large-sorts.test: Line 3: set mem_limit=512m; > Can you please keep these set statements together with the query ? The quer I was seeing some weird behaviour. There is actually a bug in the regex that implements the reset that I fixed. For some reason num_nodes doesn't seem to be taking effect when this test file is executed (maybe because exec_single_node_rows_threshold was set) so I changed it to set it in the test vector. http://gerrit.cloudera.org:8080/#/c/2780/1/tests/query_test/test_queries.py File tests/query_test/test_queries.py: Line 86 > why is this deleted? oops -- To view, visit http://gerrit.cloudera.org:8080/2780 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I5f64593e94d367d6b6efb61a8b86e35516f18839 Gerrit-PatchSet: 1 Gerrit-Project: Impala Gerrit-Branch: cdh5-trunk Gerrit-Owner: Tim Armstrong Gerrit-Reviewer: Dan Hecht Gerrit-Reviewer: Matthew Jacobs Gerrit-Reviewer: Michael Ho Gerrit-Reviewer: Tim Armstrong Gerrit-HasComments: Yes