xintongsong commented on a change in pull request #8952:
URL: https://github.com/apache/flink/pull/8952#discussion_r547826360
##########
File path:
flink-runtime/src/test/java/org/apache/flink/runtime/resourcemanager/active/ActiveResourceManagerTest.java
##########
@@ -378,15 +382,69 @@ public void testOnError() throws Exception {
}};
}
- private static class Context {
+ @Test
+ public void testWorkerCreationInterval() throws Exception {
+ Configuration configuration = new Configuration();
+
configuration.setDouble(ResourceManagerOptions.MAXIMUM_WORKERS_FAILURE_RATE, 1);
+
configuration.setLong(ResourceManagerOptions.WORKER_CREATION_RETRY_INTERVAL,
+ WORKER_CREATION_INTERVAL.toMilliseconds());
+ new Context(configuration) {{
Review comment:
That's not true. The resource manager is created when `runTest` is
called.
----------------------------------------------------------------
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:
[email protected]