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

Fix concurrent modification when creating TrackerEvent by copying the payload (close #692) #696

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

matus-tomlein
Copy link
Contributor

Issue #692

This PR aims to address the exception thrown in the TrackerEvent when the payload is initialized by calling HashMap() which runs an iterator on the data. The iterator can raise an error in case the data is modified.

The fix is to copy to the dataPayload using toMap() which should help avoid problems with modification of the source data.

This is only a theoretical fix as I was unable to reproduce the issue.

Copy link
Contributor

@mscwilson mscwilson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@matus-tomlein matus-tomlein merged commit 5376f11 into master Aug 22, 2024
2 of 3 checks passed
@matus-tomlein matus-tomlein deleted the issue/692-concurrent_modifiation branch August 22, 2024 14:31
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.

2 participants