DelegatedExecutorService disables thread dump in stuck threads warning
Closed this issue · 1 comments
nicktindall commented
In Threads.shutdown[Daemon]
if the ExecutorService doesn't terminate, a warning is displayed which details the stack trace of the thread(s) that are preventing shutdown.
This works only when the ExecutorService is a ThreadPoolExecutor.
Unfortunately in java.concurrrent.Executors
it's quite common to get back an executor service wrapped in some flavour of java.util.concurrent.Executors.DelegatedExecutorService
.
It would be good if we could resolve the delegation in order to find a ThreadPoolExecutor
to make that warning more useful.
hft-team-city commented
Released in Chronicle-Threads-2.21ea43, BOM-2.21ea123