You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#370)
## This PR
<!-- add the description of the PR here -->
- Introduces RWMutex on flag state to prevent concurrent read/write of
map.
### Related Issues
<!-- add here the GitHub issue that this PR resolves if applicable -->
Fixes#368
### Notes
<!-- any additional notes for this PR -->
### Follow-up Tasks
<!-- anything that is related to this PR but not done here should be
noted under this section -->
<!-- if there is a need for a new issue, please link it here -->
### How to test
<!-- if applicable, add testing instructions under this section -->
---------
Signed-off-by: Skye Gill <gill.skye95@gmail.com>
Observed behavior
While repeatedly running the integration tests I ran into the following race condition which crashed flagd.
Expected Behavior
No such crash.
Steps to reproduce
Run the integration tests, occurs when the flag change notification causes a flag state mutation at the same time as a flag is being retrieved.
The text was updated successfully, but these errors were encountered: