Skip to content

internal/manifest: add tiering info to blob references #5745

Open
annrpom wants to merge 1 commit intocockroachdb:masterfrom
annrpom:blob-tiering-attr
Open

internal/manifest: add tiering info to blob references #5745
annrpom wants to merge 1 commit intocockroachdb:masterfrom
annrpom:blob-tiering-attr

Conversation

@annrpom
Copy link
Contributor

@annrpom annrpom commented Jan 22, 2026

Previously, blob references did not store which tier (hot or cold) the blob
file was written to.

This patch adds a Tier field to both BlobReference and PhysicalBlobFile.
The tier is now persisted in version edits using new tags (tagNewBlobFile2 and
customTagBlobReferences3) that include tier information in the encoding.
Decoding of old formats defaults to HotTier for backward compatibility.

WriterOptions.BlobReferenceTierGetter is replaced with BlobReferenceTiers,
a slice indexed by reference ID.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@github-actions
Copy link

github-actions bot commented Feb 9, 2026

Potential Bug(s) Detected

The three-stage Claude Code analysis has identified potential bug(s) in this PR that may warrant investigation.

Next Steps:
Please review the detailed findings in the workflow run.

Note: When viewing the workflow output, scroll to the bottom to find the Final Analysis Summary.

After you review the findings, please tag the issue as follows:

  • If the detected issue is real or was helpful in any way, please tag the issue with O-AI-Review-Real-Issue-Found
  • If the detected issue was not helpful in any way, please tag the issue with O-AI-Review-Not-Helpful

@annrpom annrpom force-pushed the blob-tiering-attr branch 2 times, most recently from b035aa9 to 8959857 Compare February 10, 2026 16:53
@github-actions
Copy link

Potential Bug(s) Detected

The three-stage Claude Code analysis has identified potential bug(s) in this PR that may warrant investigation.

Next Steps:
Please review the detailed findings in the workflow run.

Note: When viewing the workflow output, scroll to the bottom to find the Final Analysis Summary.

After you review the findings, please tag the issue as follows:

  • If the detected issue is real or was helpful in any way, please tag the issue with O-AI-Review-Real-Issue-Found
  • If the detected issue was not helpful in any way, please tag the issue with O-AI-Review-Not-Helpful

Previously, blob references did not store which tier (hot or cold) the blob
file was written to.

This patch adds a Tier field to both BlobReference and PhysicalBlobFile.
The tier is now persisted in version edits using new tags (tagNewBlobFile2 and
customTagBlobReferences3) that include tier information in the encoding.
Decoding of old formats defaults to HotTier for backward compatibility.

WriterOptions.BlobReferenceTierGetter is replaced with BlobReferenceTiers,
a slice indexed by reference ID.
@annrpom annrpom marked this pull request as ready for review February 10, 2026 19:26
@annrpom annrpom requested a review from a team as a code owner February 10, 2026 19:26
@annrpom annrpom requested a review from RaduBerinde February 10, 2026 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants