[logback-dev] [JIRA] (LOGBACK-1354) Errors cause AsyncAppender's worker thread to terminate causing halting
noreply-jira at qos.ch
Fri Dec 1 05:02:00 CET 2017
Greg created LOGBACK-1354:
Summary: Errors cause AsyncAppender's worker thread to terminate causing halting
Issue Type: Bug
Affects Versions: 1.2.3
Environment: (Not environment specific.)
Assignee: Logback dev list
The AsyncAppender worker thread, defined in AsyncAppenderBase, consumes log entries from a bounded blocking queue. Should this worker thread terminate prematurely for any reason and the AsyncAppender be configured as blocking (neverBlock=false) the queue fills and any calls to log block indefinitely.
The worker thread is currently indirectly tolerant of exceptions thrown by an appender, due to the exception handling in AppenderBase.doAppend, but this exception handling does not cover other Throwable types.
Ideally, the AsyncAppender worker thread should do everything possible to stay alive while the appender is started.
This message was sent by Atlassian JIRA
More information about the logback-dev