HuangZhenQiu commented on a change in pull request #8952: URL: https://github.com/apache/flink/pull/8952#discussion_r547784241
########## File path: flink-runtime/src/main/java/org/apache/flink/runtime/resourcemanager/active/ActiveResourceManager.java ########## @@ -259,6 +286,22 @@ private void requestNewWorker(WorkerResourceSpec workerResourceSpec) { })); } + private void tryResetWorkerCreationCoolDown() { + if (workerCreationCoolDown.isDone()) { + log.info("Worker creation failed. Will not retry creating worker in {}.", workerCreationRetryInterval); Review comment: Revised ########## File path: flink-runtime/src/main/java/org/apache/flink/runtime/resourcemanager/active/ActiveResourceManager.java ########## @@ -259,6 +286,22 @@ private void requestNewWorker(WorkerResourceSpec workerResourceSpec) { })); } + private void tryResetWorkerCreationCoolDown() { + if (workerCreationCoolDown.isDone()) { + log.info("Worker creation failed. Will not retry creating worker in {}.", workerCreationRetryInterval); + workerCreationCoolDown = new CompletableFuture<>(); + getMainThreadExecutor().schedule( Review comment: Revised. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org