From 109f52e3d691a388540ef2309cf3904f338150f1 Mon Sep 17 00:00:00 2001 From: Xiang Date: Mon, 23 Oct 2017 16:54:07 -0700 Subject: [PATCH] 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. --- clientv3/balancer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clientv3/balancer.go b/clientv3/balancer.go index ef40cd33d..2c8c2981d 100644 --- a/clientv3/balancer.go +++ b/clientv3/balancer.go @@ -168,7 +168,7 @@ func (b *simpleBalancer) updateAddrs(eps ...string) { if update { select { - case b.updateAddrsC <- notifyReset: + case b.updateAddrsC <- notifyNext: case <-b.stopc: } }