Github user merlimat commented on the issue: https://github.com/apache/bookkeeper/pull/152 I got a bit scared when I saw `ScheduledThreadPoolExecutor` is pass `MAX_INT` as the max thread pool size.. but I think the current code is correct. I just did a quick verification and indeed it doesn't create more than one thread : ```java public static void main(String[] args) { ScheduledThreadPoolExecutor e = new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat("test-%d").build()); for (int i = 0; i < 10; i++) { final int n = i; e.submit(() -> { System.out.println( Thread.currentThread().getName() + " | Start task " + n); try { Thread.sleep(1000); System.out.println( Thread.currentThread().getName() + " | Done task " + n); } catch (InterruptedException e1) { e1.printStackTrace(); } }); } e.shutdown(); } ``` Closing this PR as no fix is needed
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---