Skip to content
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

xds:fix cancel xds watcher accidentally removes the url #9809

Merged
merged 1 commit into from Jan 11, 2023

Conversation

YifeiZhuang
Copy link
Contributor

@YifeiZhuang YifeiZhuang commented Jan 11, 2023

fix b/265017892

When any of the subscribers for a resource has the last watcher cancelled, the bug will accidentally remove that resource type from the map, which make xds stream not accepting response update for that resource type entirely (pass through, no ACK/NACK will send).
This was introduced in #9607 where the resource url map is dynamically controlled by the watchers.

@ejona86
Copy link
Member

ejona86 commented Jan 11, 2023

When this bug is triggered, the xds client fails to watch for resources of particular types. So any of those resources will get out-of-date.

@ejona86
Copy link
Member

ejona86 commented Jan 11, 2023

The bug was introduced in #9607 (released in 1.51.0)

@YifeiZhuang YifeiZhuang merged commit 82ca98f into grpc:master Jan 11, 2023
@YifeiZhuang YifeiZhuang deleted the fix-xds branch January 11, 2023 23:34
@YifeiZhuang YifeiZhuang removed the TODO:backport PR needs to be backported. Removed after backport complete label Jan 12, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 12, 2023
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.

None yet

2 participants