Skip to content

Introduce SnapshotFormat#5175

Merged
xzfc merged 1 commit intodevfrom
SnapshotFormat
Oct 4, 2024
Merged

Introduce SnapshotFormat#5175
xzfc merged 1 commit intodevfrom
SnapshotFormat

Conversation

@xzfc
Copy link
Copy Markdown
Member

@xzfc xzfc commented Oct 3, 2024

This PR introduces enum SnapshotFormat. The usage in this PR is minimal:

  • Passed across create_snapshot() invocations.
  • The name appears in log output during unpacking.

In subsequent PRs it will be used to control the format of resulting snapshots.

Comment thread lib/segment/src/types.rs
/// ├── 1d6c96ec-7965-491a-9c45-362d55361e9b.tar
/// └── …
/// ```
Ancient,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🦖🏺📜🗿

Do we still support unpacking these? If we do, let's keep it. Otherwise I'd suggest to remove this.

Copy link
Copy Markdown
Member Author

@xzfc xzfc Oct 4, 2024

Choose a reason for hiding this comment

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

Not sure if it works, but the code path to read it is still there.

} else {
log::info!("Attempt to restore legacy snapshot format");
// Do nothing, legacy format is just plain archive
}

@xzfc xzfc merged commit bc21046 into dev Oct 4, 2024
@xzfc xzfc deleted the SnapshotFormat branch October 4, 2024 16:09
@generall generall added this to the Stream Snapshots milestone Oct 8, 2024
generall pushed a commit that referenced this pull request Oct 8, 2024
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.

3 participants