Skip to content

Set tiered storage as snapshot source - #6683

Open
kim wants to merge 1 commit into
kim/snapshots-enable-v1from
kim/tiered-snapshots
Open

kim wants to merge 1 commit into
kim/snapshots-enable-v1from
kim/tiered-snapshots

Conversation

@kim

@kim kim commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

As an intermediate step toward remote storage snapshot, this introduces the trait
SnapshotObjectStore. This trait permits the implementer to hardlink objects from
the disk tier, and decide what to do with remote tier objects. It should be easy to
extend the interface for implementations that don't store objects on disk, by
providing an alternative write method that doesn't take a Path but an io::Write
or somesuch.

Since remote storage snapshots are a proprietary feature, standalone must continue
to support the current on-disk format. To that end, the implementation would copy
remote objects into the snapshot, if there was a configuration that would allow
remote objects to exist.

Hardlinking objects from the previous snapshot is no longer supported.
To avoid writing always-resident objects repeatedly, a hard link from a previous
snapshot is attempted.

Note that resident objects are currently eagerly serialized to bsatn.

This patch depends in local tier pinning.

API and ABI breaking changes

N/A

Rollback safety impact

N/A

Expected complexity level and risk

3

Testing

Snapshots should remain identical on disk, which existing tests should cover.

@kim
kim requested a review from joshua-spacetime November 24, 2026 15:29
@kim

kim commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

Hardlinking objects from the previous snapshot is no longer supported.

Actually, I need to reinstantiate this, because an always-resident object could still be present in a previous snapshot, so we don't want to write it again.

@kim
kim force-pushed the kim/snapshots-enable-v1 branch from 73e2f3e to f387454 Compare November 26, 2026 10:15
@kim
kim force-pushed the kim/tiered-snapshots branch 2 times, most recently from 3cb1dbd to a24e106 Compare November 26, 2026 11:51
@kim
kim force-pushed the kim/snapshots-enable-v1 branch from f387454 to 09f79c8 Compare November 26, 2026 11:51
@kim
kim force-pushed the kim/tiered-snapshots branch from a24e106 to d027756 Compare November 26, 2026 13:14
@kim
kim force-pushed the kim/snapshots-enable-v1 branch from 09f79c8 to b0dff14 Compare November 26, 2026 13:14
@kim
kim force-pushed the kim/tiered-snapshots branch from d027756 to c8972de Compare November 26, 2026 14:12
@kim
kim force-pushed the kim/tiered-snapshots branch from c8972de to 6636958 Compare November 26, 2026 14:22
@kim
kim force-pushed the kim/snapshots-enable-v1 branch from 63df163 to cc4718e Compare November 26, 2026 14:22

This branch has not been deployed

No deployments
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.

1 participant