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

grpc-js-xds: Fix sending stats when reestablishing LRS stream #1710

Conversation

murgatroid99
Copy link
Member

@murgatroid99 murgatroid99 commented Mar 9, 2021

The issue here is that when a LRS stream was killed and then the client reestablished it, it would try sending any stats accumulated in the intervening time, but the settings would be null, including the settings for which stats to send.

I fixed this in two ways: First, ending the stream does not clear the settings, and cleared settings are no longer used as the primary signal to determine whether to start a timer when receiving new settings. Second, the code for sending stats checks whether the settings are there before trying to use them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants