[SPARK-6650] [core] Stop ExecutorAllocationManager when context stops.#5311
[SPARK-6650] [core] Stop ExecutorAllocationManager when context stops.#5311vanzin wants to merge 4 commits intoapache:masterfrom
Conversation
This fixes the thread leak. I also changed the unit test to keep track
of allocated contexts and making sure they're closed after tests are
run; this is needed since some tests use this pattern:
val sc = createContext()
doSomethingThatMayThrow()
sc.stop()
|
Test build #29548 has started for PR 5311 at commit |
There was a problem hiding this comment.
Will this ever have more than a single element?
There was a problem hiding this comment.
Yes. See test("verify min/max executors").
|
Test build #29551 has started for PR 5311 at commit |
|
Test build #29548 has finished for PR 5311 at commit
|
|
Test FAILed. |
|
Jenkins retest this please. |
|
Test build #29554 has started for PR 5311 at commit |
|
Test build #29551 has finished for PR 5311 at commit
|
|
Test PASSed. |
|
Test build #29554 has finished for PR 5311 at commit
|
|
Test FAILed. |
|
I'm not sure why the test failed, but on inspection it LGTM. |
|
One last nit. Otherwise LGTM. |
|
Test build #29564 has started for PR 5311 at commit |
|
Test build #29564 has finished for PR 5311 at commit
|
|
Test PASSed. |
|
LGTM2, thanks for fixing this merging into master and 1.3. |
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.
(cherry picked from commit 45134ec)
Signed-off-by: Andrew Or <andrew@databricks.com>
Conflicts:
core/src/main/scala/org/apache/spark/SparkContext.scala
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 apache#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.
(cherry picked from commit 45134ec)
Conflicts:
core/src/main/scala/org/apache/spark/SparkContext.scala
PRs Merged 1. [Internal] Add AppleAwsClientFactory for Mascot (apache#577) 2. Hive: Log new metadata location in commit (apache#4681) 3. change timeout to 120 for now (apache#661) 4. Internal: Add hive_catalog parameter to SparkCatalog (apache#670) 5. Internal: Pull catalog setting to CachedClientPool (apache#673) 6. Core: Defer reading Avro metadata until ManifestFile is read (apache#5206) 7. API: Fix ID assignment in schema merging (apache#5395) 8. AWS: S3OutputStream - failure to close should persist on subsequent close calls (apache#5311) 9. API: Allow schema updates to find fields with case-insensitivity (apache#5440) 10. Spark 3.3: Spark mergeSchema to respect Spark Case Sensitivity Configuration (apache#5441)
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: