[FIXED] Fixed a bug that could cause filestore LoadNextMsg to skip valid msgs.#5266
Merged
derekcollison merged 3 commits intomainfrom Apr 3, 2024
Merged
[FIXED] Fixed a bug that could cause filestore LoadNextMsg to skip valid msgs.#5266derekcollison merged 3 commits intomainfrom
derekcollison merged 3 commits intomainfrom
Conversation
We were getting partial or no cache errors when hitting it from multiple go routines in quick succession. Signed-off-by: Derek Collison <derek@nats.io>
…valid. If we think we need to calculate a new first sequence but the one we have is still valid, this could lead to messages being skipped and not sent to a consumer. Signed-off-by: Derek Collison <derek@nats.io>
Signed-off-by: Derek Collison <derek@nats.io>
bruth
approved these changes
Apr 3, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This was due to recalculating a first sequence for a simple state when the first sequence was ok.
Also some bail out early optimizations.
Signed-off-by: Derek Collison derek@nats.io