From 53884fa7e6455ad76e15c7a070f3018727a614e4 Mon Sep 17 00:00:00 2001 From: Menghan Li Date: Thu, 13 Dec 2018 14:44:34 -0800 Subject: [PATCH] grpclb: re-resolve when the stream to GRPCLB balancer fails (#2502) --- balancer/grpclb/grpclb_remote_balancer.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/balancer/grpclb/grpclb_remote_balancer.go b/balancer/grpclb/grpclb_remote_balancer.go index 7b35d111..c1cb0e12 100644 --- a/balancer/grpclb/grpclb_remote_balancer.go +++ b/balancer/grpclb/grpclb_remote_balancer.go @@ -245,6 +245,8 @@ func (lb *lbBalancer) watchRemoteBalancer() { } } } + // Trigger a re-resolve when the stream errors. + lb.cc.cc.ResolveNow(resolver.ResolveNowOption{}) if !doBackoff { retryCount = 0