Skip to content

Commit

Permalink
Don't use job.properties when null
Browse files Browse the repository at this point in the history
  • Loading branch information
aarondav committed Apr 23, 2014
1 parent 82f78bb commit e52b829
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,8 @@ class DAGScheduler(
job.listener.jobFailed(error)

val shouldInterruptThread =
job.properties.getProperty(SparkContext.SPARK_JOB_INTERRUPT_ON_CANCEL, "false").toBoolean
if (job.properties == null) false
else job.properties.getProperty(SparkContext.SPARK_JOB_INTERRUPT_ON_CANCEL, "false").toBoolean

// Cancel all independent, running stages.
val stages = jobIdToStageIds(job.jobId)
Expand Down

0 comments on commit e52b829

Please sign in to comment.