Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Commons Threads 3.2.6
-
None
Description
In o.a.s.commons.threads.impl.ThreadExpiringThreadPool a RuntimeException with message "Kill old thread" is used in checkMaxThreadAge(final Thread thread). This leads by default to a suspension of the thread when debugging with Eclipse (as since Neon JDT will suspend the thread on all uncaught exceptions). More information is available in http://stackoverflow.com/questions/6290470/eclipse-debugger-always-blocks-on-threadpoolexecutor-without-any-obvious-excepti. There should be a different mechanism to kill the thread than an uncaught exception.
Attachments
Attachments
Issue Links
- breaks
-
SLING-7432 Thread pool clean up code can lead to infinite loops in ThreadLocal.get
- Resolved
-
SLING-7320 NPE in sling commons threads
- Resolved
- causes
-
SLING-12212 Don't emit stacktrace when ThreadPoolExecutorCleaningThreadLocals cannot be initialized
- Closed
- is broken by
-
SLING-4676 Clean up threads or refresh threads when put back into the pool
- Closed
- is related to
-
SLING-6257 Sling IDE: Debugging: Thread interrupted for every uncaught exception
- Resolved