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

loadbalancer-experimental: subscribe is the last thing we do in DefaultLB constructor #3007

Merged

Conversation

bryce-anderson
Copy link
Contributor

Motivation:

We want all the fields initialized before we subscribe to the SD events so if something happens and an attempt is made to close before construction is complete we don't end up with a NPE somewhere.

Modifications:

  • Move the outlier detection stream cancellation assignment to before the subscription.

…ltLB constructor

Motivation:

We want all the fields initialized before we subscribe to the SD events
so if something happens and an attempt is made to close before construction
is complete we don't end up with a NPE somewhere.

Modifications:

- Move the outlier detection stream cancellation assignment to before
  the subscription.

Result:

What is the result of this change?
@bryce-anderson bryce-anderson merged commit dafeeb0 into apple:main Jul 12, 2024
11 checks passed
@bryce-anderson bryce-anderson deleted the bl_anderson/subscribe_last branch July 12, 2024 23:18
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