xuanyuanking commented on a change in pull request #24565: [SPARK-27665][Core]
Split fetch shuffle blocks protocol from OpenBlocks
URL: https://github.com/apache/spark/pull/24565#discussion_r284147305
##########
File path:
common/network-common/src/main/java/org/apache/spark/network/protocol/Encoders.java
##########
@@ -89,4 +89,27 @@ public static void encode(ByteBuf buf, String[] strings) {
return strings;
}
}
+
+ /** Integer arrays are encoded with their length followed by integers. */
+ public static class IntArrays {
+ public static int encodedLength(int[] ints) {
+ return 4 * (ints.length + 1);
Review comment:
Thanks, done in 6d7f1f3.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]