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

feat: persistence with WAL #9

Merged
merged 18 commits into from
Aug 28, 2024
Merged

feat: persistence with WAL #9

merged 18 commits into from
Aug 28, 2024

Conversation

ASjet
Copy link
Owner

@ASjet ASjet commented Aug 28, 2024

Features

  • Add trait raft::Persister for read/write WAL and snapshot.
  • Implement append and replay WAL for raft committed log.
  • Add interface for enabling raft persistence raft::RaftService::setup_persister()
  • New crate persister implements raft::Persister trait.
    • persister::FilePersister use file for persistence.
  • Enable persistence for radis.

Tests

  • New raft/persist
  • New persister/wal_not_exist
  • New persister/rw_wal

@ASjet ASjet merged commit 7fa07cb into main Aug 28, 2024
1 check passed
@ASjet ASjet deleted the dev branch August 28, 2024 10:32
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.

1 participant