mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
clientv3: fix balancer unresponsiveness
When no address is pined, and balancer ignores the addr Up due to its current unhealthy state, balancer will be unresponsive forever. This PR fixes it by doing a full reset when there is no pined addr, thus re-trigger the Up call.
This commit is contained in:
parent
fdaa04e95f
commit
109f52e3d6
@ -168,7 +168,7 @@ func (b *simpleBalancer) updateAddrs(eps ...string) {
|
||||
|
||||
if update {
|
||||
select {
|
||||
case b.updateAddrsC <- notifyReset:
|
||||
case b.updateAddrsC <- notifyNext:
|
||||
case <-b.stopc:
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user