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
Disconnect dangling clients #1132
base: master
Are you sure you want to change the base?
Conversation
31b332d
to
e683699
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Minor suggestions for doc comments.
I hate to do this to you after you implemented this functionality, but I think we should seriously consider an st_connected_clients
system table rather than this strategy because of the interaction with snapshotting.
Fixes #1178 |
I'm not opposed to this, but it will be a breaking change. If that's ok, or we're willing to delay this change until it is ok, we can go the other route np. |
When replaying the commitlog, keep track of unpaired connect/disconnect calls and call disconnect when instantiating the module.
e683699
to
1183d26
Compare
I think certainly we're fine with breaking changes at this stage. I don't know to what extent we're willing to delay this PR; that's a question for @cloutiertyler . |
When replaying the commitlog, keep track of unpaired connect/disconnect calls and call disconnect when instantiating the module.
Expected complexity level and risk
2
Testing
I do not (yet) know how this could be tested properly.