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

Access JSONGateResolverBuilder.resolvers under a lock #463

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

henryr
Copy link

@henryr henryr commented Jul 23, 2024

The goroutine that updates each resolver when the hosts file changes reads the lists of resolvers while they may be concurrently appended to if Build is called. Synchronize both accesses with the existing mutex in the resolver builder.

Signed-off-by: Henry Robinson <hrobinson@slack-corp.com>
@henryr henryr merged commit 81cffeb into vtgateproxy Jul 23, 2024
151 of 241 checks passed
@henryr henryr deleted the hnr-lock-resolvers branch July 23, 2024 14:56
dedelala pushed a commit that referenced this pull request Jul 24, 2024
Signed-off-by: Henry Robinson <hrobinson@slack-corp.com>
dedelala pushed a commit that referenced this pull request Jul 30, 2024
Signed-off-by: Henry Robinson <hrobinson@slack-corp.com>
dedelala pushed a commit that referenced this pull request Sep 9, 2024
Signed-off-by: Henry Robinson <hrobinson@slack-corp.com>
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