-
Notifications
You must be signed in to change notification settings - Fork 10.1k
[release-3.6] Replace resolver.State.Addresses
with resolver.State.Endpoint.Addresses
#19782
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
base: release-3.6
Are you sure you want to change the base?
Conversation
Signed-off-by: Benjamin Wang <[email protected]>
Hi @k8s-infra-cherrypick-robot. Thanks for your PR. I'm waiting for a etcd-io member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/ok-to-test |
Signed-off-by: Benjamin Wang <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files
... and 19 files with indirect coverage changes @@ Coverage Diff @@
## release-3.6 #19782 +/- ##
===============================================
- Coverage 68.92% 68.89% -0.04%
===============================================
Files 420 420
Lines 35607 35612 +5
===============================================
- Hits 24543 24535 -8
- Misses 9638 9647 +9
- Partials 1426 1430 +4 Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
@dfawley The patch #19780 works on etcd/main (depends on [email protected]), but not for etcd/release-3.6 (depending on [email protected]). The error message is It might be related to this grpc-go's commit grpc/grpc-go@aad8a12 After bumping grpc-go version to v1.71.1, then it's working now. Please note release-3.6 and release-3.5 are both our stable releases, usually we only bump dependencies for etcd's stable releases when there are critical or CVE fixes. can you please advise whether it's safe to bump grpc-go's version on etcd/release-3.6 and etcd/release-3.5? |
I don't think that should affect things, since that's in the In v1.71 (and with some fixes in v1.71.1), we fixed our support for
I don't see any reason why it wouldn't be safe to upgrade. Note that with Go's MVS, your users could already be running with that combination. But please check out our release notes for v1.71.0 and v1.71.1 so you can see the full list of changes: https://github.com/grpc/grpc-go/releases (and let me know if you have any questions). I don't believe any changes in there should impact name resolver support. |
thx for the feedback.
I don't think etcd use xDS.
It might not be related to proxy. Please note that even the following simple unit test works on grpc-go v1.71.1, but not on 1.70.0, the error message was the same. Lines 280 to 318 in 8f933a5
OK, thx. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Backport LGTM.
After manual bi-sect, eventually I locked to commit grpc/grpc-go@e95a4b7, the tests passes with this or newer commit, fails with commits older than this one. @dfawley |
Ah, I believe what's happening is that if you are only setting Endpoints, then, until we switched round robin to use to the new pick first policy (the commit you found), we wouldn't actually use the Endpoints field. Our migration strategy was: 1. resolvers set both fields (with our ClientConn setting Endpoints based on Addresses if the resolver doesn't), 2. policies are updated to support Endpoints, 3. resolvers set only Endpoints. (2) was only completed in v1.71. So I think everything is understood, and should work fine for your users as long as you update your dependency past that commit. |
Thanks for the confirmation. Please approve #19783 if you get a second. @fuweid @serathius pls let's know if you have any comment or concern. thx |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahrtr, fuweid, ivanvc, k8s-infra-cherrypick-robot The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This is an automated cherry-pick of #19780
/assign ahrtr