jetty.project icon indicating copy to clipboard operation
jetty.project copied to clipboard

Improve QueuedThreadPool handling of rejected jobs

Open sbordet opened this issue 6 months ago • 6 comments
trafficstars

Jetty version(s) 12.0.x

Enhancement Description In QueuedThreadPool, if a job fails to be added to the queue, it is immediately rejected.

This is different from JDK's ThreadPoolExecutor, where if the job fails to be added to the queue, there is an attempt at creating one more thread with that job already assigned to it, and only if the thread cannot be created then the job is rejected.

sbordet avatar May 06 '25 09:05 sbordet