We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca6fe35 commit 2c86a9eCopy full SHA for 2c86a9e
core/src/main/scala/org/apache/spark/scheduler/JobWaiter.scala
@@ -62,15 +62,15 @@ private[spark] class JobWaiter[T](
62
if (finishedTasks == totalTasks) {
63
_jobFinished = true
64
jobResult = JobSucceeded
65
- promise.success()
+ promise.trySuccess()
66
this.notifyAll()
67
}
68
69
70
override def jobFailed(exception: Exception): Unit = synchronized {
71
72
jobResult = JobFailed(exception)
73
- promise.failure(exception)
+ promise.tryFailure(exception)
74
75
76
0 commit comments