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

Shut down RAFT groups when disabling JetStream #3986

Merged
merged 1 commit into from Mar 23, 2023

Conversation

neilalexander
Copy link
Member

This PR modifies DisableJetStream (which is called when we run out of disk space, when we are peer-removed or when we reload config with JS disabled) to stop all of the RAFT groups, ensuring that we no longer have interest for those groups.

As a result, this fixes a memory leak that can happen if JS gets disabled on a node in an active cluster.

Signed-off-by: Neil Twigg neil@nats.io

Signed-off-by: Neil Twigg <neil@nats.io>
Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

LGTM - Thanks!

@derekcollison derekcollison merged commit 57daeda into main Mar 23, 2023
2 checks passed
@derekcollison derekcollison deleted the neil/shutdownraftgroups branch March 23, 2023 18:09
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