Repository: spark Updated Branches: refs/heads/master 60e2d9e29 -> d345ebebd
[SPARK-5132][Core]Correct stage Attempt Id key in stageInfofromJson SPARK-5132: stageInfoToJson: Stage Attempt Id stageInfoFromJson: Attempt Id Author: hushan[è¡ç] <[email protected]> Closes #3932 from suyanNone/json-stage and squashes the following commits: 41419ab [hushan[è¡ç]] Correct stage Attempt Id key in stageInfofromJson Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/d345ebeb Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/d345ebeb Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/d345ebeb Branch: refs/heads/master Commit: d345ebebd554ac3faa4e870bd7800ed02e89da58 Parents: 60e2d9e Author: hushan[è¡ç] <[email protected]> Authored: Wed Jan 7 12:09:12 2015 -0800 Committer: Josh Rosen <[email protected]> Committed: Wed Jan 7 12:09:12 2015 -0800 ---------------------------------------------------------------------- core/src/main/scala/org/apache/spark/util/JsonProtocol.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/d345ebeb/core/src/main/scala/org/apache/spark/util/JsonProtocol.scala ---------------------------------------------------------------------- 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 e7b80e8..d94e825 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(_)) --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
