[logback-dev] [JIRA] (LOGBACK-1247) AsyncAppender drops events when the current thread is interrupted

QOS.CH (JIRA) noreply-jira at qos.ch
Mon Jan 23 16:57:00 CET 2017


Jakob Bergendahl created LOGBACK-1247:
-----------------------------------------

             Summary: AsyncAppender drops events when the current thread is interrupted
                 Key: LOGBACK-1247
                 URL: https://jira.qos.ch/browse/LOGBACK-1247
             Project: logback
          Issue Type: Bug
          Components: logback-core
            Reporter: Jakob Bergendahl
            Assignee: Logback dev list


As mentioned in a comment on LOGBACK-910, the AsyncAppender will silently drop events when the current thread is interrupted. The simplest test for this is:

    Thread.currentThread().interrupt();
    log.warn("message 1"); // This was always dropped
    log.warn("message 2"); // This is also dropped since LOGBACK-910 was fixed

Instead I expect the calls to block until the messages can be added to the queue and the interrupt status to be unchanged.



--
This message was sent by Atlassian JIRA
(v6.4.12#64027)


More information about the logback-dev mailing list