Skip to content

Conversation

@DomGarguilo
Copy link
Member

Looked through the code for places that use Collections.syncronized*. The docs for these collections reads:

It is imperative that the user manually synchronize on the returned list when traversing it

This PR fixes all the spots in the code that I found that where not iterating within a synchronized block.

This PR also simplifies TimeoutTracker creation with computeIfAbsent in batch reader/writer code.

@DomGarguilo DomGarguilo self-assigned this Jan 12, 2026
---------

Co-authored-by: Keith Turner <kturner@apache.org>
@DomGarguilo DomGarguilo merged commit f08e3ca into apache:2.1 Jan 13, 2026
8 checks passed
@DomGarguilo DomGarguilo deleted the fixCollectionConcurrency branch January 13, 2026 18:13
@ctubbsii ctubbsii added this to the 2.1.5 milestone Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants