wForget opened a new pull request, #2778:
URL: https://github.com/apache/uniffle/pull/2778

   ### What changes were proposed in this pull request?
   
   Implement `RssShuffleManager.shuffleBlockResolver()` for Spark 4 by 
returning a stateless resolver.
   
   Since RSS does not store shuffle blocks locally, `getBlocksForShuffle()` 
returns an empty sequence. Local block-reading operations remain unsupported.
   
   A regression test is added to verify that the resolver can be obtained and 
returns no local shuffle blocks.
   
   ### Why are the changes needed?
   
   Spark 4 enables `spark.shuffle.service.removeShuffle` by default. During 
shuffle cleanup, Spark calls:
   
   ```text
   shuffleManager.shuffleBlockResolver().getBlocksForShuffle(...)
   ```
   
   The previous implementation threw an `RssException`, causing 
`ContextCleaner` to fail with:
   
   ```text
   RssShuffleManager.shuffleBlockResolver is not implemented
   ```
   
   Returning an empty local-block list is appropriate because Uniffle stores 
shuffle data remotely.
   
   Closes #2777.
   
   ### Does this PR introduce any user-facing changes?
   
   No configuration or API changes are introduced. Shuffle cleanup on Spark 4 
no longer reports the `shuffleBlockResolver is not implemented` error.
   
   ### How was this patch tested?
   
   


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