Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-1247

AsyncAppender drops events when the current thread is interrupted

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.2
    • Component/s: logback-core
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ceki Ceki Gülcü
                Reporter:
                jakber Jakob Bergendahl
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: