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(pool): use write lock when getting health info #7963

Merged
merged 1 commit into from
Jul 29, 2021

Conversation

NamanJain8
Copy link
Contributor

@NamanJain8 NamanJain8 commented Jul 29, 2021

Fixes: https://discuss.dgraph.io/t/bug-mutex-lock-while-health-checking/14940

There was a race condition when accessing HealthInfo. This PR fixes that.


This change is Reviewable

@NamanJain8 NamanJain8 merged commit b41ff1f into master Jul 29, 2021
@NamanJain8 NamanJain8 deleted the naman/pool_race branch July 29, 2021 12:44
NamanJain8 added a commit that referenced this pull request Jul 29, 2021
NamanJain8 added a commit that referenced this pull request Jul 29, 2021
NamanJain8 added a commit that referenced this pull request Jul 29, 2021
NamanJain8 added a commit that referenced this pull request Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants