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

Have EDS resource parse the additional addresses from envoy message #11011

Merged
merged 8 commits into from
Mar 15, 2024

Conversation

larry-safran
Copy link
Contributor

No description provided.

endpoints.add(Endpoints.LbEndpoint.create(
new EquivalentAddressGroup(ImmutableList.<java.net.SocketAddress>of(addr)),
new EquivalentAddressGroup(addresses),
Copy link
Contributor

Choose a reason for hiding this comment

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

ImmutableList.copyOf()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addresses is already a new list (created on line 196), so we don't care what is done with it. On top of that the EquivalentAddressGroup constructor copies whatever we give it.
this.addrs = Collections.unmodifiableList(new ArrayList<>(addrs));

@ejona86
Copy link
Member

ejona86 commented Mar 14, 2024

This should be flag protected behind GRPC_EXPERIMENTAL_XDS_DUALSTACK_ENDPOINTS

@larry-safran larry-safran merged commit 38f968f into grpc:master Mar 15, 2024
15 checks passed
@larry-safran larry-safran deleted the xds_load_altaddresses branch March 15, 2024 19:26
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 14, 2024
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.

3 participants