Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Commons Threads 3.2.6
-
None
Description
DefaultThreadPool inappropriately emits a warning when a pool has a min pool size of 0.
A min pool size of 0 is supported by the downstream ThreadExpiringThreadPool, and is logically useful when 'empty' is a reasonable size of a pool, e.g. when no work is apriori expected for the pool.
The code in question is:
// Min pool size
if (this.configuration.getMinPoolSize() < 1)
The downstream code in ThreadExpiringThreadPool only enforces this value is >= 0.