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

[main->0.27] Port improved connection telemetry #3801

Merged
merged 1 commit into from
Oct 1, 2020

Conversation

heliocliu
Copy link
Contributor

Port #3704 to 0.27 branch, which adds telemetry around unexpected connection and ops

…d check perf (microsoft#3704)

microsoft#3675
Change the old/expired clientId check to use the quorum instead of by keeping a list of old clientIds. This works by adding a shouldHaveLeft field to the ISequencedClient in the quorum, where a reconnecting client will set its old clientId shouldHaveLeft to true (if it still exists in the client). Then when we process a message, instead of checking against a list of old clientIds, we check if the clientId exists in the quorum (messages should only be coming from clients in the quorum) and if the clientId has been marked should have left. An inactive clientId in this situation would suggest a message from an old connection of the same client (which shouldn't happen).
@heliocliu heliocliu requested review from wes-carlson and removed request for anthony-murphy and vladsud October 1, 2020 20:56
Copy link
Contributor

@wes-carlson wes-carlson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@heliocliu heliocliu merged commit 5baf68a into microsoft:release/0.27 Oct 1, 2020
@heliocliu heliocliu deleted the ConnectionTelemetry27 branch October 1, 2020 23:12
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.

2 participants