-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ConcurrentModificationException
in updateLoggers()
#3235
Fix ConcurrentModificationException
in updateLoggers()
#3235
Conversation
Hi all, Does this mean a 2.24.3 is around the corner? |
@garydgregory, I would wait a couple of weeks to see if other bugs are reported, but, yes, I think we should release a We can also release |
log4j-core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java
Show resolved
Hide resolved
The `InternalLoggerRegistry` implementation introduced in version `2.24.2` did not return a copy of the registry, when `InternalLoggerRegistry.getLoggers()` was called. This could lead to a `ConcurrentModificationException` if a thread creates a new logger, while another thread calls `LoggerContext.updateLoggers()`. Closes #3234
4fa2d54
to
bad8b56
Compare
Why? Can't you just release 2.24.4 if another bug is found? |
@kelunik |
An Apache release process requires at least three maintainers and has a 72 hours voting period. Unless the reported problem affects most users, my personal policy is to wait a week or two to give users the time to report other problems. I will start the release process for |
Thanks for providing these details! |
The
InternalLoggerRegistry
implementation introduced in version2.24.2
did not return a copy of the registry, whenInternalLoggerRegistry.getLoggers()
was called. This could lead to aConcurrentModificationException
if a thread creates a new logger, while another thread callsLoggerContext.updateLoggers()
.Closes #3234