Skip to content

Add startup retention reclaim to recover from a full disk#88

Merged
imp merged 2 commits into
mainfrom
fmurphy/startup-full-disk-recovery
Jun 30, 2026
Merged

Add startup retention reclaim to recover from a full disk#88
imp merged 2 commits into
mainfrom
fmurphy/startup-full-disk-recovery

Conversation

@AnIrishDuck

Copy link
Copy Markdown
Collaborator

Ongoing retention removes a segment's manifest entry before destroying its backing data. When the process starts against an already-full disk that order cannot make progress: deleting the manifest row is a SQLite write that itself needs free space to journal, so it panics with "database or disk is full" before any space is reclaimed.

Add Catalog::reclaim, a one-shot check run before the steady-state checkpoint/retention loops. When over the limit it removes the oldest segment data-first (destroy backing data, then remove the manifest entry), freeing space so the regular retention loop can take over.

Claude-Session: https://claude.ai/code/session_01Jkk2NoeuqoKS8XsxZSu7gq

@AnIrishDuck AnIrishDuck requested review from JONBRWN and imp June 26, 2026 18:20
Ongoing retention removes a segment's manifest entry before destroying
its backing data. When the process starts against an already-full disk
that order cannot make progress: deleting the manifest row is a SQLite
write that itself needs free space to journal, so it panics with
"database or disk is full" before any space is reclaimed.

Add Catalog::reclaim, a one-shot check run before the steady-state
checkpoint/retention loops. When over the limit it removes the oldest
segment data-first (destroy backing data, then remove the manifest
entry), freeing space so the regular retention loop can take over.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Jkk2NoeuqoKS8XsxZSu7gq
@imp imp force-pushed the fmurphy/startup-full-disk-recovery branch from ca5b29a to 49dfdce Compare June 30, 2026 15:50
@imp imp merged commit 353eed5 into main Jun 30, 2026
4 checks passed
@imp imp deleted the fmurphy/startup-full-disk-recovery branch June 30, 2026 16:13
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