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

ConcurrentModificationException when LoggerContext.reset

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.1.7
    • 1.0.0
    • None
    • None

    Description

      Not sure if it's a bug. Should we expect this to be thread safe:

      //should below work in concurrent scenario?
      {
        LoggerContext context = (LoggerContext) LoggerFactory.getILoggerFactory();
        //configure the context somehow 
        context.reset()
      }
      

      I'm facing this issue from time to time:

      Caused by: java.util.ConcurrentModificationException
          at ch.qos.logback.classic.Logger.recursiveReset(Logger.java:372)
          at ch.qos.logback.classic.LoggerContext.reset(LoggerContext.java:223)
      

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            szczepiq Szczepan Faber
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: