Skip to content

xds: remove references to ResolverState.Addresses#8841

Merged
arjan-bal merged 5 commits intogrpc:masterfrom
arjan-bal:xds-remove-resolver-state-addresses
Jan 21, 2026
Merged

xds: remove references to ResolverState.Addresses#8841
arjan-bal merged 5 commits intogrpc:masterfrom
arjan-bal:xds-remove-resolver-state-addresses

Conversation

@arjan-bal
Copy link
Copy Markdown
Contributor

@arjan-bal arjan-bal commented Jan 16, 2026

This change removes the usages of ResolverState.Addresses in xds code. Prior to Dualstack support, xDS LB policies relied exclusively on the Addresses field. As part of the Dualstack initiative, these policies were updated to support both Endpoints and Addresses. This PR removes the Addresses propagation logic in favor of relying solely on Endpoints.

RELEASE NOTES:

  • balancer/weightedtarget: Remove handling of Addresses and only handle Endpoints in resolver updates.

@arjan-bal arjan-bal added this to the 1.79 Release milestone Jan 16, 2026
@arjan-bal arjan-bal added Type: Internal Cleanup Refactors, etc Area: xDS Includes everything xDS related, including LB policies used with xDS. labels Jan 16, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 16, 2026

Codecov Report

❌ Patch coverage is 75.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.90%. Comparing base (e15b867) to head (0351951).
⚠️ Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
.../balancer/clusterresolver/resource_resolver_dns.go 33.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8841      +/-   ##
==========================================
- Coverage   83.26%   82.90%   -0.36%     
==========================================
  Files         414      414              
  Lines       32771    32773       +2     
==========================================
- Hits        27288    27172     -116     
- Misses       4051     4116      +65     
- Partials     1432     1485      +53     
Files with missing lines Coverage Δ
balancer/weightedtarget/weightedtarget.go 84.28% <100.00%> (-7.27%) ⬇️
internal/hierarchy/hierarchy.go 42.85% <100.00%> (-44.38%) ⬇️
...rnal/xds/balancer/clustermanager/clustermanager.go 63.21% <100.00%> (-8.88%) ⬇️
...al/xds/balancer/clusterresolver/clusterresolver.go 54.43% <ø> (-14.21%) ⬇️
internal/xds/balancer/priority/balancer.go 72.64% <100.00%> (-13.91%) ⬇️
internal/xds/xdsdepmgr/xds_dependency_manager.go 78.31% <100.00%> (-2.57%) ⬇️
.../balancer/clusterresolver/resource_resolver_dns.go 60.31% <33.33%> (-15.07%) ⬇️

... and 23 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@arjan-bal arjan-bal force-pushed the xds-remove-resolver-state-addresses branch from 16e56f1 to 0351951 Compare January 16, 2026 09:23
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Doesn't have to be part of this PR, but looks like this test could be moved to hierarchy_test package since it only uses exported functions and doing so will ensure that in the future as well.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Acknowledged.

@easwars
Copy link
Copy Markdown
Contributor

easwars commented Jan 20, 2026

@eshitachandwani : FYI for the changes in the dependency manager.

@easwars easwars assigned arjan-bal and unassigned easwars Jan 20, 2026
@arjan-bal arjan-bal merged commit 90f571d into grpc:master Jan 21, 2026
14 checks passed
arjan-bal added a commit that referenced this pull request Jan 21, 2026
As requested in
#8841 (comment), this
PR moves existing tests to a different package to enforce the use of
public APIs. One test remains in the old package as it requires access
to the private attribute key type.

RELEASE NOTES: N/A
mbissa pushed a commit to mbissa/grpc-go that referenced this pull request Feb 16, 2026
This change removes the usages of `ResolverState.Addresses` in xds code.
Prior to Dualstack support, xDS LB policies relied exclusively on the
`Addresses` field. As part of the Dualstack initiative, these policies
were updated to support both `Endpoints` and `Addresses`. This PR
removes the `Addresses` propagation logic in favor of relying solely on
`Endpoints`.

RELEASE NOTES:
* balancer/weightedtarget: Remove handling of `Addresses` and only
handle `Endpoints` in resolver updates.
mbissa pushed a commit to mbissa/grpc-go that referenced this pull request Feb 16, 2026
As requested in
grpc#8841 (comment), this
PR moves existing tests to a different package to enforce the use of
public APIs. One test remains in the old package as it requires access
to the private attribute key type.

RELEASE NOTES: N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: xDS Includes everything xDS related, including LB policies used with xDS. Type: Internal Cleanup Refactors, etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants