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

AsyncAppenderBase swallows InterruptedException

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.1.4
    • 1.0.13
    • logback-core
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: