Skip to content

Commit

Permalink
Prevent ContextClassLoader of Actor from becoming ClassLoader of Exec…
Browse files Browse the repository at this point in the history
…utor.
  • Loading branch information
ueshin committed Mar 27, 2014
1 parent 53953d0 commit 43e0feb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/src/main/scala/org/apache/spark/executor/Executor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,10 @@ private[spark] class Executor(
}
}

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

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

0 comments on commit 43e0feb

Please sign in to comment.