-
Notifications
You must be signed in to change notification settings - Fork 699
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
Potential data race, maybe #302
Labels
Milestone
Comments
Is this the result of the refactoring to use informer and controller classes? |
I think so. Before the refactor, we do not have a workqueue and these worker goroutines. |
Doesn't the workqueue ensure that only a single worker is processing a given job? |
@jlewi Yeah, but the map could be accessed by all workers at one time. |
This could be solved after #314 |
Closed by #492 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Now we keep a map in the controller: https://github.com/tensorflow/k8s/blob/master/pkg/controller/controller.go#L49 and the controller has several workers, so I think it may have data race since there is no synchronization mechanism.
The text was updated successfully, but these errors were encountered: