Jing Yang
|
e0097cc67b
Add public documentation to the main struct.
|
пре 4 година |
Jing Yang
|
b7c3693001
Explain that commit_index is always in range [log.star(), log.end()].
|
пре 4 година |
Jing Yang
|
a28516a2a3
Rename sync_log_entry to sync_log_entries.
|
пре 4 година |
Jing Yang
|
41e0f1fde0
Move the RPC deadline constant to utils.rs.
|
пре 4 година |
Jing Yang
|
9d1a1e129d
Reorganize install snapshot to sync_log_entry.rs.
|
пре 4 година |
Jing Yang
|
14cffb8a86
Move process request vote to its own file.
|
пре 4 година |
Jing Yang
|
1407ea6e02
Move process_append_entries to its own file.
|
пре 4 година |
Jing Yang
|
5663d51ae7
Move sync log daemon and dependencies to its own file.
|
пре 4 година |
Jing Yang
|
5ddb6b2d43
Move heartbeats to its own file.
|
пре 4 година |
Jing Yang
|
83b2089b86
Move the election daemon to its own file.
|
пре 4 година |
Jing Yang
|
739230a4f7
Create a constructor for RaftState.
|
пре 4 година |
Jing Yang
|
bc61f08723
Store DaemonEnv in the thread context to enable global logging.
|
пре 4 година |
Jing Yang
|
4c11a4913d
Remove the generic parameter of DaemonEnv.
|
пре 4 година |
Jing Yang
|
578a607a6c
Remove Component from error logging.
|
пре 4 година |
Jing Yang
|
d28dc76eb5
Watch thread panics and record errors.
|
пре 4 година |
Jing Yang
|
2aeebd895b
A new design for snapshots.
|
пре 4 година |
Jing Yang
|
cd5818f558
Add shutdown to snapshot holder and a new test.
|
пре 4 година |
Jing Yang
|
ff9b9bcd4c
Do not shrink log beyond log start.
|
пре 4 година |
Jing Yang
|
9e1f78a179
Do not shrink commit index when a snapshot is installed.
|
пре 4 година |
Jing Yang
|
6706ad3389
Fix two clippy errors.
|
пре 4 година |
Jing Yang
|
b3067671d6
Include snapshot in persisted state.
|
пре 4 година |
Jing Yang
|
990edc7eba
Fix two index-out-of-range errors when accessing the log.
|
пре 4 година |
Jing Yang
|
c292d0ba65
Run snapshot daemon before apply command.
|
пре 4 година |
Jing Yang
|
e949c5c550
Send install snapshot request through apply command.
|
пре 4 година |
Jing Yang
|
cc8f061609
Create a dedicated trait for request snapshot function.
|
пре 4 година |
Jing Yang
|
5af7e3b05e
Move apply_command to its own module.
|
пре 4 година |
Jing Yang
|
072964f8a4
Provide a default NO_SNAPSHOT function.
|
пре 5 година |
Jing Yang
|
74a8a108ea
Fix clippy errors.
|
пре 5 година |
Jing Yang
|
5760aa3932
Merge branch 'snapshot': first version of snapshot taking.
|
пре 5 година |
Jing Yang
|
cd31fae304
Merge branch 'log_array': upgrade log array to support snapshot taking.
|
пре 5 година |