Jing Yang
|
fa74454870
Implement persister.
|
hace 5 años |
Jing Yang
|
ecc3ec8d46
Add the RPC count test.
|
hace 5 años |
Jing Yang
|
b13b3f0136
Fix a bug in the tests config and another one in backup tests.
|
hace 5 años |
Jing Yang
|
274bd0cdc8
Add the last agreement test.
|
hace 5 años |
Jing Yang
|
0807fc7207
Add the rejoin test.
|
hace 5 años |
Jing Yang
|
397c8aad63
Add fail no agree test.
|
hace 5 años |
Jing Yang
|
451f9559be
Add fail agree test.
|
hace 5 años |
Jing Yang
|
62a468ee3b
Add the basic agreement tests, fixed bugs.
|
hace 5 años |
Jing Yang
|
f0c6126caa
Add a test for re_election.
|
hace 5 años |
Jing Yang
|
58e20ae2d3
Add checks for same term.
|
hace 5 años |
Jing Yang
|
0be0f031b1
Use client in client name.
|
hace 5 años |
Jing Yang
|
6c6afbcde0
Fix step size overflow.
|
hace 5 años |
Jing Yang
|
144224d107
Fix shutdown procedure.
|
hace 5 años |
Jing Yang
|
b19e1a3905
Use the server name as-is at rpc utils.
|
hace 5 años |
Jing Yang
|
ac213f6d53
Reserve vec with certain size instead of capacity.
|
hace 5 años |
Jing Yang
|
b838091bd6
Do not delay if the last retry fails.
|
hace 5 años |
Jing Yang
|
1f41b2dae0
Correct is_leader check in append_entries and heartbeat.
|
hace 5 años |
Jing Yang
|
e7fa862b50
Fix the timer never fires bug.
|
hace 5 años |
Jing Yang
|
94ce80a793
Allow debugging all structs.
|
hace 5 años |
Jing Yang
|
d637710470
Check one leader fails at initial election test.
|
hace 5 años |
Jing Yang
|
3975600a33
Initial election test skeleton.
|
hace 5 años |
Jing Yang
|
163b55487d
Refactor: using drop instead of scope.
|
hace 5 años |
Jing Yang
|
275d0bedda
More clippy changes.
|
hace 5 años |
Jing Yang
|
22fc247173
Use WaitGroup instead of Barrier to implement shutdown.
|
hace 5 años |
Jing Yang
|
8aee179c10
Add a stop barrier.
|
hace 5 años |
Jing Yang
|
8fb61b2fd0
Implement start() and kill()
|
hace 5 años |
Jing Yang
|
3c225e7891
Lots of clippy changes.
|
hace 5 años |
Jing Yang
|
1ba58689f2
Cancel the election if timer was changed more than once.
|
hace 5 años |
Jing Yang
|
25e1c30f5c
Remove timer once fired.
|
hace 5 años |
Jing Yang
|
e10b6ce01f
More refactor and more comments.
|
hace 5 años |