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

Truncate the db file before the WAL for differential storage #8980

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

Y--
Copy link
Contributor

@Y-- Y-- commented Sep 18, 2023

Differential relies on the signal of the WAL file being truncated to snapshot the differential file. It would be helpful to have db truncations occur before hand - so we can capture this in our snapshot.

The ordering of these operations (WAL vs DB truncation) do not affect correctness - as the database should be durable after the table_metadata_writer->Flush() completes. At this point - DuckDB is just cleaning up the database/WAL state at the end of the checkpoint.

Copy link
Collaborator

@Mytherin Mytherin left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! LGTM

@Mytherin Mytherin merged commit a61c571 into duckdb:main Sep 18, 2023
47 of 48 checks passed
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.

None yet

2 participants