Skip to content

xds: Remember nonces for unknown types#11799

Merged
ejona86 merged 1 commit intogrpc:masterfrom
ejona86:xds-nonce-on-unknown-type
Jan 6, 2025
Merged

xds: Remember nonces for unknown types#11799
ejona86 merged 1 commit intogrpc:masterfrom
ejona86:xds-nonce-on-unknown-type

Conversation

@ejona86
Copy link
Member

@ejona86 ejona86 commented Jan 6, 2025

If the control plane sends a resource type the client doesn't understand at-the-moment, the control plane will still expect the client to include the nonce if the client subscribes to the type in the future.

This most easily happens when unsubscribing the last resource of a type. Which meant 1cf1927 was insufficient.

CC @markdroth, @danielzhaotongliu

If the control plane sends a resource type the client doesn't understand
at-the-moment, the control plane will still expect the client to include
the nonce if the client subscribes to the type in the future.

This most easily happens when unsubscribing the last resource of a type.
Which meant 1cf1927 was insufficient.
@ejona86 ejona86 requested a review from larry-safran January 6, 2025 18:25
@markdroth
Copy link
Member

Good catch!

FWIW, in C-core, since we never forget about a resource type once we've seen it, this wouldn't happen when unsubscribing to the last resource of a given type. It would happen only if the control plane spontaneously sent a resource type that the client never asked for, and I think that's sufficiently bad behavior on the part of the control plane that I'm not going to worry about it.

@ejona86
Copy link
Member Author

ejona86 commented Jan 6, 2025

@markdroth, yeah. And Go is also never removing resource types, so it would't be impacted either.

@ejona86 ejona86 merged commit 6c12c2b into grpc:master Jan 6, 2025
16 checks passed
@ejona86 ejona86 deleted the xds-nonce-on-unknown-type branch January 6, 2025 19:54
@ejona86 ejona86 added the TODO:backport PR needs to be backported. Removed after backport complete label Jan 7, 2025
@ejona86 ejona86 removed the TODO:backport PR needs to be backported. Removed after backport complete label Jan 7, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments