Repository: spark
Updated Branches:
  refs/heads/branch-1.5 132718ad7 -> ae6fcc6bc


[SPARK-12755][CORE] Stop the event logger before the DAG scheduler

[SPARK-12755][CORE] Stop the event logger before the DAG scheduler to avoid a 
race condition where the standalone master attempts to build the app's history 
UI before the event log is stopped.

This contribution is my original work, and I license this work to the Spark 
project under the project's open source license.

Author: Michael Allman <mich...@videoamp.com>

Closes #10700 from mallman/stop_event_logger_first.

(cherry picked from commit 4ee8191e57cb823a23ceca17908af86e70354554)
Signed-off-by: Sean Owen <so...@cloudera.com>


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/ae6fcc6b
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/ae6fcc6b
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/ae6fcc6b

Branch: refs/heads/branch-1.5
Commit: ae6fcc6bc775cf5b691afce11aa8edf08d05b392
Parents: 132718a
Author: Michael Allman <mich...@videoamp.com>
Authored: Mon Jan 25 09:51:41 2016 +0000
Committer: Sean Owen <so...@cloudera.com>
Committed: Mon Jan 25 09:52:03 2016 +0000

----------------------------------------------------------------------
 core/src/main/scala/org/apache/spark/SparkContext.scala | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/ae6fcc6b/core/src/main/scala/org/apache/spark/SparkContext.scala
----------------------------------------------------------------------
diff --git a/core/src/main/scala/org/apache/spark/SparkContext.scala 
b/core/src/main/scala/org/apache/spark/SparkContext.scala
index a8f6047..2956ee7 100644
--- a/core/src/main/scala/org/apache/spark/SparkContext.scala
+++ b/core/src/main/scala/org/apache/spark/SparkContext.scala
@@ -1719,12 +1719,6 @@ class SparkContext(config: SparkConf) extends Logging 
with ExecutorAllocationCli
     Utils.tryLogNonFatalError {
       _executorAllocationManager.foreach(_.stop())
     }
-    if (_dagScheduler != null) {
-      Utils.tryLogNonFatalError {
-        _dagScheduler.stop()
-      }
-      _dagScheduler = null
-    }
     if (_listenerBusStarted) {
       Utils.tryLogNonFatalError {
         listenerBus.stop()
@@ -1734,6 +1728,12 @@ class SparkContext(config: SparkConf) extends Logging 
with ExecutorAllocationCli
     Utils.tryLogNonFatalError {
       _eventLogger.foreach(_.stop())
     }
+    if (_dagScheduler != null) {
+      Utils.tryLogNonFatalError {
+        _dagScheduler.stop()
+      }
+      _dagScheduler = null
+    }
     if (env != null && _heartbeatReceiver != null) {
       Utils.tryLogNonFatalError {
         env.rpcEnv.stop(_heartbeatReceiver)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to