RagingSpud
f251031837
change err log output format ( #430 )
2022-11-01 14:18:41 +00:00
niebayes
7ef99e3617
replace direct accesses on raftLog.entries with allEntries interface ( #421 )
...
#418
Co-authored-by: Connor <zbk602423539@gmail.com>
2022-08-30 16:56:01 +08:00
niebayes
308bfe343f
fix typo ( #420 )
...
Populate correct id arguments to `newTestRaft` in TestHeartbeatUpdateCommit2AB
2022-08-30 16:45:09 +08:00
niebayes
f5a5aa8a17
add an id parameter to entsWithConfig and votedWithConfig ( #419 )
...
Currently, the only usage of `entsWithConfig` and `votedWithConfig` is in TestLeaderElectionOverwriteNewerLogs2AB.
This test case emulates a five-peer network and spawns each peer either by `entsWithConfig` or `votedWithConfig`.
However, neither of them specifies an id parameter and as a result the five peers all have the same id `1`. This makes debugging and logging a little bit of creepy.
So it'd better to add an id parameter both to `entsWithConfig` and `votedWithConfig`, and modify their usage accordingly.
2022-08-30 13:32:54 +08:00
niebayes
cfbc05df7e
add a new interface allEntries to RaftLog ( #418 )
2022-08-29 03:31:40 +00:00
vince.wu
6ecddc7f00
ut: add TestRestoreFromSnapWithOverlapingPeersMsg2C ( #408 )
2022-07-13 14:30:03 +08:00
xhnhill
a18721123f
Fix typo in TestLogReplication2AB ( #402 )
2022-06-30 04:36:47 +00:00
Jiarui Li
dccddfae90
refactor(raft_test): use consistent output format for TestProposal2AB ( #348 )
2021-12-21 03:14:47 +00:00
李素晴
e4cdc05319
fix: misspelled words ( #342 )
2021-12-13 11:07:05 +08:00
oocococo
94f6fc45ab
fix(raft): LogTerm exceed Term ( #323 )
...
LogTerm should always be smaller than Term in AppendMsg
fix #322
2021-11-29 13:54:37 +08:00
Vincil Lau
de31fb1e51
fix typo in raft/raft_test.go ( #314 )
2021-11-19 13:38:42 +08:00
dengtianhei
d6bc38004a
Update rawnode.go ( #301 )
...
fix typo.
2021-11-10 17:27:06 +08:00
unconsolable
556518011f
raft: keep leader term consistent with log entries ( #299 )
...
* raft: keep leader term consistent with log entries
Signed-off-by: unconsolable <chenzhipeng2012@gmail.com>
* Set leader's term to be greater than/equal to follower
Co-authored-by: NingLin-P <linning@pingcap.com>
Co-authored-by: NingLin-P <linning@pingcap.com>
2021-11-02 16:40:18 +08:00
Isaac
cb5fba6ea7
put two test in 2AB ( #294 )
2021-09-21 14:16:14 +08:00
ZhaolongLi
802b1880d5
fix redundant output ( #290 )
...
Co-authored-by: NingLin-P <linningde25@gmail.com>
2021-09-13 15:09:25 +08:00
WangGuiPing
2f43d2901c
fix: use newMemoryStorageWithEnts ( #258 )
2021-05-10 13:40:45 +08:00
Trafalgar Ricardo Lu
3dcc4f1ede
Add test for project2ab ( #249 )
...
* add note for test function acceptAndReply()
* add test for project2ab
Co-authored-by: NingLin-P <linningde25@gmail.com>
2021-02-03 19:25:55 +08:00
Rapiz
04065cadd6
Fix invalid term in 3a ( #246 )
...
Co-authored-by: NingLin-P <linningde25@gmail.com>
2021-02-02 11:49:46 +08:00
Rapiz
2f698ab6e3
Fix TestRecvMessageType_MsgRequestVote2AA ( #245 )
...
Provide with valid peers so that responses will not be ignored.
2021-02-01 13:19:08 +08:00
Rapiz
eb173f0df1
Add a helper function ( #242 )
...
Add newMemoryStorageWithEnts to provide valid MemoryStorage
2021-01-29 10:29:52 +08:00
Yixiao Chen
2f4bc66416
modified the description in TestRestoreIgnoreSnapshot2C ( #236 )
2021-01-21 20:45:38 +08:00
Rapiz
5dcdd7bfcb
Fix typos ( #233 )
2021-01-18 13:35:03 +08:00
Trafalgar Ricardo Lu
4b02c82dac
add note for test function acceptAndReply() ( #230 )
...
Co-authored-by: NingLin-P <linningde25@gmail.com>
2021-01-07 02:47:53 +08:00
何卓然
d70b4d2560
Modify comments of electionElapsed
( #228 )
2020-12-30 11:46:42 +08:00
NingLin-P
2cf41a8144
fix overflow ( #213 )
...
Signed-off-by: linning <linningde25@gmail.com>
2020-07-29 12:57:40 +08:00
Connor1996
284b736572
tiny change for softstate comment
...
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
2020-07-22 11:01:27 +08:00
sunznx
2792ccd03e
fix typo ( #211 )
2020-07-20 14:24:51 +08:00
Lin ZiHao
109bf90f4d
TestHandleHeartbeat2AA
add test case (#193 )
...
* TestHeartbeatUpdateCommit2AB
Co-authored-by: NingLin-P <linning@pingcap.com>
2020-06-11 11:48:19 +08:00
Lin ZiHao
e01d729bd4
fix #171 let newRaft take care of peers and Prs ( #172 )
...
* let newRaft take care of peers and Prs
2020-05-14 13:24:12 +08:00
xiongjiwei
edb12af93f
fix confusing test data ( #168 )
...
* change confusing test data
* fix word spell
2020-05-11 17:19:26 +08:00
Lin ZiHao
189b95819b
update raft_test TestLeaderElection2AA ( #159 )
...
* update raft_test TestLeaderElection2AA
change expected state to StateCandidate. since implementation of prevote is not required
2020-05-07 14:47:10 +08:00
Lin ZiHao
4adae7912e
update raft/log.go, fix type ( #157 )
2020-05-04 22:12:30 +08:00
Connor
1df74d600c
add log level
...
Signed-off-by: Connor <zbk602423539@gmail.com>
2020-04-30 15:31:26 +08:00
Connor1996
d06e805544
add missing term
...
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
2020-04-30 15:31:26 +08:00
Rich
a674bd7ab1
Add back the noop entry hint for "becomeLeader" ( #148 )
...
from master to course branch
the noop entry is important hint for implementation, else learner will feel confused when test fail.
2020-04-30 15:31:26 +08:00
Connor
bda9f18a70
add comment for stabled
...
Signed-off-by: Connor <zbk602423539@gmail.com>
2020-04-30 15:31:26 +08:00
Connor
b5316ae4d5
change some comments
...
Signed-off-by: Connor <zbk602423539@gmail.com>
2020-04-30 15:31:26 +08:00
Connor
fbd1ef4cf5
adjust some comments
...
Signed-off-by: Connor <zbk602423539@gmail.com>
2020-04-30 15:31:26 +08:00
Connor
5e089a2cd1
init course framework
...
Signed-off-by: Connor <zbk602423539@gmail.com>
Co-authored-by: Nick Cameron <nrc@ncameron.org>
Co-authored-by: linning <linningde25@gmail.com>
Co-authored-by: YangKeao <keao.yang@yahoo.com>
Co-authored-by: andylokandy <andylokandy@hotmail.com>
Co-authored-by: Iosmanthus Teng <myosmanthustree@gmail.com>
2020-04-30 15:25:07 +08:00