cloud-fan commented on code in PR #36564: URL: https://github.com/apache/spark/pull/36564#discussion_r892521784
########## core/src/main/scala/org/apache/spark/scheduler/DAGScheduler.scala: ########## @@ -2588,6 +2588,14 @@ private[spark] class DAGScheduler( runningStages -= stage } + private[scheduler] def abortStage(stageId: Int, reason: String): Unit = { + if (!stageIdToStage.contains(stageId)) { + // Skip all the actions if the stage has been removed. + return + } + abortStage(stageIdToStage(stageId), reason, None) Review Comment: Actually, we can generalize `taskSetFailed` a little bit, as what it does is just aborting a stage. -- 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