wankunde opened a new pull request #32866:
URL: https://github.com/apache/spark/pull/32866


   ### What changes were proposed in this pull request?
   
   Bug fix for thread leak in JobCancellationSuite UT
   
   ### Why are the changes needed?
   
   When we call Thread.interrupt() method, that thread's interrupt status will 
be set but it may not really interrupt.
   So when spark task runs in an infinite loop, spark context may fail to 
interrupt the task thread, and resulting in thread leak. 
   
   ### Does this PR introduce _any_ user-facing change?
   
   No
   
   ### How was this patch tested?
   
   Test case "task reaper kills JVM if killed tasks keep running for too long" 
in JobCancellationSuite
   


-- 
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:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to