[prev in list] [next in list] [prev in thread] [next in thread] 

List:       logback-dev
Subject:    [logback-dev] [JIRA] Updates for LOGBACK-1725: RollingFileAppender.start causes ConcurrentModificati
From:       "QOS.CH (JIRA)" <noreply-jira () qos ! ch>
Date:       2023-02-17 13:05:00
Message-ID: JIRA.16996.1676638234000.330.1676639100004 () Atlassian ! JIRA
[Download RAW message or body]

logback / LOGBACK-1725 [Open]
RollingFileAppender.start causes ConcurrentModificationException

==============================

Here's what changed in this issue in the last few minutes.
This issue has been created
This issue is now assigned to you.

View or comment on issue using this link
https://jira.qos.ch/browse/LOGBACK-1725

==============================
 Issue created
------------------------------

David Otto created this issue on 17/Feb/23 1:50 PM
Summary:              RollingFileAppender.start causes \
ConcurrentModificationException Issue Type:           Bug
Assignee:             Logback dev list
Created:              17/Feb/23 1:50 PM
Environment:
  In our application we add and remove appenders dynamically. We postpone the \
`.start()` call until the first messages arrives to avoid empty files.  
  There might be more than one thread calling start() on the same RFA
  
  We got this error:
  
   
  {code:java}
  java.util.ConcurrentModificationException: null
          at java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1597)
          at java.base/java.util.HashMap$EntryIterator.next(HashMap.java:1630)
          at java.base/java.util.HashMap$EntryIterator.next(HashMap.java:1628)
          at ch.qos.logback.core.rolling.RollingFileAppender.innerCheckForFileNamePatternCollisionInPreviousRFA(RollingFileAppender.java:135)
                
          at ch.qos.logback.core.rolling.RollingFileAppender.checkForCollisionsInPreviousRollingFileAppenders(RollingFileAppender.java:121)
                
          at ch.qos.logback.core.rolling.RollingFileAppender.start(RollingFileAppender.java:62)
  {code}
   
  is RollingFileAppender.start() supposed to be thread safe?
Priority:             Major
Reporter:             David otto


==============================
 This message was sent by Atlassian Jira (v8.8.0#808000-sha1:e2c7e59)

_______________________________________________
logback-dev mailing list
logback-dev@qos.ch
https://mailman.qos.ch/cgi-bin/mailman/listinfo/logback-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic