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

   ### What changes were proposed in this pull request?
   
   fix NPE by better handling removed blocks
   
   ### Why are the changes needed?
   
   `getFailedBlockIds()` returned a live key set from a concurrent map. After 
one thread got a failed block id, another thread could clear that block’s 
failed state after the block was resent successfully. Then 
`getFailedBlockStatus(blockId)` returned null, and the resend logic later 
accessed it, causing a `NullPointerException.`
   
   fix #2753
   
   ### Does this PR introduce _any_ user-facing change?
   <!--
   (Please list the user-facing changes introduced by your change, including
     1. Change in user-facing APIs.
     2. Addition or removal of property keys.)
   -->
   No.
   
   ### How was this patch tested?
   
   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