Skip to content

feat(format): add blob reuse index - #8898

Closed
Xuanwo wants to merge 1 commit into
mainfrom
xuanwo/blob-reuse-index-format
Closed

Xuanwo wants to merge 1 commit into
mainfrom
xuanwo/blob-reuse-index-format

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Aug 31, 2026

Copy link
Copy Markdown
Member

Problem

Blob v2 Packed and Dedicated descriptors use DataFile-local blob IDs. After compaction writes a new DataFile, those descriptors cannot reference immutable sidecars owned by an older DataFile, forcing payload rewrites and preventing precise lifecycle tracking.

Format contract

This adds an optional sparse Blob Reuse Index to DataFile. A hit redirects a local blob ID to a terminal (base_id, blob_dir, physical_id) source; a miss retains the existing identity mapping under the containing DataFile stem. The descriptor and sidecar formats remain unchanged, and Packed descriptors continue applying their stored position and size.

A manifest containing BRI metadata sets reader and writer feature flag bit 512. Implementations that do not understand the mapping must reject the current dataset version rather than read an incorrect identity path.

Compatibility

Existing datasets and historical versions remain unchanged. BRI can be removed by a complete rewrite that materializes all referenced sidecars. This format change requires the normal PMC vote before the implementation PR is merged.

@github-actions github-actions Bot added A-format On-disk format: protos and format spec docs format-change A change to the format spec, which requires a vote. Remove if minor (e.g. fixing typo). enhancement New feature or request labels Aug 31, 2026
@Xuanwo Xuanwo closed this Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-format On-disk format: protos and format spec docs enhancement New feature or request format-change A change to the format spec, which requires a vote. Remove if minor (e.g. fixing typo).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant