sarutak commented on a change in pull request #33253: URL: https://github.com/apache/spark/pull/33253#discussion_r674267708
########## File path: core/src/main/scala/org/apache/spark/status/storeTypes.scala ########## @@ -399,6 +399,21 @@ private[spark] class ExecutorStageSummaryWrapper( } +private[spark] class SpeculationStageSummaryWrapper( + val stageId: Int, + val stageAttemptId: Int, + val info: SpeculationStageSummary) { + + @JsonIgnore @KVIndex + private val _id: Array[Int] = Array(stageId, stageAttemptId) + + @JsonIgnore @KVIndex("stage") + private def stage: Array[Int] = Array(stageId, stageAttemptId) + + private[this] val id: Array[Int] = _id + Review comment: Please remove blank line. ########## File path: core/src/main/scala/org/apache/spark/status/storeTypes.scala ########## @@ -399,6 +399,21 @@ private[spark] class ExecutorStageSummaryWrapper( } +private[spark] class SpeculationStageSummaryWrapper( Review comment: ditto. ########## File path: core/src/main/scala/org/apache/spark/status/AppStatusStore.scala ########## @@ -524,6 +529,11 @@ private[spark] class AppStatusStore( } else { None } + val speculationStageSummary: Option[v1.SpeculationStageSummary] = if (withSummaries) { Review comment: If `StageData` can contain speculation summary regardless of the value of `withSummaries`, we don't need to add new API `/speculationSummary` right? ########## File path: core/src/main/scala/org/apache/spark/status/api/v1/api.scala ########## @@ -89,6 +89,14 @@ class ExecutorStageSummary private[spark]( val peakMemoryMetrics: Option[ExecutorMetrics], val isExcludedForStage: Boolean) +class SpeculationStageSummary private[spark]( Review comment: ditto. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org