Skip to content
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

balancer: stop using picker from old balancer when switching balancers #2833

Merged
merged 1 commit into from
May 29, 2019

Conversation

menghanl
Copy link
Contributor

updates #2731

@@ -151,6 +151,7 @@ func (ccb *ccBalancerWrapper) watcher() {
for acbw := range scs {
ccb.cc.removeAddrConn(acbw.getAddrConn(), errConnDrain)
}
ccb.UpdateBalancerState(connectivity.TransientFailure, nil)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be Connecting instead to avoid RPC failures?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RPCs won't fail when picker is nil, they will block (but then the state and picker are actually inconsistent? Maybe).

I think Connecting is better. Done.

@menghanl menghanl merged commit 0435a4b into grpc:master May 29, 2019
@menghanl menghanl deleted the balancer_switch_picker branch May 29, 2019 17:35
@dfawley dfawley changed the title balancer: stop using picker from old balancer with switching balancers balancer: stop using picker from old balancer when switching balancers May 30, 2019
@dfawley dfawley added this to the 1.22 Release milestone May 30, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Nov 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants