Skip to content

Commit

Permalink
SPARK-6036 avoid race condition between eventlogListener and akka act…
Browse files Browse the repository at this point in the history
…or system
  • Loading branch information
liyezhang556520 committed Feb 26, 2015
1 parent d20559b commit 79b15b3
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 @@ -1382,6 +1382,7 @@ class SparkContext(config: SparkConf) extends Logging with ExecutorAllocationCli
stopped = true
env.metricsSystem.report()
metadataCleaner.cancel()
eventLogger.foreach(_.stop())
env.actorSystem.stop(heartbeatReceiver)
cleaner.foreach(_.stop())
dagScheduler.stop()
Expand All @@ -1392,7 +1393,6 @@ class SparkContext(config: SparkConf) extends Logging with ExecutorAllocationCli
env.stop()
SparkEnv.set(null)
listenerBus.stop()
eventLogger.foreach(_.stop())
logInfo("Successfully stopped SparkContext")
SparkContext.clearActiveContext()
} else {
Expand Down

0 comments on commit 79b15b3

Please sign in to comment.