We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82f78bb commit e52b829Copy full SHA for e52b829
core/src/main/scala/org/apache/spark/scheduler/DAGScheduler.scala
@@ -1056,7 +1056,8 @@ class DAGScheduler(
1056
job.listener.jobFailed(error)
1057
1058
val shouldInterruptThread =
1059
- job.properties.getProperty(SparkContext.SPARK_JOB_INTERRUPT_ON_CANCEL, "false").toBoolean
+ if (job.properties == null) false
1060
+ else job.properties.getProperty(SparkContext.SPARK_JOB_INTERRUPT_ON_CANCEL, "false").toBoolean
1061
1062
// Cancel all independent, running stages.
1063
val stages = jobIdToStageIds(job.jobId)
0 commit comments