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

Only truncate AOF if all active stores are checkpointed #461

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

chenhao-ye
Copy link
Contributor

AOF is truncated after checkpointing. However, truncation should only happen if both stores are checkpointed, since they share the same AOF. The current implementation can lose data if storeType is not StoreType.All.

This bug so far is not triggered because every caller is using StoreType.All.

@chenhao-ye
Copy link
Contributor Author

@microsoft-github-policy-service agree

@chenhao-ye chenhao-ye force-pushed the only-truncate-aof-if-checkpoint-both-stores branch from 6d7ebb1 to dc6bc16 Compare June 12, 2024 22:21
libs/server/StoreWrapper.cs Outdated Show resolved Hide resolved
@chenhao-ye chenhao-ye force-pushed the only-truncate-aof-if-checkpoint-both-stores branch 2 times, most recently from 49af328 to e7a4010 Compare June 13, 2024 22:20
@chenhao-ye chenhao-ye requested a review from vazois June 13, 2024 22:35
@chenhao-ye chenhao-ye changed the title Only truncate AOF if both stores are checkpointed Only truncate AOF if all active stores are checkpointed Jun 14, 2024
@chenhao-ye chenhao-ye force-pushed the only-truncate-aof-if-checkpoint-both-stores branch from e7a4010 to c7f7c05 Compare June 22, 2024 00:41
@chenhao-ye
Copy link
Contributor Author

Comments are addressed.

@chenhao-ye chenhao-ye force-pushed the only-truncate-aof-if-checkpoint-both-stores branch from c7f7c05 to 200a609 Compare June 24, 2024 01:46
@TalZaccai TalZaccai marked this pull request as draft July 30, 2024 18:09
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