-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: add_learner() should block forever
The `Raft::add_learner()` method, when invoked with the `blocking` parameter set to `true`, should block forever until the learner synchronizes its logs with the leader. In its current implementation, `add_learner()` calls the `Raft::wait()` method, which has a default timeout of `500ms`. To achieve the desired blocking behavior, the default timeout should be increased significantly. - Fix: #846
1 parent
39b57c4
commit f505d7e
Showing
2 changed files
with
14 additions
and
6 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