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

Repeated on-demand vhds updates unsubscribe from previously resolved vhosts #12158

Open
dmitri-d opened this issue Jul 17, 2020 · 4 comments
Open
Assignees

Comments

@dmitri-d
Copy link
Contributor

dmitri-d commented Jul 17, 2020

Description:
If a vhost named "foo.com" has been previously resolved, an attempt to resolve "bar.com" will result in "foo.com" vhost being unsubscribed from, and all updates for it lost.

This is due to how GrpcMuxWatch::update is implemented -- it expects a list of resource names that should be watched. The resources which names are not in the list will be unsubscribed from.

edit: not an issue for NewGrpcMuxImpl::addWatch

@htuch
Copy link
Member

htuch commented Jul 17, 2020

@dmitri-d shouldn't we have one watch per vhost?

@dmitri-d
Copy link
Contributor Author

@htuch: it's per subscription right now (handled by GrpcSubscriptionImpl, so the same as other xDS protocols then). I need to think about the implications of what you are suggesting. Are you thinking just VHDS, or for the rest of xDS too?

@htuch
Copy link
Member

htuch commented Jul 20, 2020

For RDS/EDS, there is already one subscription/watch (singleton) per consumer, e.g. each EdsClusterImpl owns a subscription for the EDS service or cluster name. These are then multiplexed in ADS to a single EDS request/response. So, in those cases, each subscribed resource has a subscription and watch.

@stale
Copy link

stale bot commented Aug 23, 2020

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions.

@stale stale bot added the stale stalebot believes this issue/PR has not been touched recently label Aug 23, 2020
@htuch htuch added no stalebot Disables stalebot from closing an issue and removed stale stalebot believes this issue/PR has not been touched recently labels Aug 24, 2020
htuch pushed a commit that referenced this issue Sep 9, 2020
Please see #12158 for more details about the issue.

Risk level: Low

Signed-off-by: Dmitri Dolguikh <ddolguik@redhat.com>
@mattklein123 mattklein123 added help wanted Needs help! and removed no stalebot Disables stalebot from closing an issue labels Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants