-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add timeout parameter to RaftNode#query() method
This commit implements a new RaftNode#query() override which contains a timeout parameter. When a monotonic reads query is issued with QueuePolicy#EVENTUAL_CONSISTENCY, a minimum commit index and a timeout, RaftNode waits for the given timeout duration until the local commit index becomes greater than or equal to the given minimum commit index.
- Loading branch information
Showing
12 changed files
with
739 additions
and
190 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
Large diffs are not rendered by default.
Oops, something went wrong.
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.