Skip to content

feat: flagd - make sure provider initialize only once #418

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

Conversation

Kavindu-Dodan
Copy link
Contributor

This PR

Fixed #417 by adding locks and validations to avoid provider reinitializations. This is done at provider level hence no changes necessary at service level.

Added a test to validate the logic.

Copy link
Member

@thisthat thisthat left a comment

Choose a reason for hiding this comment

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

LGTM, I left only a minor suggestion :)

Signed-off-by: Kavindu Dodanduwa <[email protected]>
@Kavindu-Dodan Kavindu-Dodan merged commit c061cf4 into open-feature:main Jan 15, 2024
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.

[flagd] validate race conditions of in-process provider
4 participants