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

xds: throw away subchannel references after ring_hash is shutdown #8140

Conversation

voidzcy
Copy link
Contributor

@voidzcy voidzcy commented May 4, 2021

Same as #8132.

Clean up subchannels after the RingHashLoadBalancer itself is shutdown to prevent further balancing state updates being propagated to the upstream.

Note this should not be considered as a fix for any problem anybody is noticing. Upstreams of RingHashLoadBalancer should not rely on this, it should still have its own logic for maintaining the lifecycle of downstream LB and ignore invalid upcalls when necessary.

…n. This avoids receiving balancing state updates after the LB policy is shutdown.
@voidzcy voidzcy requested a review from dapengzhang0 May 4, 2021 17:26
@voidzcy voidzcy merged commit ee000f0 into grpc:master May 4, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants