yaooqinn commented on pull request #30045:
URL: https://github.com/apache/spark/pull/30045#issuecomment-739697379


   > @yaooqinn active session is a thread local. What if we create a new 
session in another thread?
   
   w/o  `SparkSession.clearDefaultSession()`,  we will not create a new one
   
   
![image](https://user-images.githubusercontent.com/8326978/101316487-8525db80-3897-11eb-8c32-08a6b1909f4a.png)
   
   w/ `SparkSession.clearDefaultSession()`, the shared state is also not able 
to reach
   
   
![image](https://user-images.githubusercontent.com/8326978/101316649-dcc44700-3897-11eb-8ebe-ddabc207d07c.png)
   
   


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