grpclb: re-resolve when the stream to GRPCLB balancer fails (#2502)

This commit is contained in:
Menghan Li
2018-12-13 14:44:34 -08:00
committed by GitHub
parent 191cc8e37b
commit 53884fa7e6

View File

@ -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