xuanyuanking commented on a change in pull request #26040: [SPARK-9853][Core]
Optimize shuffle fetch of continuous partition IDs
URL: https://github.com/apache/spark/pull/26040#discussion_r335323259
##########
File path: core/src/main/scala/org/apache/spark/storage/BlockId.scala
##########
@@ -56,6 +56,18 @@ case class ShuffleBlockId(shuffleId: Int, mapId: Long,
reduceId: Int) extends Bl
override def name: String = "shuffle_" + shuffleId + "_" + mapId + "_" +
reduceId
}
+// The batch id of continuous shuffle blocks of same mapId in range
[startReduceId, endReduceId).
+@DeveloperApi
+case class ShuffleBlockBatchId(
+ shuffleId: Int,
+ mapId: Long,
+ startReduceId: Int,
+ endReduceId: Int) extends BlockId {
+ override def name: String = {
+ "shuffle_" + shuffleId + "_" + mapId + "_" + startReduceId + "_" +
endReduceId
Review comment:
The format will also influence the protocol side. I suggest doing the change
when it needed, within the same patch with extension.
----------------------------------------------------------------
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]