Repository: spark
Updated Branches:
  refs/heads/branch-1.2 7a4be0b45 -> 1770c51b2


[SPARK-5132][Core]Correct stage Attempt Id key in stageInfofromJson

SPARK-5132:
stageInfoToJson: Stage Attempt Id
stageInfoFromJson: Attempt Id

Author: hushan[胡珊] <hus...@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 <joshro...@databricks.com>


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/1770c51b
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/1770c51b
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/1770c51b

Branch: refs/heads/branch-1.2
Commit: 1770c51b2400ef66e16c8cbca05aa955290c384c
Parents: 7a4be0b
Author: hushan[胡珊] <hus...@xiaomi.com>
Authored: Wed Jan 7 12:09:12 2015 -0800
Committer: Josh Rosen <joshro...@databricks.com>
Committed: Wed Jan 7 12:09:45 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/1770c51b/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: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to