Skip to content

[FIXED] Filestore SkipMsgs misses IDX accounting#7534

Merged
neilalexander merged 1 commit intomainfrom
maurice/fs-idx-skip
Nov 10, 2025
Merged

[FIXED] Filestore SkipMsgs misses IDX accounting#7534
neilalexander merged 1 commit intomainfrom
maurice/fs-idx-skip

Conversation

@MauriceVanVeen
Copy link
Copy Markdown
Member

@MauriceVanVeen MauriceVanVeen commented Nov 10, 2025

When doing individual fs.SkipMsg(seq) calls, these will all be represented as erased messages. However, when calling fs.SkipMsgs(seq, num) the last entry would be added as erased to the mb.cache.idx, but all deleted entries in the range would not be added as dbit. This would result in partial cache errors for any reads after this skip.

Signed-off-by: Maurice van Veen github@mauricevanveen.com

Signed-off-by: Maurice van Veen <github@mauricevanveen.com>
@MauriceVanVeen MauriceVanVeen requested a review from a team as a code owner November 10, 2025 10:40
Copy link
Copy Markdown
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

@neilalexander neilalexander merged commit 703788e into main Nov 10, 2025
89 of 92 checks passed
@neilalexander neilalexander deleted the maurice/fs-idx-skip branch November 10, 2025 11:04
neilalexander added a commit that referenced this pull request Nov 12, 2025
Includes the following:

- #7534
- #7535
- #7536
- #7537
- #7538
- #7539
- #7543
- #7456

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.

2 participants