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

grpclb: recreate SubConns when switching fallback in case credentials change #2899

Merged
merged 1 commit into from
Jul 10, 2019

Conversation

menghanl
Copy link
Contributor

@menghanl menghanl commented Jul 9, 2019

With pickfirst, the same SubConn is reused, only addresses are updated.
But backends and fallbacks may need different credentials. This change
force-removes all SubConns when switching fallback.

With pickfirst, the same SubConn is reused, only addresses are updated.
But backends and fallbacks may need different credentials. This change
force-removes all SubConns when switching fallback.
Copy link
Contributor

@apolcyn apolcyn left a comment

Choose a reason for hiding this comment

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

Thanks, manually saw that this fixes the repro

@menghanl menghanl merged commit 08d2316 into grpc:master Jul 10, 2019
@menghanl menghanl deleted the grpclb_update_creds_pickfirst branch July 10, 2019 20:56
@dfawley dfawley added this to the 1.23 Release milestone Jul 11, 2019
@dfawley dfawley changed the title grpclb: recreate SubConns when switching fallback grpclb: recreate SubConns when switching fallback in case credentials change Jul 11, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jan 7, 2020
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.

3 participants