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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]