LuciferYang commented on code in PR #38651:
URL: https://github.com/apache/spark/pull/38651#discussion_r1021225985
##########
resource-managers/kubernetes/core/src/main/scala/org/apache/spark/scheduler/cluster/k8s/ExecutorPodsSnapshotsStoreImpl.scala:
##########
@@ -94,7 +95,9 @@ private[spark] class ExecutorPodsSnapshotsStoreImpl(
override def stop(): Unit = {
pollingTasks.asScala.foreach(_.cancel(false))
- ThreadUtils.shutdown(subscribersExecutor)
+ // SPARK-41136: it may be called by MGR, and since that MGR has a default
30s timeout, here
+ // a shorter duration 20s is chosen to prevent blocking the following
shutdown process.
+ ThreadUtils.shutdown(subscribersExecutor, FiniteDuration(20,
TimeUnit.SECONDS))
Review Comment:
Can this be configurable?
--
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]