Xiang Li
|
649176934a
raft: add tests for stableTo
|
11 years ago |
Xiang Li
|
3c0fbe285c
raft: stableTo checks term matching
|
11 years ago |
Xiang Li
|
66252c7d62
raft: move all unstable stuff into one struct for future cleanup
|
11 years ago |
Xiang Li
|
9df0e7715d
raft: do not panic on out of date compaction
|
11 years ago |
Yicheng Qin
|
1d01c8aa2d
raft: remove unused raftLog.at function
|
11 years ago |
Xiang Li
|
65ad1f6ffd
raft: attach Index to Entry in all tests
|
11 years ago |
Xiang Li
|
62a8df304a
raft: fix error message in TestLogRestore
|
11 years ago |
Xiang Li
|
e8afdcfe0a
raft: refactor testUnstableEnts
|
11 years ago |
Ben Darnell
|
b29240baf0
Merge remote-tracking branch 'coreos/master' into merge
|
11 years ago |
Ben Darnell
|
355ee4f393
raft: Integrate snapshots into the raft.Storage interface.
|
11 years ago |
Xiang Li
|
bd4cfa2a07
raft: add handleHeartbeat
|
11 years ago |
Ben Darnell
|
300c5a2001
Merge remote-tracking branch 'coreos/master' into log-storage-interface
|
11 years ago |
Ben Darnell
|
64d9bcabf1
Add Storage.Term() method and hide the first entry from other methods.
|
11 years ago |
Yicheng Qin
|
7d0ffb3f12
raft: not set applied when restored from snapshot
|
11 years ago |
Ben Darnell
|
45e96be605
raft: PR feedback.
|
11 years ago |
Ben Darnell
|
b29c512f50
Merge remote-tracking branch 'coreos/master' into log-storage-interface
|
11 years ago |
Ben Darnell
|
147fd614ce
The initial term=0 log entry is now initially unstable.
|
11 years ago |
Ben Darnell
|
76a3de9a33
Require a non-nil Storage parameter in newLog.
|
11 years ago |
Yicheng Qin
|
7dba92dd53
raft: update unstable when calling stableTo with 0
|
11 years ago |
Ben Darnell
|
25b6590547
raft: introduce log storage interface.
|
11 years ago |
Ben Darnell
|
21987c8701
raft: remove raftLog.resetUnstable and resetNextEnts
|
11 years ago |
Xiang Li
|
738da2b3fa
raft: fix a incorrect in testMaybeAppend
|
11 years ago |
Xiang Li
|
14f4163e41
raft: add several test cases for testMaybeAppend
|
11 years ago |
Xiang Li
|
ad1718a3e5
raft: add a test case for testLogMaybeAppend
|
11 years ago |
Xiang Li
|
c6873c1eab
raft: add tests for maybeappend
|
11 years ago |
Xiang Li
|
460d6490ba
raft: address issues in comments
|
11 years ago |
Xiang Li
|
94f701cf95
raft: refactor isUpToDate and add a test
|
11 years ago |
Xiang Li
|
90f26e4a56
raft: add test for findConflict
|
11 years ago |
Jonathan Boulle
|
7a4d42166b
*: add license header to all source files
|
11 years ago |
Xiang Li
|
af5b8c6c44
raft: int64 -> uint64
|
11 years ago |