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 37BD4200ACA for ; Thu, 9 Jun 2016 19:51:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 36559160A58; Thu, 9 Jun 2016 17:51:04 +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 80DB0160A29 for ; Thu, 9 Jun 2016 19:51:03 +0200 (CEST) Received: (qmail 9642 invoked by uid 500); 9 Jun 2016 17:51:02 -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 9630 invoked by uid 99); 9 Jun 2016 17:51:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jun 2016 17:51:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 004111A01D2 for ; Thu, 9 Jun 2016 17:51:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-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 (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id FDmEoBrBjJov for ; Thu, 9 Jun 2016 17:50:59 +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 5A2565FE28 for ; Thu, 9 Jun 2016 17:50:59 +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 u59HowVW012229; Thu, 9 Jun 2016 17:50:58 GMT Message-Id: <201606091750.u59HowVW012229@ip-10-146-233-104.ec2.internal> Date: Thu, 9 Jun 2016 17:50:57 +0000 From: "Skye Wanderman-Milne (Code Review)" To: impala-cr@cloudera.com, dev@impala.incubator.apache.org CC: Dan Hecht , Alex Behm , Tim Armstrong Reply-To: skye@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-CR=5D=28cdh5-trunk=29_IMPALA-3441=2C_IMPALA-3659=3A_check_for_malformed_Avro_data=0A?= X-Gerrit-Change-Id: I801a11c496a128e02c564c2a9c44baa5a97be132 X-Gerrit-ChangeURL: X-Gerrit-Commit: 0c256b12b72165b671e6d98dc90eb21c24cdae4f 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: Thu, 09 Jun 2016 17:51:04 -0000 Skye Wanderman-Milne has posted comments on this change. Change subject: IMPALA-3441, IMPALA-3659: check for malformed Avro data ...................................................................... Patch Set 11: (12 comments) http://gerrit.cloudera.org:8080/#/c/3072/11/be/src/exec/hdfs-avro-scanner-test.cc File be/src/exec/hdfs-avro-scanner-test.cc: Line 304: // TestReadAvroString(data, 10, sv, 1); > i assume you'll reenable this? oops yes http://gerrit.cloudera.org:8080/#/c/3072/11/be/src/exec/hdfs-avro-scanner.cc File be/src/exec/hdfs-avro-scanner.cc: PS11, Line 189: num_entries > this should be validated (like line 123). Done Line 483: DCHECK_GE(num_records, 0); > should return status Done Line 485: DCHECK_GE(compressed_size, 0); > same Done http://gerrit.cloudera.org:8080/#/c/3072/11/be/src/exec/hdfs-avro-scanner.h File be/src/exec/hdfs-avro-scanner.h: PS11, Line 283: Report > Consider renaming these: SetStatusCorruptData(), SetStatusInvalidValue() to Done http://gerrit.cloudera.org:8080/#/c/3072/11/be/src/exec/read-write-util.cc File be/src/exec/read-write-util.cc: PS11, Line 25: FindZLongLength > how about calling it FindZIntegerLength() since it's really a utility for R Done PS11, Line 36: ReadZLong > ReadZInteger() Done PS11, Line 38: ReadZLongSlow > ReadZIntegerSlow Done Line 61: ZResult ReadWriteUtil::ReadZInteger(uint8_t** buf, uint8_t* buf_end) { > maybe add: Done Line 87: } > does ReadZInteger get inlined? might be safer to put these in the header so They have to go here due to the template specialization, see http://stackoverflow.com/questions/21112148/specialization-of-member-function-template-after-instantiation-error-and-order/21112309#21112309. I'm hoping that the templated function definition gets inlined into these stubs. http://gerrit.cloudera.org:8080/#/c/3072/11/be/src/exec/read-write-util.h File be/src/exec/read-write-util.h: Line 109: /// is incremented past the encoded long. > should document buf_end Done Line 247: // } > remove commented out code Done -- To view, visit http://gerrit.cloudera.org:8080/3072 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I801a11c496a128e02c564c2a9c44baa5a97be132 Gerrit-PatchSet: 11 Gerrit-Project: Impala Gerrit-Branch: cdh5-trunk Gerrit-Owner: Skye Wanderman-Milne Gerrit-Reviewer: Alex Behm Gerrit-Reviewer: Dan Hecht Gerrit-Reviewer: Skye Wanderman-Milne Gerrit-Reviewer: Tim Armstrong Gerrit-HasComments: Yes