Jetty Version
12
Jetty Environment
core
Java Version
25
Question
|
if (queue.remainingCapacity() != Integer.MAX_VALUE) |
|
{ |
|
LOG.warn("Detected thread pool queue {} bounded at {} entries, which can lead to unexpected behavior. Use an unbounded queue instead.", queue.getClass(), queue.remainingCapacity()); |
|
_capacity = queue.remainingCapacity(); |
|
} |
here issues a warning, but with the behaviour change, maybe it is better to fail loudly so users clearly knows that they are expected to use an unbounded queue for QueuedThreadPool. I don't have any context of the change and backward compatibility need, so just asking. Thanks you.
Jetty Version
12
Jetty Environment
core
Java Version
25
Question
jetty.project/jetty-core/jetty-util/src/main/java/org/eclipse/jetty/util/thread/QueuedThreadPool.java
Lines 184 to 188 in e6dfddc