spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcelo Vanzin (JIRA)" <>
Subject [jira] [Created] (SPARK-20205) DAGScheduler posts SparkListenerStageSubmitted before updating stage
Date Mon, 03 Apr 2017 21:09:41 GMT
Marcelo Vanzin created SPARK-20205:

             Summary: DAGScheduler posts SparkListenerStageSubmitted before updating stage
                 Key: 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:

    stage.makeNewStageAttempt(partitionsToCompute.size, taskIdToLocations.values.toSeq), properties))

Later in the same method, the stage information is updated (around line 1057):

    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.latestInfo.attemptId, jobId, properties))
      stage.latestInfo.submissionTime = Some(clock.getTimeMillis())

That means an event handler might get a stage submitted event with an unset submission time.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message