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

RUMM-2780: Synchronize access to DatadogRumMonitor#rootScope when processing fatal error #1186

Conversation

0xnm
Copy link
Contributor

@0xnm 0xnm commented Dec 9, 2022

What does this PR do?

Fixes #1178. When processing fatal error rootScope should be synchronized as well, as for the normal flow.

Otherwise 2 threads may enter RumScope simultaneously, leading to the different bugs like ConcurrentModificationException.

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@0xnm 0xnm requested a review from a team as a code owner December 9, 2022 13:53
@0xnm 0xnm force-pushed the nogorodnikov/rumm-2780/synchronize-access-to-root-scope-when-processing-fatal-error branch from 1359f0a to 8516f72 Compare December 9, 2022 13:58
@0xnm 0xnm changed the title Synchronize access to DatadogRumMonitor#rootScope when processing fatal error RUMM-2780: Synchronize access to DatadogRumMonitor#rootScope when processing fatal error Dec 9, 2022
@0xnm 0xnm force-pushed the nogorodnikov/rumm-2780/synchronize-access-to-root-scope-when-processing-fatal-error branch from 8516f72 to a845e60 Compare December 12, 2022 09:03
@0xnm 0xnm merged commit b627277 into develop Dec 12, 2022
@0xnm 0xnm deleted the nogorodnikov/rumm-2780/synchronize-access-to-root-scope-when-processing-fatal-error branch December 12, 2022 15:14
@xgouchet xgouchet added this to the 1.16.0 milestone Dec 13, 2023
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.

Fatal Exception: java.util.ConcurrentModificationException
3 participants