Skip to content

Conversation

@menghanl
Copy link
Contributor

When losing connection to remote balancer and no backend from remote balancer is Ready.

…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) {
Copy link
Contributor

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?

Copy link
Contributor Author

@menghanl menghanl Apr 1, 2019

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.

@menghanl menghanl merged commit 4745f6a into grpc:master Apr 2, 2019
@menghanl menghanl deleted the grpclb_fallback branch April 2, 2019 23:27
@dfawley dfawley added the Type: Feature New features or improvements in behavior label Apr 4, 2019
@dfawley dfawley added this to the 1.20 Release milestone Apr 4, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Type: Feature New features or improvements in behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants