From common-commits-return-96827-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Tue Oct 1 16:52:47 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id EFD4D180608 for ; Tue, 1 Oct 2019 18:52:46 +0200 (CEST) Received: (qmail 59312 invoked by uid 500); 1 Oct 2019 16:52:46 -0000 Mailing-List: contact common-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-commits@hadoop.apache.org Received: (qmail 59303 invoked by uid 99); 1 Oct 2019 16:52:46 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Oct 2019 16:52:46 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id EFE73890A3; Tue, 1 Oct 2019 16:52:45 +0000 (UTC) Date: Tue, 01 Oct 2019 16:52:45 +0000 To: "common-commits@hadoop.apache.org" Subject: [hadoop] branch branch-3.1 updated: HDFS-14175. EC: Native XOR decoder should reset the output buffer before using it. Contributed by Ayush Saxena. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <156994876548.4440.15006549197522677435@gitbox.apache.org> From: weichiu@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: hadoop X-Git-Refname: refs/heads/branch-3.1 X-Git-Reftype: branch X-Git-Oldrev: 23eed7b2012ada511ac1fc3ea9172c32c0d241a3 X-Git-Newrev: 5436df0c9490d59df28fe2879c55909c07e672d9 X-Git-Rev: 5436df0c9490d59df28fe2879c55909c07e672d9 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. weichiu pushed a commit to branch branch-3.1 in repository https://gitbox.apache.org/repos/asf/hadoop.git The following commit(s) were added to refs/heads/branch-3.1 by this push: new 5436df0 HDFS-14175. EC: Native XOR decoder should reset the output buffer before using it. Contributed by Ayush Saxena. 5436df0 is described below commit 5436df0c9490d59df28fe2879c55909c07e672d9 Author: Surendra Singh Lilhore AuthorDate: Fri Jan 18 13:55:12 2019 +0530 HDFS-14175. EC: Native XOR decoder should reset the output buffer before using it. Contributed by Ayush Saxena. (cherry picked from commit dacc1a759e3ba3eca000cbacc6145b231253b174) --- .../main/native/src/org/apache/hadoop/io/erasurecode/jni_xor_decoder.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/erasurecode/jni_xor_decoder.c b/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/erasurecode/jni_xor_decoder.c index d2de0c6..6832aa8 100644 --- a/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/erasurecode/jni_xor_decoder.c +++ b/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/erasurecode/jni_xor_decoder.c @@ -66,6 +66,8 @@ Java_org_apache_hadoop_io_erasurecode_rawcoder_NativeXORRawDecoder_decodeImpl( numDataUnits + numParityUnits); getOutputs(env, outputs, outputOffsets, xorDecoder->outputs, numParityUnits); + memset(xorDecoder->outputs[0], 0, chunkSize); + for (i = 0; i < numDataUnits + numParityUnits; i++) { if (xorDecoder->inputs[i] == NULL) { continue; --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-commits-help@hadoop.apache.org