You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Mridul Muralidharan (JIRA)" <ji...@apache.org> on 2017/04/04 00:15:41 UTC

[jira] [Comment Edited] (SPARK-20205) DAGScheduler posts SparkListenerStageSubmitted before updating stage

    [ https://issues.apache.org/jira/browse/SPARK-20205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15954387#comment-15954387 ] 

Mridul Muralidharan edited comment on SPARK-20205 at 4/4/17 12:15 AM:
----------------------------------------------------------------------

For history server that will fail - good point.
Atleast for custom listeners, users can workaround until next release by using current time (in there code when field submissionTime  is None).
Thanks for clarifying [~vanzin] !


was (Author: mridulm80):
For history server that will fail - good point. Atleast for custom listeners, users can workaround until next release by using current time.
Thanks for clarifying [~vanzin] !

> DAGScheduler posts SparkListenerStageSubmitted before updating stage
> --------------------------------------------------------------------
>
>                 Key: SPARK-20205
>                 URL: https://issues.apache.org/jira/browse/SPARK-20205
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 2.2.0
>            Reporter: Marcelo Vanzin
>
> Probably affects other versions, haven't checked.
> The code that submits the event to the bus is around line 991:
> {code}
>     stage.makeNewStageAttempt(partitionsToCompute.size, taskIdToLocations.values.toSeq)
>     listenerBus.post(SparkListenerStageSubmitted(stage.latestInfo, properties))
> {code}
> Later in the same method, the stage information is updated (around line 1057):
> {code}
>     if (tasks.size > 0) {
>       logInfo(s"Submitting ${tasks.size} missing tasks from $stage (${stage.rdd}) (first 15 " +
>         s"tasks are for partitions ${tasks.take(15).map(_.partitionId)})")
>       taskScheduler.submitTasks(new TaskSet(
>         tasks.toArray, stage.id, stage.latestInfo.attemptId, jobId, properties))
>       stage.latestInfo.submissionTime = Some(clock.getTimeMillis())
> {code}
> That means an event handler might get a stage submitted event with an unset submission time.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org