Jing Yang
|
c6d3ce06f3
Mark LogArray and VerifyAuthorityResult as crate-private types.
|
2 years ago |
Jing Yang
|
1a43d98384
Remove clippy allows that are no longer necessary.
|
3 years ago |
Jing Yang
|
7329e47622
Add rpc_client and beat_ticker to the context.
|
3 years ago |
Jing Yang
|
2a2e55a7bb
Move verify_authority.rs to using the new standalone daemon_watch.
|
3 years ago |
Jing Yang
|
5fe90f62fe
Refactor: move DaemonWatch out of DaemonEnv.
|
3 years ago |
Jing Yang
|
cdcb335ec4
Suppress needless_borrow warnings in verify_authority.rs.
|
3 years ago |
Jing Yang
|
0df906c66b
Remove clear_committed_requests.
|
3 years ago |
Jing Yang
|
ca59d5b7ac
Replace SeqCst ordering with more relaxed ones in keep_running.
|
3 years ago |
Jing Yang
|
4939360829
Fix the bug caused by stale commit index at the start of the term.
|
3 years ago |
Jing Yang
|
aa4a80651e
Add another test to reveal the bug caused by stale commit indexes.
|
3 years ago |
Jing Yang
|
9523f609d3
Move sentinel_commit_index to verify_authority_daemon.
|
3 years ago |
Jing Yang
|
06e029b724
Add a test to show a bug caused by stale sentinel index.
|
3 years ago |
Jing Yang
|
6d22246e50
Merge stop_wait_group into daemon env.
|
3 years ago |
Jing Yang
|
f230c518c0
Merge daemon_env guard into daemons.
|
3 years ago |
Jing Yang
|
56e5b19355
Name each daemon thread at creation.
|
3 years ago |
Jing Yang
|
66cccb5847
Make HEARTBEAT_INTERVAL a Duration.
|
3 years ago |
Jing Yang
|
69c1c1565e
Split lib.rs into messages.rs and raft.rs.
|
3 years ago |
Jing Yang
|
0383c75c20
Remove excessive use of "Default".
|
3 years ago |
Jing Yang
|
75d4e75262
Optimize imports in source files.
|
3 years ago |
Jing Yang
|
9bf4309269
Use a known-width integer for beats.
|
3 years ago |
Jing Yang
|
b8bfaa8ab9
Add a mixed test for the verify authority daemon.
|
3 years ago |
Jing Yang
|
de63f458f2
Add tests for reset_state().
|
3 years ago |
Jing Yang
|
ad1febb5bd
Add tests for clear_ticked_requests().
|
3 years ago |
Jing Yang
|
13068c3520
Add a test for clear_committed_requests().
|
3 years ago |
Jing Yang
|
13ae1b1358
Add a test for remove_expired_requests.
|
3 years ago |
Jing Yang
|
41dba8fa65
Add basic tests for the verify authority API.
|
3 years ago |
Jing Yang
|
bb649211b5
Address clippy warnings.
|
3 years ago |
Jing Yang
|
db0696517e
Reduce the frequency of heartbeats when there are pending commits.
|
3 years ago |
Jing Yang
|
222b18d355
Fail all new and inflight requests at shutdown time.
|
3 years ago |
Jing Yang
|
98f001201f
Add comment to explain the verify authority API.
|
3 years ago |