The ScheduledThreadPoolExecutor from the JDK has a flaw that it has an unbounded queue task, which mean you can keep scheduling tasks to it, and it will never reject the tasks.
This could potential cause to eat up all memory if you add more tasks, than the thread pool can execute.
We need to guard the thread pool, and reject tasks if a queue size has been reached.
The default queue size in Camel is 1000, so the guard should use that option.
|Field||Original Value||New Value|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Resolution||Fixed [ 1 ]|
|Fix Version/s||2.9.0 [ 12316374 ]|
|Fix Version/s||2.9.1 [ 12319191 ]|
|Fix Version/s||2.8.4 [ 12319072 ]|
|Affects Version/s||2.8.3 [ 12318649 ]|