Skip to content

Handle interrupted partition writing.#55

Merged
lazamar merged 3 commits intomainfrom
restarts
Apr 23, 2026
Merged

Handle interrupted partition writing.#55
lazamar merged 3 commits intomainfrom
restarts

Conversation

@lazamar
Copy link
Copy Markdown
Contributor

@lazamar lazamar commented Apr 23, 2026

There was a bug where if we get interrupted in the middle of a partition writing, we would incorporate a bunch of orphaned bytes into the partition file. This PR fixes it by trimming the partition file to the byte offset specified in the last index entry.

Tests were added to ensure this works in different scenarios.

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@lazamar lazamar merged commit ed36457 into main Apr 23, 2026
1 check passed
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.

1 participant