yikf opened a new pull request #31664:
URL: https://github.com/apache/spark/pull/31664


   ### What changes were proposed in this pull request?
   Fixed an issue where data could not be cleaned up when unregisterShuffle.
   
   ### Why are the changes needed?
   While we use the old shuffle fetch protocol, we use partitionId as mapId in 
the ShuffleBlockId construction,but we use `context.taskAttemptId()` as mapId 
that it is cached in `taskIdMapsForShuffle` when we `getWriter[K, V]`.
   
   where data could not be cleaned up when unregisterShuffle ,because we remove 
a shuffle's metadata from the `taskIdMapsForShuffle`'s mapIds, the mapId is 
`context.taskAttemptId()` instead of partitionId.
   
   ### Does this PR introduce _any_ user-facing change?
   yes
   
   ### How was this patch tested?
   exist 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.

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