Github user squito commented on a diff in the pull request:
https://github.com/apache/spark/pull/17925#discussion_r115887910
--- Diff: core/src/main/scala/org/apache/spark/scheduler/DAGScheduler.scala
---
@@ -1054,15 +1053,17 @@ class DAGScheduler(
return
}
+ // Mark the stage as submitted and send an event on the bus. If there
are pending tasks, submit
+ // them, otherwise immediately mark the stage as finished, and submit
any child stages.
+ stage.latestInfo.submissionTime = Some(clock.getTimeMillis())
--- End diff --
why not just put this before the old listenerBus.post() on L991?
this change also changes the behavior if there is a an exception while
creating the tasks -- you no longer post a SparkListenerStageSubmitted.
I don't have any particular reason why you'd want the behavior one way or
the other, but w/out an argument for actually changing the behavior, I'd rather
do the minimal change.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]