You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by in...@apache.org on 2017/10/05 16:52:02 UTC
[17/50] [abbrv] hadoop git commit: HADOOP-14616. Client fails to read
a block with erasure code (XOR,
native) when one of the data block is lost. Contributed by Huafeng Wang.
HADOOP-14616. Client fails to read a block with erasure code (XOR, native) when one of the data block is lost. Contributed by Huafeng Wang.
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/fe84cdc9
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/fe84cdc9
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/fe84cdc9
Branch: refs/heads/HDFS-10467
Commit: fe84cdc9daa37af791a23a390e080777090c5e24
Parents: cae1c73
Author: Akira Ajisaka <aa...@apache.org>
Authored: Thu Oct 5 11:06:09 2017 +0900
Committer: Akira Ajisaka <aa...@apache.org>
Committed: Thu Oct 5 11:06:09 2017 +0900
----------------------------------------------------------------------
.../native/src/org/apache/hadoop/io/erasurecode/jni_xor_decoder.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/fe84cdc9/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/erasurecode/jni_xor_decoder.c
----------------------------------------------------------------------
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 13f66e2..e8abd8b 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
@@ -58,7 +58,8 @@ Java_org_apache_hadoop_io_erasurecode_rawcoder_NativeXORRawDecoder_decodeImpl(
numParityUnits = ((IsalCoder*)xorDecoder)->numParityUnits;
chunkSize = (int)dataLen;
- getInputs(env, inputs, inputOffsets, xorDecoder->inputs, numDataUnits);
+ getInputs(env, inputs, inputOffsets, xorDecoder->inputs,
+ numDataUnits + numParityUnits);
getOutputs(env, outputs, outputOffsets, xorDecoder->outputs, numParityUnits);
for (i = 0; i < numDataUnits + numParityUnits; i++) {
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org