RUM-4329: Fix ConcurrentModificationException during features iteration#2012
Merged
0xnm merged 1 commit intoApr 30, 2024
Conversation
fuzzybinary
approved these changes
Apr 29, 2024
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #2012 +/- ##
===========================================
- Coverage 83.76% 83.69% -0.07%
===========================================
Files 488 488
Lines 17779 17778 -1
Branches 2667 2667
===========================================
- Hits 14892 14879 -13
- Misses 2174 2178 +4
- Partials 713 721 +8
|
xgouchet
approved these changes
Apr 29, 2024
xgouchet
left a comment
Contributor
There was a problem hiding this comment.
Note
NitPick: it'd be nice to write a test that reproduces this issue, and then ensure the fix fixes it
0xnm
force-pushed
the
nogorodnikov/rum-4329/fix-concurrent-modification-exception-during-features-iteration
branch
2 times, most recently
from
April 30, 2024 08:18
08e762c to
c5d5456
Compare
Member
Author
|
@xgouchet fair point, I've updated my PR with test. |
0xnm
force-pushed
the
nogorodnikov/rum-4329/fix-concurrent-modification-exception-during-features-iteration
branch
from
April 30, 2024 08:20
c5d5456 to
29df747
Compare
marco-saia-datadog
approved these changes
Apr 30, 2024
xgouchet
approved these changes
Apr 30, 2024
0xnm
deleted the
nogorodnikov/rum-4329/fix-concurrent-modification-exception-during-features-iteration
branch
April 30, 2024 09:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
It is possible to have a crash like that:
The problem is that
DatadogCore.featurescan be accessed from different threads. This PR makes access for the items of this collection thread-safe.Motivation
What inspired you to submit this pull request?
Additional Notes
Anything else we should know when reviewing?
Review checklist (to be filled by reviewers)