Skip to content

Commit ff4664c

Browse files
committed
Backward-compatible support
1 parent c5c4cf2 commit ff4664c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/scala/org/apache/spark/util/JsonProtocol.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,8 +639,8 @@ private[spark] object JsonProtocol {
639639
case `taskResultLost` => TaskResultLost
640640
case `taskKilled` => TaskKilled
641641
case `executorLostFailure` =>
642-
val executorId = (json \ "Executor ID").extract[String]
643-
ExecutorLostFailure(executorId)
642+
val executorId = Utils.jsonOption(json \ "Executor ID").map(_.extract[String])
643+
ExecutorLostFailure(executorId.getOrElse("Unknown"))
644644
case `unknownReason` => UnknownReason
645645
}
646646
}

0 commit comments

Comments
 (0)