Skip to content

fix #88: use CopyOnWriteArrayList for thread-safe message list - #103

Merged
elharo merged 1 commit into
apache:masterfrom
elharo:fix-88-messageholder-sync
Aug 1, 2026
Merged

fix #88: use CopyOnWriteArrayList for thread-safe message list#103
elharo merged 1 commit into
apache:masterfrom
elharo:fix-88-messageholder-sync

Conversation

@elharo

@elharo elharo commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Change the messages list from ArrayList to CopyOnWriteArrayList to prevent ConcurrentModificationException under concurrent access.

Fixes #88

- Change the messages list from ArrayList to CopyOnWriteArrayList
- Add concurrency test for adding messages from multiple threads
@elharo
elharo marked this pull request as ready for review July 5, 2026 11:57
@elharo
elharo requested a review from khmarbaise July 5, 2026 11:58
@elharo
elharo requested a review from rmannibucau August 1, 2026 16:30
@elharo
elharo merged commit d2d52d6 into apache:master Aug 1, 2026
17 checks passed
@elharo
elharo deleted the fix-88-messageholder-sync branch August 1, 2026 19:44
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown

@elharo Please assign appropriate label to PR according to the type of change.

@github-actions github-actions Bot added this to the 3.1.0 milestone Aug 1, 2026
@elharo elharo added the bug Something isn't working label Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DefaultMessageHolder: unsynchronized ArrayList access in multi-threaded environment

3 participants