zsxwing opened a new pull request #25680: [TODO_JIRA_IS_DOWN][CORE]Use KeyLock 
to simplify MapOutputTracker.getStatuses
URL: https://github.com/apache/spark/pull/25680
 
 
   ### What changes were proposed in this pull request?
   
   Use `KeyLock` added in #25612 to simplify `MapOutputTracker.getStatuses`. It 
also has some improvement after the refactoring:
   - `InterruptedException` is no longer sallowed.
   - When a shuffle block is fetched, we don't need to wake up unrelated 
sleeping threads.
   
   ### Why are the changes needed?
   
   `MapOutputTracker.getStatuses` is pretty hard to maintain right now because 
it has a special lock mechanism which needs to pay attention to whenever 
updating this method. As we can use `KeyLock` to hide the complexity of locking 
behind a dedicated lock class, it's better to refactor it to make it easy to 
understand and maintain.
   
   ### Does this PR introduce any user-facing change?
   
   No
   
   ### How was this patch tested?
   
   Existing tests.
   

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

Reply via email to