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

ConcurrentModificationException when LoggerContext.reset

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.1.7
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: