-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not retry proposal if already found in CommittedEntries (#2740)
This is the first win from Open Census. Learnt that proposals immediately show up in `raft.Ready().CommittedEntries`, but then take a long time in the `applyCh` queue to be applied. If these proposals are just waiting in the queue to be applied, then we're sure that Raft didn't lose them in flight, and therefore, we don't need to re-propose them. This PR detects that and avoids retrying the proposal.
- Loading branch information
1 parent
bf0cfee
commit 7a59e8d
Showing
5 changed files
with
404 additions
and
340 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
Oops, something went wrong.