-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
balancer: stop using address.Metadata, use address.Attributes instead #3563
Comments
FYI, the new formulation, a pointer This is because it uses |
Thanks for pointing this out, @jhump. We had discussed this awhile back, and knew it would be an issue, but I think we must have forgotten about it when we got around to implementing things. We will need to put together a solution for this ASAP as the use of |
The issue of making We have fixed the WRR implementation to pass weights through The other item is to see if we want any changes in |
@easwars I can't seem to find any more instances of address.Metadata in the codebase. Should we close this? |
I do see usages in the ringhash balancer.
@menghanl : Was this intentional? Can we use the attributes field here? Also, we should probably investigate if we can completely get rid of the field from |
I believe the only place left that we use this internally is a read in the transport to provide the legacy behavior of setting outgoing headers based on it. We never set it. It should be okay to remove now, though it would be a breaking (deprecated + experimental) API change. |
address.Metadata
is deprecated and replaced byaddress.Attributes
.The current usage of
address.Metadata
in gRPC includes:This issue is to track removing of these usages, and use
address.Attributes
instead.The text was updated successfully, but these errors were encountered: