-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replication: For taking snapshots use commit_index, not last_applied (#…
…50) Currently entries are applied synchronously by the FSM as soon as they get committed. However, we want to also support disk-based FSMs that might need to apply entries asynchronously. Using commit_index instead of last_applied when taking snapshots means that the raft engine will be able to request a snapshot even if some entries are still being applied by the FSM. Consumer code will queue the snapshot request and process it when outstanding entries have been applied.
- Loading branch information
Showing
2 changed files
with
15 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters