Skip to content

Commit

Permalink
TaskSchedulerImpl - stop TaskResultGetter properly
Browse files Browse the repository at this point in the history
  • Loading branch information
lxian committed Sep 24, 2021
1 parent c77c0d4 commit b7580d1
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -928,13 +928,17 @@ private[spark] class TaskSchedulerImpl(
override def stop(): Unit = {
speculationScheduler.shutdown()
if (backend != null) {
backend.stop()
Utils.tryLogNonFatalError {
backend.stop()
}
}
if (taskResultGetter != null) {
taskResultGetter.stop()
}
if (barrierCoordinator != null) {
barrierCoordinator.stop()
Utils.tryLogNonFatalError {
barrierCoordinator.stop()
}
}
starvationTimer.cancel()
abortTimer.cancel()
Expand Down

0 comments on commit b7580d1

Please sign in to comment.