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

AsyncAppenderBase swallows InterruptedException

    Details

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

      Description

      AsyncAppenderBase swallows InterruptedException and thereby clears the interrupt flag. This affects my interrupt handling.
      Is this really intended behaviour?

      Offending code:

      try {
          blockingQueue.put(eventObject);
      } catch (InterruptedException e) {
      }
      

      Test case:

      Thread.currentThread().interrupt();
      logger.debug("Something");
      assertTrue(Thread.currentThread().isInterrupted());
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ceki Ceki Gülcü
                Reporter:
                henrikno Henrik Nordvik
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: