Skip to content

Commit 43e0feb

Browse files
committed
Prevent ContextClassLoader of Actor from becoming ClassLoader of Executor.
1 parent 53953d0 commit 43e0feb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/src/main/scala/org/apache/spark/executor/Executor.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,10 @@ private[spark] class Executor(
112112
}
113113
}
114114

115-
// Create our ClassLoader and set it on this thread
115+
// Create our ClassLoader
116116
// do this after SparkEnv creation so can access the SecurityManager
117117
private val urlClassLoader = createClassLoader()
118118
private val replClassLoader = addReplClassLoaderIfNeeded(urlClassLoader)
119-
Thread.currentThread.setContextClassLoader(replClassLoader)
120119

121120
// Akka's message frame size. If task result is bigger than this, we use the block manager
122121
// to send the result back.

0 commit comments

Comments
 (0)