sarutak commented on a change in pull request #33253: URL: https://github.com/apache/spark/pull/33253#discussion_r675309447
########## File path: core/src/main/scala/org/apache/spark/status/AppStatusListener.scala ########## @@ -746,6 +752,24 @@ private[spark] class AppStatusListener( maybeUpdate(esummary, now) } + val speculationStageSummary = stage.speculationStageSummary + if (event.taskInfo.speculative) { + speculationStageSummary.numActiveTasks -= 1 + speculationStageSummary.numCompletedTasks += completedDelta + speculationStageSummary.numFailedTasks += failedDelta + speculationStageSummary.numKilledTasks += killedDelta + } + speculationStageSummary.killedTasksSummary = killedTaskSummaryForSpeculationStageSummary( + event.reason, + speculationStageSummary.killedTasksSummary, + event.taskInfo.speculative) + + if (isLastTask) { Review comment: `speculationsStageSummary` is optional so we should update it only for speculative tasks. -- 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