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

grpc: Add endpoints in resolverWrapper.NewAddress #8149

Merged

Conversation

arjan-bal
Copy link
Contributor

@arjan-bal arjan-bal commented Mar 6, 2025

Fixes: #8146

The resolver wrapper has code in the UpdateState method to convert Addresses to Endpoints, but this handling was missing in the NewAddresses API. This PR adds it.

RELEASE NOTES:

  • grpc: Fix bug causing RPC failures with message "no children to pick from" when using a custom resolver that calls the deprecated NewAddress API.

@arjan-bal arjan-bal added this to the 1.71 Release milestone Mar 6, 2025
@arjan-bal arjan-bal requested review from easwars and dfawley March 6, 2025 15:53
Copy link

codecov bot commented Mar 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.31%. Comparing base (bffa4be) to head (a82c31b).
Report is 6 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8149   +/-   ##
=======================================
  Coverage   82.30%   82.31%           
=======================================
  Files         389      392    +3     
  Lines       39125    39140   +15     
=======================================
+ Hits        32203    32218   +15     
- Misses       5594     5595    +1     
+ Partials     1328     1327    -1     
Files with missing lines Coverage Δ
resolver_wrapper.go 91.47% <100.00%> (+7.17%) ⬆️

... and 25 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 changed the title Handle endpoints in NewAddresses grpc: Handle endpoints in NewAddresses Mar 6, 2025
scripts/vet.sh Outdated
Comment on lines 200 to 201
XXXXX PleaseIgnoreUnused
NewAddress is deprecated:'
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
XXXXX PleaseIgnoreUnused
NewAddress is deprecated:'
NewAddress is deprecated:
XXXXX PleaseIgnoreUnused'

That last line is there to avoid need to move the ' around. Also, let's try to keep this list sorted, so actually, please move this to right before NewSubConn is deprecated:.

@dfawley dfawley assigned arjan-bal and unassigned easwars and dfawley Mar 6, 2025
@arjan-bal arjan-bal changed the title grpc: Handle endpoints in NewAddresses grpc: Add endpoints in resolver.ClientConn.NewAddresses Mar 6, 2025
@arjan-bal arjan-bal changed the title grpc: Add endpoints in resolver.ClientConn.NewAddresses grpc: Add endpoints in resolverWrapper.NewAddresses Mar 6, 2025
@arjan-bal arjan-bal merged commit 5199327 into grpc:master Mar 6, 2025
15 checks passed
@arjan-bal arjan-bal deleted the resolver/handle-Endpoints-in-New-Addresses branch March 6, 2025 17:25
@arjan-bal arjan-bal changed the title grpc: Add endpoints in resolverWrapper.NewAddresses grpc: Add endpoints in resolverWrapper.NewAddress Mar 6, 2025
arjan-bal added a commit to arjan-bal/grpc-go that referenced this pull request Mar 6, 2025
janardhanvissa pushed a commit to janardhanvissa/grpc-go that referenced this pull request Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"no children to pick from" errors in v1.71.0 when using client-side load-balancing
3 participants