weimingdiit commented on code in PR #7528:
URL: https://github.com/apache/ozone/pull/7528#discussion_r1914368307
##########
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java:
##########
@@ -1615,6 +1634,34 @@ public OzoneInputStream getKey(
return result;
}
+ /**
+ * Helper method to calculate the internal block length of an EC-replicated
key.
+ * The length of data blocks differs depending on whether it is the last
strip or not.
+ * That of parity blocks can be determined by the data blocks.
+ */
+ private long internalBlockLength(int index, ECReplicationConfig ecRepConfig,
long blockLength) {
Review Comment:
Why do we calculate the block length in this way? Could you explain it in
detail? Thanks.
--
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]