Skip to content
Snippets Groups Projects
Commit 78b6e6f1 authored by Aaron Davidson's avatar Aaron Davidson Committed by Tathagata Das
Browse files

SPARK-1689: Spark application should die when removed by Master


scheduler.error() will mask the error if there are active tasks. Being removed is a cataclysmic event for Spark applications, and should probably be treated as such.

Author: Aaron Davidson <aaron@databricks.com>

Closes #832 from aarondav/i-love-u and squashes the following commits:

9f1200f [Aaron Davidson] SPARK-1689: Spark application should die when removed by Master

(cherry picked from commit b0ce22e0)
Signed-off-by: default avatarTathagata Das <tathagata.das1565@gmail.com>
parent 875c54fb
No related branches found
No related tags found
No related merge requests found
...@@ -88,6 +88,8 @@ private[spark] class SparkDeploySchedulerBackend( ...@@ -88,6 +88,8 @@ private[spark] class SparkDeploySchedulerBackend(
if (!stopping) { if (!stopping) {
logError("Application has been killed. Reason: " + reason) logError("Application has been killed. Reason: " + reason)
scheduler.error(reason) scheduler.error(reason)
// Ensure the application terminates, as we can no longer run jobs.
sc.stop()
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment