-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
TestWatchOverlapDropConnContextCancel finds DATA RACE #6586
Labels
Milestone
Comments
/cc @heyitsanthony |
heyitsanthony
pushed a commit
to heyitsanthony/etcd
that referenced
this issue
Oct 5, 2016
The initial revision was being updated in the substream goroutine defer; this was racing with the resume path fetching the initial revision when the substream closes during resume. Instead, update the initial revision whenever the substream processes a new watch response. Since the substream cannot receive a watch response while it is resuming, the write to the initial revision is ordered to always happen after the resume read. Fixes etcd-io#6586
gyuho
pushed a commit
that referenced
this issue
Oct 5, 2016
The initial revision was being updated in the substream goroutine defer; this was racing with the resume path fetching the initial revision when the substream closes during resume. Instead, update the initial revision whenever the substream processes a new watch response. Since the substream cannot receive a watch response while it is resuming, the write to the initial revision is ordered to always happen after the resume read. Fixes #6586
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://semaphoreci.com/coreos/etcd/branches/pull-request-6583/builds/2
The text was updated successfully, but these errors were encountered: