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

Don't allow stream or consumer snapshots before recovery completed #4927

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

neilalexander
Copy link
Member

Since doSnapshot in both cases can be called from a maintenance timer or on the quit signal, this may cause us to snapshot before recovery has completed.

Signed-off-by: Neil Twigg [email protected]

@neilalexander neilalexander requested a review from a team as a code owner January 8, 2024 16:16
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 - Small nit to just combine with check below.

server/jetstream_cluster.go Outdated Show resolved Hide resolved
server/jetstream_cluster.go Outdated Show resolved Hide resolved
@derekcollison derekcollison merged commit 67c52c0 into main Jan 8, 2024
4 checks passed
@derekcollison derekcollison deleted the neil/monitorrecovering branch January 8, 2024 16:44
wallyqs added a commit that referenced this pull request Jan 9, 2024
Cherry-pick the following PRs into the 2.10.8 release branch:

* #4918 
* #4923
* #4925
* #4926
* #4927
* #4929 
* #4933
* #4835

Signed-off-by: Neil Twigg <[email protected]>
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