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

db: perform a snapshot if WAL contains persisted entries #569

Merged
merged 2 commits into from
Oct 24, 2023
Merged

Conversation

asubiotto
Copy link
Member

No description provided.

Previously, the uncompressed insert size would not be initialized correctly
after recovery, this could cause L0 size to grow
When rotating or persisting a block, a TableBlockPersisted entry is logged in
the WAL and an async snapshot is performed. If on recovery, the entry still
exists in the WAL, it means that a snapshot was not performed, since it would
have truncated the WAL. This commit ensures the WAL is cleaned up in these
cases, since we have seen that this could lead the WAL to grow indefinitely.
@asubiotto asubiotto merged commit 558ded3 into main Oct 24, 2023
2 checks passed
@asubiotto asubiotto deleted the alfonso-uis branch October 24, 2023 09:44
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.

2 participants