-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
fa9ad75
commit c1c8850
Showing
1 changed file
with
24 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters