chungen0126 commented on code in PR #6613:
URL: https://github.com/apache/ozone/pull/6613#discussion_r1867504861
##########
hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/storage/ContainerProtocolCalls.java:
##########
@@ -874,4 +876,57 @@ public static List<Validator> toValidatorList(Validator
validator) {
return datanodeToResponseMap;
}
+ /**
+ * Calls the container protocol to read a chunk.
+ *
+ * @param xceiverClient client to perform call
+ * @param blockID ID of the block
+ * @param validators functions to validate the response
+ * @param token a token for this block (may be null)
+ * @return container protocol read chunk response
+ * @throws IOException if there is an I/O error while performing the call
+ */
+ @SuppressWarnings("checkstyle:ParameterNumber")
+ public static ContainerProtos.ReadBlockResponseProto readBlock(
+ XceiverClientSpi xceiverClient, long offset, long len, BlockID blockID,
Review Comment:
Done
--
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]