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

Etcdv3: Watch API Improvements #66

Merged
merged 1 commit into from
Nov 26, 2018
Merged

Conversation

adityadani
Copy link
Member

  1. Send an ErrWatchStopped to the caller only once.
  • Currently ErrWatchStopped gets sent to the caller multiple
    times causing a resubscribing watch to fail as well.
  1. Use context with leader requirement for Watch API.

1. Send an ErrWatchStopped to the caller only once.
- Currently ErrWatchStopped gets sent to the caller multiple
  times causing a resubscribing watch to fail as well.

2. Use context with leader requirement for Watch API.

- By default the etcd watchers will hang in case of a network partition and they are connected
  to the minority.
- As mentioned here - etcd-io/etcd#7247 (comment)
  setting the leader requirement for watchers allows them to switch to the majority partition.
@adityadani adityadani merged commit c1c8850 into master Nov 26, 2018
@adityadani adityadani deleted the etcd3_watch_improvements branch November 26, 2018 05: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