-
Notifications
You must be signed in to change notification settings - Fork 533
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(flags): Fix bug where concurrent accesses to the flags property could raise a RunTime error #4034
Conversation
❌ 54 Tests Failed:
View the top 3 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
@antonpirker Strawberry integration seems broken for unrelated reasons. |
Apologies if this isn’t the right place to ask. We started a discussion about this fix but haven't received a response.
|
@antoniobg This is a fine place. Discussions don't send Slack notifications so apologies I missed it. Thanks for raising. I'll respond on the discussion topic to keep everything in one place. |
On error the SDK deep copies the flag buffer. If the SDK is receiving flags at the same time, the buffer copy can potentially raise a RunTime error. To fix this we guard the FlagBuffer with a lock.
Fixes: https://sentry.sentry.io/issues/6286673308/?project=1