-
- Downloads
[SPARK-4877] Allow user first classes to extend classes in the parent.
Previously, the classloader isolation was almost too good, such that if a child class needed to load/reference a class that was only available in the parent, it could not do so. This adds tests for that case, the user-first Fake2 class extends the only-in-parent Fake3 class. It also sneaks in a fix where only the first stage seemed to work, and on subsequent stages, a LinkageError happened because classes from the user-first classpath were getting defined twice. Author: Stephen Haberman <stephen@exigencecorp.com> Closes #3725 from stephenh/4877_user_first_parent_inheritance and squashes the following commits: dabcd35 [Stephen Haberman] [SPARK-4877] Respect userClassPathFirst for the driver code too. 3d0fa7c [Stephen Haberman] [SPARK-4877] Allow user first classes to extend classes in the parent.
Showing
- core/src/main/scala/org/apache/spark/TestUtils.scala 27 additions, 7 deletionscore/src/main/scala/org/apache/spark/TestUtils.scala
- core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala 11 additions, 6 deletions.../src/main/scala/org/apache/spark/deploy/SparkSubmit.scala
- core/src/main/scala/org/apache/spark/executor/ExecutorURLClassLoader.scala 11 additions, 1 deletion...la/org/apache/spark/executor/ExecutorURLClassLoader.scala
- core/src/test/scala/org/apache/spark/executor/ExecutorURLClassLoaderSuite.scala 12 additions, 4 deletions...g/apache/spark/executor/ExecutorURLClassLoaderSuite.scala
Loading
Please register or sign in to comment