Skip to content

A75 Aggregate cluster fixes #12186

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

Merged
merged 30 commits into from
Jul 29, 2025
Merged

Conversation

kannanjgithub
Copy link
Contributor

No description provided.

@kannanjgithub kannanjgithub requested a review from ejona86 June 26, 2025 13:51
@kannanjgithub kannanjgithub marked this pull request as ready for review June 27, 2025 19:21
childLb.shutdown();
childLb = null;
}
delegate.shutdown();
Copy link
Member

Choose a reason for hiding this comment

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

I think this will break the child, as once it is shut down it shouldn't be called further. And it won't be re-created when things become good again. If we shut this down, we need to replace delegate with a new instance.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. I see ClusterResolverLoadBalancerPolicy also uses a non-null delegate of Graceful switch LB but doesn't reinstantiate it in its shutdown. Shouldn't we do this change there too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The delegate (GracefulSwitchLoadBalancer) even if it not reinstantiated in the CdsLoadbalancer2 shutdown, if CdsLoadbalancer2 acceptResolvedAddresses is called again after shutdown, the delegate's acceptResolvedAddresses works just fine.
Also isn't the usage of delegate (GracefulSwitchLoadBalancer) similar here and ClusterResolverLoadBalancerPolicy which also doesn't reinstantiate the delegate in its shutdown?

@kannanjgithub kannanjgithub merged commit 7e982e4 into grpc:master Jul 29, 2025
20 of 21 checks passed
@kannanjgithub kannanjgithub deleted the a75-fixes2 branch July 29, 2025 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants