xuanyuanking commented on a change in pull request #24892: [SPARK-25341][Core]
Support rolling back a shuffle map stage and re-generate the shuffle files
URL: https://github.com/apache/spark/pull/24892#discussion_r296475671
##########
File path: core/src/main/scala/org/apache/spark/network/BlockDataManager.scala
##########
@@ -30,7 +30,7 @@ trait BlockDataManager {
* Interface to get local block data. Throws an exception if the block
cannot be found or
* cannot be read successfully.
*/
- def getBlockData(blockId: BlockId): ManagedBuffer
+ def getBlockData(blockId: BlockId, shuffleGenerationId: Int): ManagedBuffer
Review comment:
Fully agree, actually in the original patch, I add a new function named
getShuffleBlockData, which want only to address getting shuffle block data. But
I found that for support old version of fetching blocks by `OpenBlocks`, we
still keep the logic of fetching shuffle block data which has no shuffle
generation id in `getBlockData` function, so I revert back and implement as the
current version. Does Wenchen have any suggestion?
----------------------------------------------------------------
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]