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

Remove the client from subscription manager on a disconnect #2170

Merged
merged 2 commits into from
Jan 24, 2025

Conversation

jsdt
Copy link
Contributor

@jsdt jsdt commented Jan 24, 2025

Description of Changes

This is fixing an obvious bug in the subscription manager. When a client disconnects, we are removing the queries, but not removing our record of the client. This is a memory leak (and would be an issue if clients reused their connection ids).

@kim this should fix the logs you were seeing when shutting down a worker.

API and ABI breaking changes

If this is an API or ABI breaking change, please apply the
corresponding GitHub label.

Expected complexity level and risk

1

Testing

Unit tests are now asserting that we remove the clients.

@jsdt jsdt requested a review from gefjon January 24, 2025 19:20
@jsdt jsdt enabled auto-merge January 24, 2025 19:33
@jsdt jsdt added this pull request to the merge queue Jan 24, 2025
Merged via the queue into master with commit 729dbb1 Jan 24, 2025
13 checks passed
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