-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[consensus] Fix crash recovery when no commit info was flushed (#17712)
CommitInfo is buffered on LeaderSchedule change and then it is flushed on the following commit. The current issue is that it is possible for commits to be written but not CommitInfo to be persisted to store. This is typically okay because the recovery code in DagState should recover all information from the last stored CommitInfo. The issue was that until the first LeaderSchedule change there is no commit info written to store and the code was not properly recovering `last_committed_rounds` in DagState in this case. Changed the code to handle recovery in the case that no commit info has been written to store and added some additional testing for recovery.
- Loading branch information
1 parent
0d02721
commit b10ea73
Showing
2 changed files
with
246 additions
and
137 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
Oops, something went wrong.