You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2022/10/28 20:49:46 UTC
[GitHub] [ozone] aswinshakil commented on a diff in pull request #3790: HDDS-6971. EC: Add EC block checksum computer.
aswinshakil commented on code in PR #3790:
URL: https://github.com/apache/ozone/pull/3790#discussion_r1008466460
##########
hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/storage/ECBlockOutputStream.java:
##########
@@ -88,6 +92,62 @@ public CompletableFuture<ContainerProtos.ContainerCommandResponseProto> write(
return writeChunkToContainer(ChunkBuffer.wrap(buff));
}
+ public CompletableFuture<ContainerProtos.
+ ContainerCommandResponseProto> executePutBlock(boolean close,
+ boolean force, long blockGroupLength, BlockData[] blockData)
+ throws IOException {
+
+ BlockData checksumBlockData = null;
+ //Reverse Traversal as all parity will have checksumBytes
+ for (int i = blockData.length - 1; i >= 0; i--) {
Review Comment:
Yes, it is covered in the below logic `chunks.get(0).getMetadataCount() > 0` as the chunks >1 and <parity won't have the metadata
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org