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 60511200D20 for ; Tue, 3 Oct 2017 01:49:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5ECA0160BCB; Mon, 2 Oct 2017 23:49:22 +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 A2D5A1609EF for ; Tue, 3 Oct 2017 01:49:21 +0200 (CEST) Received: (qmail 60354 invoked by uid 500); 2 Oct 2017 23:49:20 -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 60342 invoked by uid 99); 2 Oct 2017 23:49:20 -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; Mon, 02 Oct 2017 23:49:20 +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 CDE1EDA993 for ; Mon, 2 Oct 2017 23:49:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.362 X-Spam-Level: ** X-Spam-Status: No, score=2.362 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RDNS_DYNAMIC=0.363, SPF_PASS=-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 CZBO_i7fYBUQ for ; Mon, 2 Oct 2017 23:49:18 +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 6E1B25F238 for ; Mon, 2 Oct 2017 23:49:18 +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 v92NnGXn022944; Mon, 2 Oct 2017 23:49:16 GMT Message-Id: <201710022349.v92NnGXn022944@ip-10-146-233-104.ec2.internal> X-Gerrit-PatchSet: 5 Date: Mon, 2 Oct 2017 23:49:16 +0000 From: "Alex Behm (Code Review)" To: impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Philip Zeyliger , Bharath Vissapragada X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-5990=3A_Part_1=3A_JNI-based_LZ4_de/compression=0A?= X-Gerrit-Change-Id: I237802944875b07080db0159ff8ec548150fd95e X-Gerrit-Change-Number: 8150 X-Gerrit-ChangeURL: X-Gerrit-Commit: 8e55cc5201f8721ec2e0adf940f7474ea5c8ed52 In-Reply-To: References: X-Gerrit-Comment-Date: Mon, 2 Oct 2017 23:49:16 +0000 Reply-To: alex.behm@cloudera.com, impala-cr@cloudera.com, marcelk@gmail.com, philip@cloudera.com, bharathv@cloudera.com, reviews@impala.incubator.apache.org MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.14.2 Content-Type: multipart/alternative; boundary="EVncEufDazo="; charset=UTF-8 archived-at: Mon, 02 Oct 2017 23:49:22 -0000 --EVncEufDazo= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Alex Behm has posted comments on this change=2E ( http://gerrit=2Ecloudera= =2Eorg:8080/8150 ) Change subject: IMPALA-5990: Part 1: JNI-based LZ4 de/c= ompression =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E= =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E= =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E = Patch Set 5: (4 comments) http://gerrit=2Ecloudera=2Eorg:8080/#/c/8150/5/= be/src/service/fe-support=2Ecc File be/src/service/fe-support=2Ecc: http:/= /gerrit=2Ecloudera=2Eorg:8080/#/c/8150/5/be/src/service/fe-support=2Ecc@457= PS5, Line 457: // It does not matter if 'src' is copied because we only re= ad from it=2E > nit: May be document src_off, dst_off and return value for = readability=2E Documented return values=2E I think the 'off' and 'len' par= ams are standard enough to not need extra comments=2E http://gerrit=2Eclo= udera=2Eorg:8080/#/c/8150/5/be/src/service/fe-support=2Ecc@481 PS5, Line 48= 1: env->SetByteArrayRegion(dst, 0, len, reinterpret_cast(dst_da= ta)); > Check the return value of this? Given it made a copy, its likely th= at this Function returns void=2E Added code to handle exceptions=2E htt= p://gerrit=2Ecloudera=2Eorg:8080/#/c/8150/5/be/src/util/jni-util=2Eh File b= e/src/util/jni-util=2Eh: http://gerrit=2Ecloudera=2Eorg:8080/#/c/8150/5/be= /src/util/jni-util=2Eh@184 PS5, Line 184: !is_copy_ && > My understanding i= s that we should call ReleasePrimitiveArrayCritical() irr Good catch, that = was a bug=2E Fixed=2E http://gerrit=2Ecloudera=2Eorg:8080/#/c/8150/5/be/s= rc/util/jni-util=2Eh@192 PS5, Line 192: ; > WARN_UNUSED_RESULT Done -- = To view, visit http://gerrit=2Ecloudera=2Eorg:8080/8150 To unsubscribe, vis= it http://gerrit=2Ecloudera=2Eorg:8080/settings Gerrit-Project: Impala-ASF= Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I23780= 2944875b07080db0159ff8ec548150fd95e Gerrit-Change-Number: 8150 Gerrit-Patch= Set: 5 Gerrit-Owner: Alex Behm Gerrit-Reviewer= : Alex Behm Gerrit-Reviewer: Bharath Vissaprag= ada Gerrit-Reviewer: Philip Zeyliger Gerrit-Comment-Date: Mon, 02 Oct 2017 23:49:16 +0000 Gerrit-Has= Comments: Yes --EVncEufDazo=--