-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
Description
What version of gRPC are you using?
v1.20.0
What version of Go are you using (go version)?
1.11
What operating system (Linux, Windows, …) and version?
Linux
What did you do?
If I pass grpc.WithBalancerName("grpclb") explicitly in grpc.Dial(), the "grpclb: no remote balancer address is available, should never happen" error is reported.
The curBalancerName is only set when ClientConn.switchBalancer() is called. When balancerBuilder is not nil, switchBalancer is not called and curBalancerName is not set to grpclb.
https://github.com/grpc/grpc-go/blob/v1.20.0/balancer_conn_wrappers.go#L182
https://github.com/grpc/grpc-go/blob/v1.20.0/clientconn.go#L517
What did you expect to see?
RPC call is successful.
What did you see instead?
ERROR: grpclb: no remote balancer address is available, should never happen