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

AppenderBase has non-threadsafe started variable

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.1.2
    • logback-core
    • None

    Description

      I'm seeing flaky tests using a ListAppender - sometimes events are getting on to it, sometimes not. Looking at it, the started variable is not volatile nor is access to it synchronized, despite it being accessed in multiple threads. I'm suspicious that other threads are not seeing the change in state from false to true.

      Attachments

        Activity

          People

            logback-dev Logback dev list
            mahoney Robert Elliot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: