Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

feat(layer-cache) Populate S3 with any data found through S3->PG fallback - #8308

Merged
jhelwig merged 1 commit into
mainfrom
jhelwig/layer-cache-s3-to-pg-fallback-populates-s3
Jan 21, 2026
Merged

jhelwig merged 1 commit into
mainfrom
jhelwig/layer-cache-s3-to-pg-fallback-populates-s3

Conversation

@jhelwig

@jhelwig jhelwig commented Jan 20, 2026 •

Copy link
Copy Markdown
Contributor

Any entries that had to be found through the S3->PG fallback logic in the layer cache are typically from data that existed before any of the dual-write persister modes were turned on, and were not processed by the backfill migration mode in sdf.

The sheer volume of cas objects that fall into the pre-dual-write + not-yet-backfilled category means that trying to be 100% completionist about migrating the data from PG to S3 will take a very long time. By migrating the data as-encountered, we can be a lot more targeted in how we populate what's missing from S3.

…back

Any entries that had to be found through the S3->PG fallback logic in
the layer cache are typically from data that existed before any of the
dual-write persister modes were turned on, and were not processed by the
backfill migration mode in sdf.

The sheer volume of `cas` objects that fall into the pre-dual-write +
not-yet-backfilled category means that trying to be 100% completionist
about migrating the data from PG to S3 will take a very long time. By
migrating the data as-encountered, we can be a lot more targeted in how
we populate what's missing from S3.
@github-actions

github-actions Bot commented Jan 20, 2026 •

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or OpenSSF Scorecard issues found.

Scanned Files

None

@jhelwig
jhelwig force-pushed the jhelwig/layer-cache-s3-to-pg-fallback-populates-s3 branch from a4781c6 to 0b8c571 Compare January 20, 2026 17:50
@jhelwig
jhelwig marked this pull request as ready for review January 20, 2026 20:25
@jhelwig
jhelwig enabled auto-merge January 20, 2026 20:39

@fnichol fnichol left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense!

@jhelwig
jhelwig added this pull request to the merge queue Jan 21, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jan 21, 2026

@zacharyhamm zacharyhamm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ship it

@jhelwig
jhelwig added this pull request to the merge queue Jan 21, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jan 21, 2026
@jhelwig
jhelwig added this pull request to the merge queue Jan 21, 2026
Merged via the queue into main with commit b9cd8d4 Jan 21, 2026
4 checks passed
@jhelwig
jhelwig deleted the jhelwig/layer-cache-s3-to-pg-fallback-populates-s3 branch January 21, 2026 18:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants