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

Fixed null check when all the dependent stages are cancelled due to previous stage failure. This happens when one of the executor node goes down and all the dependent stages are cancelled.

Author: pankaj arora <[email protected]>

Closes #5494 from pankajarora12/NEWBRANCH and squashes the following commits:

55ba5e3 [pankaj arora] [CORE] SPARK-6880: Fixed null check when all the dependent stages are cancelled due to previous stage failure
4575720 [pankaj arora] [CORE] SPARK-6880: Fixed null check when all the dependent stages are cancelled due to previous stage failure
  • Loading branch information
pankaj arora authored and Andrew Or committed Apr 14, 2015
1 parent f63b44a commit dcf8a9f
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -818,12 +818,7 @@ class DAGScheduler(
}
}

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

runningStages += stage
// SparkListenerStageSubmitted should be posted before testing whether tasks are
Expand Down

0 comments on commit dcf8a9f

Please sign in to comment.