Skip to content

Fix bug where the persisted last applied could be higher than last wr…#562

Merged
michaelklishin merged 1 commit intomainfrom
fix-overly-optimistic-last-applied-persistence-issue
Nov 6, 2025
Merged

Fix bug where the persisted last applied could be higher than last wr…#562
michaelklishin merged 1 commit intomainfrom
fix-overly-optimistic-last-applied-persistence-issue

Conversation

@kjnilsson
Copy link
Copy Markdown
Contributor

…itten.

This could happen as some members can apply indexes even if they haven't yet been locally written fully as long as the commit index is higher.

In this case it would persist the last applied index even if the entry had not been persisted by the WAL. If the WAL then crashed and the node then restarted the member would fail at recovery as it would try to recover up to a last applied index that does not exist.

…itten.

This could happen as some members can apply indexes even if they haven't
yet been locally written fully as long as the commit index is higher.

In this case it would persist the last applied index even if the
entry had not been persisted by the WAL. If the WAL then crashed and
the node then restarted the member would fail at recovery as it would
try to recover up to a last applied index that does not exist.
@michaelklishin michaelklishin added this to the 2.17.2 milestone Nov 6, 2025
@michaelklishin michaelklishin merged commit 47cd66a into main Nov 6, 2025
4 checks passed
@dumbbell-rabbitmq dumbbell-rabbitmq deleted the fix-overly-optimistic-last-applied-persistence-issue branch March 23, 2026 14:59
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