cloud-fan commented on code in PR #36564:
URL: https://github.com/apache/spark/pull/36564#discussion_r892518640


##########
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:
   This is not safe. I think we should post an event to the dag scheduler event 
look to abort a stage. See also `DAGScheduler.cancelStage`



-- 
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]

Reply via email to