Ben Darnell
|
54b07d7974
Remove raft.loadEnts and the ents parameter to raft.RestartNode.
|
10 years ago |
Ben Darnell
|
147fd614ce
The initial term=0 log entry is now initially unstable.
|
10 years ago |
Ben Darnell
|
76a3de9a33
Require a non-nil Storage parameter in newLog.
|
10 years ago |
Yicheng Qin
|
7dba92dd53
raft: update unstable when calling stableTo with 0
|
10 years ago |
Ben Darnell
|
25b6590547
raft: introduce log storage interface.
|
10 years ago |
Ben Darnell
|
21987c8701
raft: remove raftLog.resetUnstable and resetNextEnts
|
10 years ago |
Xiang Li
|
0d7c43d885
*: add a Advance interface to raft.Node
|
10 years ago |
Yicheng Qin
|
421d5fbe72
raft: add tests based on section 5.3 in raft paper
|
10 years ago |
Xiang Li
|
738da2b3fa
raft: fix a incorrect in testMaybeAppend
|
10 years ago |
Xiang Li
|
74c257f63d
Merge pull request #1419 from xiangli-cmu/raft_log_test
|
10 years ago |
Xiang Li
|
460d6490ba
raft: address issues in comments
|
10 years ago |
Xiang Li
|
94f701cf95
raft: refactor isUpToDate and add a test
|
10 years ago |
Xiang Li
|
8cd95e916d
raft: comments for isUpToDate
|
10 years ago |
Xiang Li
|
86c66cd802
raft: remove unused code
|
10 years ago |
Xiang Li
|
90f26e4a56
raft: add test for findConflict
|
10 years ago |
Soheil Hassas Yeganeh
|
09e9618b02
raft: change raftLog.maybeAppend to return the last new index
|
10 years ago |
Yicheng Qin
|
e200d2a8e2
etcdserver/raft: remove msgDenied, removedNodes, shouldStop
|
10 years ago |
Jonathan Boulle
|
7a4d42166b
*: add license header to all source files
|
10 years ago |
Jonathan Boulle
|
fc42bdb904
raft: remove unused compactThreshold
|
10 years ago |
Xiang Li
|
af5b8c6c44
raft: int64 -> uint64
|
10 years ago |
Xiang Li
|
7b61565c0a
raft: save removed nodes in snapshot
|
10 years ago |
Xiang Li
|
b3c1bd5616
raft: commitIndex=min(leaderCommit, index of last new entry)
|
10 years ago |
Xiang Li
|
ab61a8aa9a
*: init for on disk snap support
|
10 years ago |
Yicheng Qin
|
140fd6d6c4
raft: restart using last written entry also
|
10 years ago |
Yicheng Qin
|
a9af70c52b
raft: write entry 0 into log
|
10 years ago |
Yicheng Qin
|
072a21782e
Merge pull request #1049 from unihorn/120
|
10 years ago |
Yicheng Qin
|
d31443f5a3
raftLog: compact applied entries only
|
10 years ago |
Brandon Philips
|
3bc4b2db12
raft: log comment grammar fix
|
10 years ago |
Xiang Li
|
eaffaacf5e
raft: do not need to copy committed entries
|
10 years ago |
Jonathan Boulle
|
9997c9488a
*: fix a few small issues identified by go vet
|
10 years ago |