aswinshakil commented on code in PR #3790:
URL: https://github.com/apache/ozone/pull/3790#discussion_r1008470968
##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/ec/reconstruction/ECReconstructionCoordinator.java:
##########
@@ -268,10 +272,20 @@ void reconstructECBlockGroup(BlockLocationInfo
blockLocationInfo,
length -= readLen;
}
+ int totalNodes = repConfig.getRequiredNodes();
+ int parity = repConfig.getParity();
+
try {
for (ECBlockOutputStream targetStream : targetBlockStreams) {
- targetStream
- .executePutBlock(true, true, blockLocationInfo.getLength());
+ long replicaIndex = targetStream.getReplicationIndex();
+ //Write checksum only to parity and 1st Replica.
Review Comment:
Yes we can do that, thanks for the suggestion. Will update the PR.
--
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]