pan3793 commented on code in PR #38732:
URL: https://github.com/apache/spark/pull/38732#discussion_r1028083213
##########
resource-managers/kubernetes/core/src/main/scala/org/apache/spark/scheduler/cluster/k8s/ExecutorPodsAllocator.scala:
##########
@@ -136,6 +151,10 @@ class ExecutorPodsAllocator(
def isDeleted(executorId: String): Boolean =
deletedExecutorIds.contains(executorId.toLong)
+ private[k8s] def stopApplication(exitCode: Int): Unit = {
+ SparkContext.getActive.foreach(_.stop(exitCode))
Review Comment:
It's not elegant, but `AbstractPodsAllocator` is a developer api, introduce
parameter sc will change the signature of constructor, suggestions are welcome
here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]