-
Notifications
You must be signed in to change notification settings - Fork 4.6k
grpclb: fallback after init #2681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
7404bbb to
49454d6
Compare
49454d6 to
e4b6b8d
Compare
…se new subconn state might not be updated for cached subconns
| // refreshSubConns creates/removes SubConns with backendAddrs. | ||
| // | ||
| // Caller must hold lb.mu. | ||
| func (lb *lbBalancer) refreshSubConns(backendAddrs []resolver.Address, fromGRPCLBServer bool) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems refreshSubConns is always followed by regeneratePicker. Can we put regeneratePicker inside refreshSubConns?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Now also updates picker after regenerating picker.
When losing connection to remote balancer and no backend from remote balancer is Ready.