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

On startup logs are replayed that are prior to hardstate commit #320

Open
Licenser opened this issue Nov 12, 2019 · 1 comment
Open

On startup logs are replayed that are prior to hardstate commit #320

Licenser opened this issue Nov 12, 2019 · 1 comment

Comments

@Licenser
Copy link

Describe the bug
When a raft-rs is initialised with a hard and config state it crashes when trying to replay already applied logs. Since raft logs are not treated as idempotent their re-application fails and crashes raft-rs.

To Reproduce

See #314

Expected behavior
Either: logs prior to the hardstate commit index are not replayed.
Or: raft logs are treated as idempotent and replaying them will have no effect

@Licenser
Copy link
Author

Any thoughts on this?

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

No branches or pull requests

1 participant