Skip to content

Commit 6fe96e5

Browse files
committed
[SPARK-16522][MESOS] Spark application throws exception on exit.
1 parent e50efd5 commit 6fe96e5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/main/scala/org/apache/spark/scheduler/cluster/mesos/MesosCoarseGrainedSchedulerBackend.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,9 @@ private[spark] class MesosCoarseGrainedSchedulerBackend(
552552
taskId: String,
553553
reason: String): Unit = {
554554
stateLock.synchronized {
555-
removeExecutor(taskId, SlaveLost(reason))
555+
if (!stopCalled) {
556+
removeExecutor(taskId, SlaveLost(reason))
557+
}
556558
slaves(slaveId).taskIDs.remove(taskId)
557559
}
558560
}

0 commit comments

Comments
 (0)