dongjoon-hyun commented on code in PR #59114:
URL: https://github.com/apache/spark/pull/59114#discussion_r4133776741
##########
resource-managers/kubernetes/core/src/test/scala/org/apache/spark/scheduler/cluster/k8s/ExecutorResizePluginSuite.scala:
##########
@@ -365,4 +365,20 @@ class ExecutorResizePluginSuite
assert(result.isEmpty)
}
}
+
+ test("SPARK-59842: resizeInterval defaults to 1 minute") {
+ assert(new SparkConf(false).get(EXECUTOR_RESIZE_INTERVAL) === 60)
+ }
+
+ test("SPARK-59842: init returns early when resizeInterval is 0") {
Review Comment:
Thank you, @sarutak. I added a test case to verify that `init` schedules the
resize task by default. Since `init` returns an empty map in both cases, the
test checks the task queue of `periodicService` directly.
--
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]