hvanhovell commented on code in PR #42069:
URL: https://github.com/apache/spark/pull/42069#discussion_r1278217655


##########
core/src/main/scala/org/apache/spark/executor/Executor.scala:
##########
@@ -548,6 +554,9 @@ private[spark] class Executor(
           taskDescription.artifacts.jars,
           taskDescription.artifacts.archives,
           isolatedSession)
+        // Always reset the thread class loader to ensure if any updates, all 
threads (not only
+        // the thread that updated the dependencies) can update to the new 
class loader.
+        
Thread.currentThread.setContextClassLoader(isolatedSession.replClassLoader)

Review Comment:
   I am pretty sure we do this else where as well.
   
   Are you also unsetting it once you are done?



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