ListAppender: Synchronize on list while iterating#3926
ListAppender: Synchronize on list while iterating#3926bjmi wants to merge 1 commit intoapache:2.xfrom
Conversation
dbd169f to
f3c80e3
Compare
|
@bjmi, thanks so much for the contribution. |
* Returned snapshots no longer require an unmodifiable view
f3c80e3 to
e20198f
Compare
|
Thank you for your reply. Before LOG4J2-2527 the internal Lists events, data and messages were made public accessible via an unmodifiable view. I thought the copy constructors of the Collections API use the iterator of the list to be copied. And
But it turns out |
|
@bjmi, I am really reluctant to "Can you fix this aspect of X for my particular use case, please?" requests, in particular, for
@bjmi, would you be interested in revamping this tool? What I have in mind is:
|
|
@vy |
@ramanathan1504, please go ahead! |
Checklist
Before we can review and merge your changes, please go through the checklist below. If you're still working on some items, feel free to submit your pull request as a draft—our CI will help guide you through the remaining steps.
✅ Required checks
License: I confirm that my changes are submitted under the Apache License, Version 2.0.
Commit signatures: All commits are signed and verifiable. (See GitHub Docs on Commit Signature Verification).
Code formatting: The code is formatted according to the project’s style guide.
How to check and fix formatting
./mvnw spotless:check./mvnw spotless:applySee the build instructions for details.
Build & Test: I verified that the project builds and all unit tests pass.
How to build the project
Run:
./mvnw verifySee the build instructions for details.
🧪 Tests (select one)
📝 Changelog (select one)
src/changelog/.2.x.x. (See Changelog Entry File Guide).