-
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
xdsclient: correct logic used to suppress empty ADS requests on new streams #7026
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #7026 +/- ##
==========================================
+ Coverage 82.48% 82.52% +0.04%
==========================================
Files 296 296
Lines 31468 31463 -5
==========================================
+ Hits 25955 25964 +9
+ Misses 4457 4447 -10
+ Partials 1056 1052 -4
|
I'm not familiar with this code, but I'm wondering whether beside never sending empty subscriptions on new ADS streams, as done in this PR, why the xDS resolver itself is not closed (and hence the management server connection, too), when all channels using it are idle or shutdown. |
I think that would be a separate issue. The xdsClient is a global singleton shared between all channels. In theory when the last reference to it goes away, it should shut down, according to:
Are you seeing evidence that the xdsClient and/or its connection to the management server are not being closed when the last consumer goes away? This change is needed regardless of that to prevent empty resources from being requested for any type. |
I thought so, but let me check again. I'll open another issue if needed. |
Fixes #7013
RELEASE NOTES: