Skip to content

outlierdetection: Remove UpdateAddresses handling#8810

Merged
arjan-bal merged 3 commits into
grpc:masterfrom
arjan-bal:od-remove-update-addresses
Jan 9, 2026
Merged

outlierdetection: Remove UpdateAddresses handling#8810
arjan-bal merged 3 commits into
grpc:masterfrom
arjan-bal:od-remove-update-addresses

Conversation

@arjan-bal

Copy link
Copy Markdown
Contributor

Following the dual-stack changes that established pick_first as the universal leaf policy and the subsequent removal of the legacy pick_first implementation, ClientConn.UpdateAddresses is no longer utilized within the xDS LB policy tree. When addresses change, old SubConns are now shut down and new ones are created.

This PR makes UpdateAddresses a no-op and removes the corresponding test. Additionally, it ensures the subConnWrapper is removed from the ejection/unejection map when a SubConn closes to prevent memory leaks.

RELEASE NOTES: N/A

@arjan-bal arjan-bal added this to the 1.79 Release milestone Jan 7, 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 7, 2026
@codecov

codecov Bot commented Jan 7, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 77.77778% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.28%. Comparing base (900ffa9) to head (8910eef).
⚠️ Report is 9 commits behind head on master.

Files with missing lines Patch % Lines
internal/xds/balancer/outlierdetection/balancer.go 77.77% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8810      +/-   ##
==========================================
+ Coverage   83.25%   83.28%   +0.03%     
==========================================
  Files         417      417              
  Lines       32978    32920      -58     
==========================================
- Hits        27457    27419      -38     
+ Misses       4106     4093      -13     
+ Partials     1415     1408       -7     
Files with missing lines Coverage Δ
...l/xds/balancer/outlierdetection/subconn_wrapper.go 91.22% <ø> (ø)
internal/xds/balancer/outlierdetection/balancer.go 89.46% <77.77%> (+0.35%) ⬆️

... and 24 files with indirect coverage changes

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

for {
select {
case <-ctx.Done():
t.Fatalf("timed out waiting for subconn to be removed from endpoint map")

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.

Nit: Here and elsewhere where it makes sense, please start the test error message with upper case.

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.

Fixed the capitalisation.

@easwars easwars assigned arjan-bal and unassigned easwars Jan 9, 2026
@arjan-bal arjan-bal merged commit ad8bd71 into grpc:master Jan 9, 2026
14 checks passed
@arjan-bal arjan-bal deleted the od-remove-update-addresses branch January 9, 2026 08:55
mbissa pushed a commit to mbissa/grpc-go that referenced this pull request Feb 16, 2026
Following the dual-stack changes that established `pick_first` as the
universal leaf policy and the subsequent removal of the legacy
`pick_first` implementation, `ClientConn.UpdateAddresses` is no longer
utilized within the xDS LB policy tree. When addresses change, old
`SubConns` are now shut down and new ones are created.

This PR makes `UpdateAddresses` a no-op and removes the corresponding
test. Additionally, it ensures the `subConnWrapper` is removed from the
ejection/unejection map when a SubConn closes to prevent memory leaks.


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