Skip to content

Reserve preallocated room for active partitions in retention#90

Merged
imp merged 1 commit into
mainfrom
fmurphy/preallocate-space-per-active-partition
Jun 30, 2026
Merged

Reserve preallocated room for active partitions in retention#90
imp merged 1 commit into
mainfrom
fmurphy/preallocate-space-per-active-partition

Conversation

@AnIrishDuck

Copy link
Copy Markdown
Collaborator

Retention previously sized the byte budget against on-disk data only, ignoring that each active (in-memory) partition can grow by up to one full segment before that segment rolls and becomes eligible for retention. Under write pressure this let the catalog overshoot its target by roughly max_segment_bytes per active partition.

Subtract max_segment_bytes * active_partitions from the retention budget so the limit leaves space for that in-flight growth. The reserve is computed per retention check and stacks with the existing filesystem headroom.

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

Retention previously sized the byte budget against on-disk data only,
ignoring that each active (in-memory) partition can grow by up to one
full segment before that segment rolls and becomes eligible for
retention. Under write pressure this let the catalog overshoot its
target by roughly max_segment_bytes per active partition.

Subtract `max_segment_bytes * active_partitions` from the retention
budget so the limit leaves space for that in-flight growth. The reserve
is computed per retention check and stacks with the existing filesystem
headroom.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Y7UYuQ5VBUQhbwpRutXvkh
@imp imp force-pushed the fmurphy/preallocate-space-per-active-partition branch from d2ae95a to 75eb112 Compare June 30, 2026 16:53
@imp imp merged commit 59643a6 into main Jun 30, 2026
4 checks passed
@imp imp deleted the fmurphy/preallocate-space-per-active-partition branch June 30, 2026 17:00
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.

4 participants