You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/erasurecode/StripedBlockChecksumReconstructor.java
+18-3Lines changed: 18 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,7 @@ public void reconstruct() throws IOException {
87
87
88
88
// step3: calculate checksum
89
89
checksumDataLen += checksumWithTargetOutput(
90
-
targetBuffer.array(), toReconstructLen);
90
+
getBufferArray(targetBuffer), toReconstructLen);
91
91
92
92
updatePositionInBlock(toReconstructLen);
93
93
requestedLen -= toReconstructLen;
@@ -140,7 +140,7 @@ private long checksumWithTargetOutput(byte[] outputData, int toReconstructLen)
140
140
// case-2) length of data bytes which is less than bytesPerCRC
0 commit comments