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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]