diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/util/StripedBlockUtil.java b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/util/StripedBlockUtil.java index 25ee8d30c92..59d6a18e13e 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/util/StripedBlockUtil.java +++ b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/util/StripedBlockUtil.java @@ -915,6 +915,7 @@ public class StripedBlockUtil { ByteBuffer tmp; int len; for (ByteBuffer slice : slices) { + src.position(src.position() + slice.position()); len = slice.remaining(); tmp = src.duplicate(); tmp.limit(tmp.position() + len);