-
Notifications
You must be signed in to change notification settings - Fork 4.6k
balancer/pickfirstleaf: Avoid reading Address.Metadata #8227
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8227 +/- ##
==========================================
- Coverage 82.16% 82.04% -0.12%
==========================================
Files 410 412 +2
Lines 40248 40487 +239
==========================================
+ Hits 33068 33219 +151
- Misses 5830 5891 +61
- Partials 1350 1377 +27
🚀 New features to boost your workflow:
|
b5b2dbc
to
c8fb55c
Compare
Do we still want to do this? The most recent comment on etcd-io/etcd#19700 (comment) says that etcd itself is not affected by this and that they are going to prioritize the long term fix of not using the But I also see that your note saying |
Waiting to discuss this with @dfawley. If we think is fine not to support Metadata to differentiate addresses in the new pickfirst, we would need to change the following condition. Having a test for the behaviour would be good. grpc-go/balancer/pickfirst/pickfirstleaf/pickfirstleaf.go Lines 924 to 928 in 732f3f3
|
etcd isn't affected, but etcd's users are affected. I think we still need the fix regardless the long-term plan (which is not yet finalized). |
Addresses: #8225
This PR makes the new pickfirst ignore the deprecated Metadata field. This is required since pickfirst is currently using the Medata field to lookup addresses in an
addressList
and not using the Metadata while looking up addresses from the AddressMap. This change makes the behaviour of both the data structures consistent.RELEASE NOTES:
Address.Metadata
field.