Skip to content

Commit

Permalink
stop trigger before k8s clients
Browse files Browse the repository at this point in the history
  • Loading branch information
turboFei committed Nov 24, 2023
1 parent 3ca4b8a commit 4b11127
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,15 +241,15 @@ class KubernetesApplicationOperation extends ApplicationOperation with Logging {
}
enginePodInformers.clear()

kubernetesClients.asScala.foreach { case (_, client) =>
Utils.tryLogNonFatalError(client.close())
}
kubernetesClients.clear()

if (cleanupTerminatedAppInfoTrigger != null) {
cleanupTerminatedAppInfoTrigger.cleanUp()
cleanupTerminatedAppInfoTrigger = null
}

kubernetesClients.asScala.foreach { case (_, client) =>
Utils.tryLogNonFatalError(client.close())
}
kubernetesClients.clear()
}

private class SparkEnginePodEventHandler(kubernetesInfo: KubernetesInfo)
Expand Down

0 comments on commit 4b11127

Please sign in to comment.