Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.