Skip to content

[LB policy API] change metadata mutation API to handle discarded picks#36968

Closed
markdroth wants to merge 7 commits intogrpc:masterfrom
markdroth:lb_metadata_api
Closed

[LB policy API] change metadata mutation API to handle discarded picks#36968
markdroth wants to merge 7 commits intogrpc:masterfrom
markdroth:lb_metadata_api

Conversation

@markdroth
Copy link
Member

@markdroth markdroth commented Jun 18, 2024

Previously, metadata mutations were made by the picker directly, which meant that they would be applied even if the channel winds up discarding the pick due to the returned subchannel having been disconnected by the time the pick result is returned. This changes the API such that pickers return metadata mutations along with the pick result, so that the mutations won't get applied unless the pick result is actually used.

@markdroth markdroth added the release notes: no Indicates if PR should not be in release notes label Jun 18, 2024
@markdroth markdroth requested a review from ctiller June 18, 2024 19:57
@markdroth markdroth deleted the lb_metadata_api branch June 21, 2024 18:35
alto-ruby added a commit to alto-ruby/grpc that referenced this pull request Jul 11, 2024
paulosjca pushed a commit to paulosjca/grpc that referenced this pull request Nov 25, 2024
grpc#36968)

Previously, metadata mutations were made by the picker directly, which meant that they would be applied even if the channel winds up discarding the pick due to the returned subchannel having been disconnected by the time the pick result is returned.  This changes the API such that pickers return metadata mutations along with the pick result, so that the mutations won't get applied unless the pick result is actually used.

Closes grpc#36968

COPYBARA_INTEGRATE_REVIEW=grpc#36968 from markdroth:lb_metadata_api 2765da6
PiperOrigin-RevId: 645451869
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.

2 participants