-
- Downloads
[SPARK-6650] [core] Stop ExecutorAllocationManager when context stops.
This fixes the thread leak. I also changed the unit test to keep track of allocated contexts and make sure they're closed after tests are run; this is needed since some tests use this pattern: val sc = createContext() doSomethingThatMayThrow() sc.stop() Author: Marcelo Vanzin <vanzin@cloudera.com> Closes #5311 from vanzin/SPARK-6650 and squashes the following commits: 652c73b [Marcelo Vanzin] Nits. 5711512 [Marcelo Vanzin] More exception safety. cc5a744 [Marcelo Vanzin] Stop alloc manager before scheduler. 9886f69 [Marcelo Vanzin] [SPARK-6650] [core] Stop ExecutorAllocationManager when context stops.
Showing
- core/src/main/scala/org/apache/spark/ExecutorAllocationManager.scala 18 additions, 20 deletions...in/scala/org/apache/spark/ExecutorAllocationManager.scala
- core/src/main/scala/org/apache/spark/SparkContext.scala 2 additions, 1 deletioncore/src/main/scala/org/apache/spark/SparkContext.scala
- core/src/test/scala/org/apache/spark/ExecutorAllocationManagerSuite.scala 29 additions, 15 deletions...ala/org/apache/spark/ExecutorAllocationManagerSuite.scala
Please register or sign in to comment