Github user zsxwing commented on a diff in the pull request: https://github.com/apache/spark/pull/20178#discussion_r160236611 --- Diff: core/src/main/scala/org/apache/spark/scheduler/StageInfo.scala --- @@ -56,6 +56,8 @@ class StageInfo( completionTime = Some(System.currentTimeMillis) } + def attemptNumber(): Int = attemptId --- End diff -- Oh, I was wrong. It seems the rest api doesn't use this class. It's using `org.apache.spark.status.api.v1.StageData`. However, it's also called `attemptId` in this class.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org