Skip to content
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

Fixing concurrent modification problem in VersionSpecificContextWrapper #6766

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Boereck
Copy link
Contributor

@Boereck Boereck commented Mar 3, 2025

This change fixes #6661. The test case added only checks the synchronous error case.
The concurrency issue could be tested, but not deterministically. And on my machine this
needs many iterations to trigger the problem. On my machine it takes around 5 seconds
to trigger the issue.

mbu and others added 2 commits March 3, 2025 17:55
The added test shows the issue with
VersionSpecificWorkerContextWrapper#allStructureDefinitions()
where resources are returned more than once.
Snapshotted StructureDefinitions are now added to a new list, instead
of to the list of non-snapshotted StructureDefinitions. This not only
leads to the resource being in the list twice, but also leads to
ConcurrentModificationExceptions when iterating over the result of
allStructureDefinitions().
Fixes hapifhir#6661
@Boereck Boereck changed the title Fix/concurrent mod wrapper Fixing concurrent modification problem in VersionSpecificContextWrapper Mar 3, 2025
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.

Bug in VersionSpecificWorkerContextWrapper.allStructureDefinitions()
1 participant