Skip to content

Commit

Permalink
Backward-compatible support
Browse files Browse the repository at this point in the history
  • Loading branch information
zsxwing committed Nov 1, 2014
1 parent a3bca65 commit 0c07d1f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/src/main/scala/org/apache/spark/util/JsonProtocol.scala
Original file line number Diff line number Diff line change
Expand Up @@ -628,8 +628,9 @@ private[spark] object JsonProtocol {
val shuffleId = (json \ "Shuffle ID").extract[Int]
val mapId = (json \ "Map ID").extract[Int]
val reduceId = (json \ "Reduce ID").extract[Int]
val message = (json \ "Message").extract[String]
new FetchFailed(blockManagerAddress, shuffleId, mapId, reduceId, message)
val message = Utils.jsonOption(json \ "Message").map(_.extract[String])
new FetchFailed(blockManagerAddress, shuffleId, mapId, reduceId,
message.getOrElse("Unknown"))
case `exceptionFailure` =>
val className = (json \ "Class Name").extract[String]
val description = (json \ "Description").extract[String]
Expand Down

0 comments on commit 0c07d1f

Please sign in to comment.