Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
1.10.2, 1.11.0
Description
In FLINK-17558, we introduce Executors#newCachedThreadPool to create dedicated thread pool for TaskManager io. However, it could not work as expected.
The root cause is about the following constructor of ThreadPoolExecutor. Only when the workQueue is full, new thread will be started then. So if we set a LinkedBlockingQueue with Integer.MAX_VALUE capacity, only one thread will be started. It never grows up.
public ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory)
Attachments
Issue Links
- is caused by
-
FLINK-17558 Partitions are released in TaskExecutor Main Thread
- Closed
- links to