-
Notifications
You must be signed in to change notification settings - Fork 39k
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 race condition in gcp auth provider plugin #36680
Conversation
Jenkins unit/integration failed for commit d0e38fad134177dfc2160258c82ee6e58f52e831. Full PR test history. The magic incantation to run this job again is |
d0e38fa
to
5a6cd55
Compare
Bug fix ok for post-code freeze merge. |
LGTM. I'll let @yujuhong take a look and apply the label. |
No tests? :) |
@dims, the added unit test covers regression; it repros the concurrent map access failure without |
apologies @jlowdermilk looks like i did not scroll down enough! |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue |
|
||
func (f *fakePersister) read() map[string]string { | ||
ret := map[string]string{} | ||
f.lk.Lock() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No Unlock()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops. It's only called once at the end of the test, so I didn't notice.
What this PR does / why we need it:
Fixes race condition in gcp auth provider plugin.
Which issue this PR fixes fixes #30175
Special notes for your reviewer:
Release note:
This change is![Reviewable](https://camo.githubusercontent.com/2d899f4291d07d3cd2fa4aaae1e3b243f164c23fce87d30a589ace0d496a444c/68747470733a2f2f72657669657761626c652e6b756265726e657465732e696f2f7265766965775f627574746f6e2e737667)