Skip to content

Fix durable frame tracking to follow transaction boundaries#2129

Merged
penberg merged 1 commit intomainfrom
sync-fixes-again
Jul 15, 2025
Merged

Fix durable frame tracking to follow transaction boundaries#2129
penberg merged 1 commit intomainfrom
sync-fixes-again

Conversation

@sivukhin
Copy link
Copy Markdown
Contributor

Pull logic used invalid property of WAL in its implementation and was written under assumption that any frames written to WAL are durable.

This is not true in case of frames written for unfinished transaction, because such frames will be omitted by any SQLite connection except from the one which created them. So, in case of restart - we will "loose" these frames, but durable_frame_num will incorrectly state that we already written "missed" portion of WAL.

This PR fix this issue and make pull to persist information about "durable_frame_num" only at transaction boundaries.

@penberg penberg changed the title make pull logic more correct Fix durable frame tracking to follow transaction boundaries Jul 15, 2025
@penberg penberg enabled auto-merge July 15, 2025 11:11
@penberg penberg added this pull request to the merge queue Jul 15, 2025
Merged via the queue into main with commit dcc70b6 Jul 15, 2025
19 checks passed
@penberg penberg deleted the sync-fixes-again branch July 15, 2025 11:32
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