Skip to content

Commit

Permalink
[CORE] SPARK-6880: Fixed null check when all the dependent stages are…
Browse files Browse the repository at this point in the history
… cancelled due to previous stage failure
  • Loading branch information
pankaj arora committed Apr 13, 2015
1 parent c5b0b29 commit 4575720
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -818,13 +818,12 @@ class DAGScheduler(
}
}

val properties = if (jobIdToActiveJob.contains(jobId)) {
jobIdToActiveJob(stage.jobId).properties
} else {
// this stage will be assigned to "default" pool
null
val activeJob = jobIdToActiveJob.get(stage.jobId).getOrElse(null)
val properties = if (activeJob != null) {
activeJob.properties
} else {
null
}

runningStages += stage
// SparkListenerStageSubmitted should be posted before testing whether tasks are
// serializable. If tasks are not serializable, a SparkListenerStageCompleted event
Expand Down

0 comments on commit 4575720

Please sign in to comment.