Ngone51 commented on code in PR #38702: URL: https://github.com/apache/spark/pull/38702#discussion_r1040532427
########## core/src/main/scala/org/apache/spark/status/AppStatusListener.scala: ########## @@ -645,8 +645,11 @@ private[spark] class AppStatusListener( } override def onTaskEnd(event: SparkListenerTaskEnd): Unit = { - // TODO: can this really happen? - if (event.taskInfo == null) { + // TODO: can taskInfo null really happen? + // For resubmitted tasks caused by ExecutorLost, the SparkListenerTaskEnd is useless and + // will make activeTask in stage to be negative, this will cause stage not be removed in + // liveStages, and finally cause executor not removed in deadExecutors + if (event.taskInfo == null || event.reason == Resubmitted) { Review Comment: > Can the change not simply be limited to... Ok..if our target is to only be able to remove the dead executors, I think this's good enough. But if we also want to correct the metrics, it's not enough. -- 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