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

Compact logs after snapshot #112

Open
btmorr opened this issue Jul 20, 2020 · 0 comments · May be fixed by #116
Open

Compact logs after snapshot #112

btmorr opened this issue Jul 20, 2020 · 0 comments · May be fixed by #116
Labels
enhancement New feature or request

Comments

@btmorr
Copy link
Owner

btmorr commented Jul 20, 2020

After a snapshot is successfully created (per #83), remove committed log entries leading up to that state. Snapshot procedure described in Section 7 of the extended Raft paper: https://raft.github.io/raft.pdf

This can be done safely, independent of leadership because it is not possible for prior entries to be invalidated after being committed.

Dependent on #111 to ensure that servers do not lose data on restart after a snapshot is taken

@btmorr btmorr added the enhancement New feature or request label Jul 20, 2020
@btmorr btmorr linked a pull request Jul 23, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant