Bug fix: SPARK-789

https://spark-project.atlassian.net/browse/SPARK-789
This commit is contained in:
Lian Cheng 2013-07-05 00:54:10 +08:00
parent 6d60fe571a
commit c0c3155c3c

View file

@ -278,7 +278,9 @@ private[spark] class Master(host: String, port: Int, webUiPort: Int) extends Act
exec.state = ExecutorState.KILLED
}
app.markFinished(state)
app.driver ! ApplicationRemoved(state.toString)
if (state != ApplicationState.FINISHED) {
app.driver ! ApplicationRemoved(state.toString)
}
schedule()
}
}