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

When installing a new snapshot remove last inline if present. #5558

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

derekcollison
Copy link
Member

Previously (but not in released code) we were cleaning up all old ones in a go routine. However this could cause multiple go routines to race and delete the wrong snapshot leaving none available.

Signed-off-by: Derek Collison derek@nats.io

@derekcollison derekcollison requested a review from a team as a code owner June 18, 2024 09:25
Copy link
Member

@neilalexander neilalexander left a comment

Choose a reason for hiding this comment

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

LGTM

Previously we were cleaning up all old ones and doing it in a go routine.
However this could cause multiple go routines to race and delete the wrong snapshot leaving none available.

Signed-off-by: Derek Collison <derek@nats.io>
@derekcollison
Copy link
Member Author

Had a small bug, but tracked it down. If green will merge after this run.

@derekcollison derekcollison merged commit 39e972d into main Jun 18, 2024
4 checks passed
@derekcollison derekcollison deleted the raft-empty branch June 18, 2024 10:48
neilalexander added a commit that referenced this pull request Jun 18, 2024
Includes the following:

* #5552 
* #5557
* #5556
* #5558

Signed-off-by: Neil Twigg <neil@nats.io>
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