pan3793 commented on code in PR #38651: URL: https://github.com/apache/spark/pull/38651#discussion_r1021830231
########## 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: yes, will update it tomorrow. -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org