HyukjinKwon opened a new pull request #32429:
URL: https://github.com/apache/spark/pull/32429


   ### What changes were proposed in this pull request?
   
   PySpark added pinned thread mode at 
https://github.com/apache/spark/pull/24898 to sync Python thread to JVM thread. 
Previously, one JVM thread could be reused which ends up with messed 
inheritance hierarchy such as thread local especially when multiple jobs run in 
parallel. To completely fix this, we should enable this mode by default.
   
   ### Why are the changes needed?
   
   To correctly support parallel job submission and management.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes, now Python thread is mapped to JVM thread one to one.
   
   ### How was this patch tested?
   
   Existing tests should cover it.
   


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