Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: manifest support delete #1610

Merged
merged 5 commits into from
Dec 18, 2024
Merged

Conversation

jiacai2050
Copy link
Contributor

@jiacai2050 jiacai2050 commented Dec 17, 2024

Rationale

When compact finished, we need to delete the old input sst and expired sst.

Detailed Changes

  • The delta file use ManifestUpdate struct.
  • Refactor compact scheduler, to make it more modular.

Test Plan

CI

@github-actions github-actions bot added the feature New feature or request label Dec 17, 2024
@jiacai2050 jiacai2050 requested a review from baojinri December 17, 2024 09:41
@@ -399,7 +395,7 @@ impl From<SnapshotRecordV1> for SstFile {

struct Snapshot {
header: SnapshotHeader,
inner: Bytes,
records: Vec<SnapshotRecordV1>,
Copy link
Contributor

Choose a reason for hiding this comment

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

Using SnapshotRecordV1 here, we lose the optimized manifest structure in #1600

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The old format can't support SST delete.

@baojinri baojinri merged commit 03b1df9 into apache:main Dec 18, 2024
8 checks passed
@jiacai2050 jiacai2050 deleted the feat-manifest-update branch December 18, 2024 03:03
baojinri pushed a commit that referenced this pull request Dec 18, 2024
## Rationale
Followup #1610, to make manifest more modular.

## Detailed Changes


## Test Plan
CI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants