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 https://github.com/contiv/netplugin/issues/256 #258

Merged
merged 3 commits into from
Feb 2, 2016

Conversation

jojimt
Copy link
Contributor

@jojimt jojimt commented Jan 29, 2016

When multiple nodes start up almost at the same time, it is possible for the netplugin to miss some peer registrations in the real-time window between a service state read and the watch which occurs in a different thread. This fix forces the WatchService routine to inject the current state of the service to the listening channel and utilizes that for the initial state sync, instead of separately reading the state.

Rework the fix to read current state and watch the next index

Use EtcdIndex for watching
@jojimt jojimt force-pushed the I256-vtep branch 2 times, most recently from a783b31 to 41650e6 Compare February 1, 2016 04:28
@shaleman
Copy link
Contributor

shaleman commented Feb 2, 2016

LGTM

shaleman added a commit that referenced this pull request Feb 2, 2016
@shaleman shaleman merged commit 3ddceeb into contiv:master Feb 2, 2016
@jojimt jojimt deleted the I256-vtep branch February 2, 2016 21:03
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