tillrohrmann commented on a change in pull request #9106: [FLINK-13184][yarn] Support launching task executors with multi-thread on YARN. URL: https://github.com/apache/flink/pull/9106#discussion_r313573688
########## File path: flink-yarn/src/test/java/org/apache/flink/yarn/YarnResourceManagerTest.java ########## @@ -310,6 +311,14 @@ void runTest(RunnableWithException testMethod) throws Exception { stopResourceManager(); } } + + public void waitForThreadPoolExecution() throws Exception { + ThreadPoolExecutor executor = (ThreadPoolExecutor) resourceManager.getStartContainerExecutor(); + while (!(executor.getQueue().size() == 0 && executor.getActiveCount() == 0)) { + log.info("Waiting for all launch container requests been executed."); + Thread.sleep(500); Review comment: sleep is too long ---------------------------------------------------------------- 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 With regards, Apache Git Services