Skip to content
Snippets Groups Projects
Commit c528932a authored by Charles Reiss's avatar Charles Reiss
Browse files

Code review cleanup.

parent 0aad42b5
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,10 @@ private[spark] class SparkDeploySchedulerBackend(
}
def executorRemoved(id: String, message: String, exitStatus: Option[Int]) {
var reason: ExecutorLossReason = exitStatus.map(ExecutorExited).getOrElse(SlaveLost(message))
val reason: ExecutorLossReason = exitStatus match {
case Some(code) => ExecutorExited(code)
case None => SlaveLost(message)
}
logInfo("Executor %s removed: %s".format(id, message))
executorIdToSlaveId.get(id) match {
case Some(slaveId) =>
......
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