[logback-dev] [JIRA] (LOGBACK-1366) ConcurrentModificationException when calling Logger.detachAndStopAllAppenders
QOS.CH (JIRA)
noreply-jira at qos.ch
Thu Jan 4 23:35:00 CET 2018
Kenneth Gendron created LOGBACK-1366:
----------------------------------------
Summary: ConcurrentModificationException when calling Logger.detachAndStopAllAppenders
Key: LOGBACK-1366
URL: https://jira.qos.ch/browse/LOGBACK-1366
Project: logback
Issue Type: Bug
Components: logback-core
Affects Versions: 1.2.3
Reporter: Kenneth Gendron
Assignee: Logback dev list
When attempting to detach and stop all appenders (specifically SiftingAppender) associated with a logger, logback may throw a ConcurrentModificationException if another thread is currently logging.
{{java.util.ConcurrentModificationException: null}}
{{ at java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:719)}}
{{ at java.util.LinkedHashMap$LinkedValueIterator.next(LinkedHashMap.java:747)}}
{{ at ch.qos.logback.core.spi.AbstractComponentTracker.allComponents(AbstractComponentTracker.java:234)}}
{{ at ch.qos.logback.core.sift.SiftingAppenderBase.stop(SiftingAppenderBase.java:89)}}
{{ at ch.qos.logback.core.spi.AppenderAttachableImpl.detachAndStopAllAppenders(AppenderAttachableImpl.java:107)}}
{{ at ch.qos.logback.classic.Logger.detachAndStopAllAppenders(Logger.java:206)}}
{{ at automation.config.logging.LoggerGenerator.destroyLogger(LoggerGenerator.java:143)}}
{{ at processflow.ProcessHandler.destroyProcessContext(ProcessHandler.java:862)}}
{{ at automation.config.processflow.ProcessContextHandler.processConnection(ProcessContextHandler.java:636)}}
{{ at automation.config.processflow.DatabaseService$Processor.processConnection(DatabaseService.java:281)}}
{{ at appserversupport.sql.ConnectionProcessor$Processor.run(ConnectionProcessor.java:187)}}
{{ at java.lang.Thread.run(Thread.java:745)}}
--
This message was sent by Atlassian JIRA
(v7.3.1#73012)
More information about the logback-dev
mailing list