bozhang2820 opened a new pull request, #42296:
URL: https://github.com/apache/spark/pull/42296

   ### What changes were proposed in this pull request?
   This change tries to handle shuffle fetch failures due to decommissions.
   
   When encountering a fetch failure for a block, `ShuffleBlockFetcherIterator` 
will check the updated map output location (`BlockManagerId`) for it, and see 
if the location changes. When it does, the fetch failure will be ignored and 
the updated location and the block id will be recorded. At the end of the fetch 
request (when all blocks in the request are processed), multiple requests will 
be assembled and enqueued, to retry the fetches from the updated locations for 
the corresponding blocks.
   
   
   ### Why are the changes needed?
   This is to improve query stability when decommission is enabled.
   
   
   ### Does this PR introduce _any_ user-facing change?
   This change comes with a feature flag 
`spark.storage.decommission.shuffleBlocks.refreshLocationsEnabled`.
   
   
   ### How was this patch tested?
   Added a new unit test.
   


-- 
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]

Reply via email to