Skip to content

[FIXED] Filestore can't open msg block after single truncated block#7704

Merged
neilalexander merged 1 commit intomainfrom
maurice/fs-pub-err
Jan 8, 2026
Merged

[FIXED] Filestore can't open msg block after single truncated block#7704
neilalexander merged 1 commit intomainfrom
maurice/fs-pub-err

Conversation

@MauriceVanVeen
Copy link
Copy Markdown
Member

If a file-based stream only had a single message block which was truncated to a non-zero size containing no messages, a subsequent publish would fail since it had removed all blocks from disk.

nats: error opening msg block file [""]: open : no such file or directory

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 January 7, 2026 17:19
Copy link
Copy Markdown
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

@neilalexander neilalexander merged commit 278b1d8 into main Jan 8, 2026
90 of 92 checks passed
@neilalexander neilalexander deleted the maurice/fs-pub-err branch January 8, 2026 09:01
neilalexander added a commit that referenced this pull request Jan 15, 2026
Includes the following:

- #7704
- #7708
- #7710
- #7709
- #7712
- #7716
- #7720
- #7721
- #7723
- #7728

Signed-off-by: Neil Twigg <neil@nats.io>
neilalexander added a commit that referenced this pull request Jan 15, 2026
Includes the following:

- #7704
- #7708
- #7710
- #7711
- #7709
- #7712
- #7716
- #7720
- #7721
- #7723
- #7728

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.

3 participants