diff options
author | hushan[胡珊] <hushan@xiaomi.com> | 2015-01-07 12:09:12 -0800 |
---|---|---|
committer | Josh Rosen <joshrosen@databricks.com> | 2015-01-07 12:09:45 -0800 |
commit | 1770c51b2400ef66e16c8cbca05aa955290c384c (patch) | |
tree | 5a47345d257459b367710b47e06b1095697e2a0e /core/src | |
parent | 7a4be0b45f003ce92031d36bf74a736a87889026 (diff) | |
download | spark-1770c51b2400ef66e16c8cbca05aa955290c384c.tar.gz spark-1770c51b2400ef66e16c8cbca05aa955290c384c.tar.bz2 spark-1770c51b2400ef66e16c8cbca05aa955290c384c.zip |
[SPARK-5132][Core]Correct stage Attempt Id key in stageInfofromJson
SPARK-5132:
stageInfoToJson: Stage Attempt Id
stageInfoFromJson: Attempt Id
Author: hushan[胡珊] <hushan@xiaomi.com>
Closes #3932 from suyanNone/json-stage and squashes the following commits:
41419ab [hushan[胡珊]] Correct stage Attempt Id key in stageInfofromJson
(cherry picked from commit d345ebebd554ac3faa4e870bd7800ed02e89da58)
Signed-off-by: Josh Rosen <joshrosen@databricks.com>
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/main/scala/org/apache/spark/util/JsonProtocol.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/scala/org/apache/spark/util/JsonProtocol.scala b/core/src/main/scala/org/apache/spark/util/JsonProtocol.scala index e7b80e8774..d94e825265 100644 --- a/core/src/main/scala/org/apache/spark/util/JsonProtocol.scala +++ b/core/src/main/scala/org/apache/spark/util/JsonProtocol.scala @@ -530,7 +530,7 @@ private[spark] object JsonProtocol { def stageInfoFromJson(json: JValue): StageInfo = { val stageId = (json \ "Stage ID").extract[Int] - val attemptId = (json \ "Attempt ID").extractOpt[Int].getOrElse(0) + val attemptId = (json \ "Stage Attempt ID").extractOpt[Int].getOrElse(0) val stageName = (json \ "Stage Name").extract[String] val numTasks = (json \ "Number of Tasks").extract[Int] val rddInfos = (json \ "RDD Info").extract[List[JValue]].map(rddInfoFromJson(_)) |