Skip to content

Commit

Permalink
Stop alloc manager before scheduler.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcelo Vanzin committed Apr 2, 2015
1 parent 5545d83 commit a0b0881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/org/apache/spark/SparkContext.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1402,11 +1402,11 @@ class SparkContext(config: SparkConf) extends Logging with ExecutorAllocationCli
env.metricsSystem.report()
metadataCleaner.cancel()
cleaner.foreach(_.stop())
executorAllocationManager.foreach(_.stop())
dagScheduler.stop()
dagScheduler = null
listenerBus.stop()
eventLogger.foreach(_.stop())
executorAllocationManager.foreach(_.stop())
env.actorSystem.stop(heartbeatReceiver)
progressBar.foreach(_.stop())
taskScheduler = null
Expand Down

0 comments on commit a0b0881

Please sign in to comment.