Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UT]raft_case_test #1483

Closed
Shylock-Hg opened this issue Dec 20, 2019 · 1 comment
Closed

[UT]raft_case_test #1483

Shylock-Hg opened this issue Dec 20, 2019 · 1 comment

Comments

@Shylock-Hg
Copy link
Contributor

Shylock-Hg commented Dec 20, 2019

Describe the bug (must be provided)

[ RUN      ] ThreeRaftTest.Persistance
I1220 10:27:44.070255 16455 RaftexService.cpp:65] Init thrift server for raft service.
I1220 10:27:44.070405 36622 RaftexService.cpp:99] Starting the Raftex Service
I1220 10:27:44.089383 36622 RaftexService.cpp:87] Starting the Raftex Service on 38465
I1220 10:27:44.089426 36622 RaftexService.cpp:111] Start the Raftex Service successfully
I1220 10:27:44.089517 16455 RaftexService.cpp:65] Init thrift server for raft service.
I1220 10:27:44.089759 36712 RaftexService.cpp:99] Starting the Raftex Service
I1220 10:27:44.108196 36712 RaftexService.cpp:87] Starting the Raftex Service on 42047
I1220 10:27:44.108217 36712 RaftexService.cpp:111] Start the Raftex Service successfully
I1220 10:27:44.108271 16455 RaftexService.cpp:65] Init thrift server for raft service.
I1220 10:27:44.108398 36802 RaftexService.cpp:99] Starting the Raftex Service
I1220 10:27:44.125790 36802 RaftexService.cpp:87] Starting the Raftex Service on 40737
I1220 10:27:44.125818 36802 RaftexService.cpp:111] Start the Raftex Service successfully
I1220 10:27:44.126114 16455 RaftPart.cpp:275] [Port: 38465, Space: 1, Part: 1] There are 2 peer hosts, and total 3 copies. The quorum is 2, as learner 0
I1220 10:27:44.126144 16455 RaftPart.cpp:294] [Port: 38465, Space: 1, Part: 1] Add peer [127.0.0.1:42047]
I1220 10:27:44.126173 16455 RaftPart.cpp:294] [Port: 38465, Space: 1, Part: 1] Add peer [127.0.0.1:40737]
I1220 10:27:44.126283 16455 RaftPart.cpp:275] [Port: 42047, Space: 1, Part: 1] There are 2 peer hosts, and total 3 copies. The quorum is 2, as learner 0
I1220 10:27:44.126302 16455 RaftPart.cpp:294] [Port: 42047, Space: 1, Part: 1] Add peer [127.0.0.1:38465]
I1220 10:27:44.126322 16455 RaftPart.cpp:294] [Port: 42047, Space: 1, Part: 1] Add peer [127.0.0.1:40737]
I1220 10:27:44.126435 16455 RaftPart.cpp:275] [Port: 40737, Space: 1, Part: 1] There are 2 peer hosts, and total 3 copies. The quorum is 2, as learner 0
I1220 10:27:44.126457 16455 RaftPart.cpp:294] [Port: 40737, Space: 1, Part: 1] Add peer [127.0.0.1:38465]
I1220 10:27:44.126477 16455 RaftPart.cpp:294] [Port: 40737, Space: 1, Part: 1] Add peer [127.0.0.1:42047]
I1220 10:27:44.472874 36619 RaftPart.cpp:961] [Port: 42047, Space: 1, Part: 1] Start leader election, reason: lastMsgDur 347, term 0
I1220 10:27:44.472959 36619 RaftPart.cpp:1052] [Port: 42047, Space: 1, Part: 1] Sending out an election request (space = 1, part = 1, term = 1, lastLogId = 0, lastLogTerm = 0, candidateIP = 127.0.0.1, candidatePort = 42047)
I1220 10:27:44.474890 36876 RaftPart.cpp:1215] [Port: 40737, Space: 1, Part: 1] Recieved a VOTING request: space = 1, partition = 1, candidateAddr = 127.0.0.1:42047, term = 1, lastLogId = 0, lastLogTerm = 0
I1220 10:27:44.474891 36668 RaftPart.cpp:1215] [Port: 38465, Space: 1, Part: 1] Recieved a VOTING request: space = 1, partition = 1, candidateAddr = 127.0.0.1:42047, term = 1, lastLogId = 0, lastLogTerm = 0
I1220 10:27:44.474944 36876 RaftPart.cpp:1235] [Port: 40737, Space: 1, Part: 1] The partition currently is a Follower
I1220 10:27:44.474968 36668 RaftPart.cpp:1235] [Port: 38465, Space: 1, Part: 1] The partition currently is a Follower
I1220 10:27:44.474984 36876 RaftPart.cpp:1290] [Port: 40737, Space: 1, Part: 1] The partition will vote for the candidate
I1220 10:27:44.474992 36668 RaftPart.cpp:1290] [Port: 38465, Space: 1, Part: 1] The partition will vote for the candidate
I1220 10:27:44.474997 36876 RaftPart.cpp:1319] [Port: 40737, Space: 1, Part: 1] I was Follower, discover the new leader [127.0.0.1:42047]
I1220 10:27:44.475003 36668 RaftPart.cpp:1319] [Port: 38465, Space: 1, Part: 1] I was Follower, discover the new leader [127.0.0.1:42047]
I1220 10:27:44.475441 36619 RaftPart.cpp:1030] [Port: 42047, Space: 1, Part: 1] Partition is elected as the new leader for term 1
I1220 10:27:44.475462 36619 RaftPart.cpp:1112] [Port: 42047, Space: 1, Part: 1] The partition is elected as the leader
I1220 10:27:44.475860 36762 Host.cpp:144] [Port: 42047, Space: 1, Part: 1] [Host: 127.0.0.1:38465] This is the first time to send the logs to this host
I1220 10:27:44.475884 36619 RaftexTestBase.cpp:53] [Port: 42047, Space: 1, Part: 1] I'm elected as the leader for the term 1
I1220 10:27:44.476531 36762 Host.cpp:144] [Port: 42047, Space: 1, Part: 1] [Host: 127.0.0.1:40737] This is the first time to send the logs to this host
I1220 10:27:44.526059 16455 RaftCase.cpp:147] =====> Start persistance test
I1220 10:27:44.526093 16455 RaftCase.cpp:149] =====> Now let's kill random copy
I1220 10:27:44.526103 16455 RaftexTestBase.cpp:283] =====> Start appending logs from index 0 to 0
I1220 10:27:44.527936 16455 RaftexTestBase.cpp:292] <===== Finish appending logs from index 0 to 0
I1220 10:27:44.527978 16455 Host.cpp:47] [Port: 42047, Space: 1, Part: 1] [Host: 127.0.0.1:38465] The host has been stopped!
I1220 10:27:44.527997 16455 Host.cpp:47] [Port: 42047, Space: 1, Part: 1] [Host: 127.0.0.1:40737] The host has been stopped!
I1220 10:27:44.528012 16455 Host.h:32] [Port: 42047, Space: 1, Part: 1] [Host: 127.0.0.1:38465]  The host has been destroyed!
I1220 10:27:44.528033 16455 Host.h:32] [Port: 42047, Space: 1, Part: 1] [Host: 127.0.0.1:40737]  The host has been destroyed!
I1220 10:27:44.528051 16455 RaftPart.cpp:338] [Port: 42047, Space: 1, Part: 1] Partition has been stopped
I1220 10:27:44.528075 16455 RaftPart.cpp:338] [Port: 42047, Space: 1, Part: 1] Partition has been stopped
I1220 10:27:44.528090 16455 RaftexTestBase.cpp:328] copies 1 stop
I1220 10:27:44.528115 16455 RaftPart.cpp:275] [Port: 42047, Space: 1, Part: 1] There are 2 peer hosts, and total 3 copies. The quorum is 2, as learner 0
I1220 10:27:44.528126 16455 RaftPart.cpp:294] [Port: 42047, Space: 1, Part: 1] Add peer [127.0.0.1:38465]
I1220 10:27:44.528149 16455 RaftPart.cpp:294] [Port: 42047, Space: 1, Part: 1] Add peer [127.0.0.1:40737]
I1220 10:27:44.528190 16455 RaftexTestBase.cpp:337] copies 1 reboot
I1220 10:27:45.142928 36619 RaftPart.cpp:961] [Port: 42047, Space: 1, Part: 1] Start leader election, reason: lastMsgDur 1017, term 1
I1220 10:27:45.142983 36619 RaftPart.cpp:1052] [Port: 42047, Space: 1, Part: 1] Sending out an election request (space = 1, part = 1, term = 2, lastLogId = 2, lastLogTerm = 1, candidateIP = 127.0.0.1, candidatePort = 42047)
I1220 10:27:45.144006 36876 RaftPart.cpp:1215] [Port: 40737, Space: 1, Part: 1] Recieved a VOTING request: space = 1, partition = 1, candidateAddr = 127.0.0.1:42047, term = 2, lastLogId = 2, lastLogTerm = 1
I1220 10:27:45.144037 36668 RaftPart.cpp:1215] [Port: 38465, Space: 1, Part: 1] Recieved a VOTING request: space = 1, partition = 1, candidateAddr = 127.0.0.1:42047, term = 2, lastLogId = 2, lastLogTerm = 1
I1220 10:27:45.144038 36876 RaftPart.cpp:1235] [Port: 40737, Space: 1, Part: 1] The partition currently is a Follower
I1220 10:27:45.144074 36668 RaftPart.cpp:1235] [Port: 38465, Space: 1, Part: 1] The partition currently is a Follower
I1220 10:27:45.144085 36876 RaftPart.cpp:1290] [Port: 40737, Space: 1, Part: 1] The partition will vote for the candidate
I1220 10:27:45.144086 36668 RaftPart.cpp:1290] [Port: 38465, Space: 1, Part: 1] The partition will vote for the candidate
I1220 10:27:45.144095 36876 RaftPart.cpp:1319] [Port: 40737, Space: 1, Part: 1] I was Follower, discover the new leader [127.0.0.1:42047]
I1220 10:27:45.144109 36668 RaftPart.cpp:1319] [Port: 38465, Space: 1, Part: 1] I was Follower, discover the new leader [127.0.0.1:42047]
I1220 10:27:45.144304 36619 RaftPart.cpp:1030] [Port: 42047, Space: 1, Part: 1] Partition is elected as the new leader for term 2
I1220 10:27:45.144315 36619 RaftPart.cpp:1112] [Port: 42047, Space: 1, Part: 1] The partition is elected as the leader
I1220 10:27:45.144371 36621 RaftexTestBase.cpp:53] [Port: 42047, Space: 1, Part: 1] I'm elected as the leader for the term 2
I1220 10:27:45.144457 36765 Host.cpp:144] [Port: 42047, Space: 1, Part: 1] [Host: 127.0.0.1:38465] This is the first time to send the logs to this host
I1220 10:27:45.144811 36765 Host.cpp:144] [Port: 42047, Space: 1, Part: 1] [Host: 127.0.0.1:40737] This is the first time to send the logs to this host
I1220 10:27:45.528291 16455 RaftexTestBase.cpp:283] =====> Start appending logs from index 1 to 1
I1220 10:27:45.529314 16455 RaftexTestBase.cpp:292] <===== Finish appending logs from index 1 to 1
I1220 10:27:45.529337 16455 Host.cpp:47] [Port: 38465, Space: 1, Part: 1] [Host: 127.0.0.1:42047] The host has been stopped!
I1220 10:27:45.529343 16455 Host.cpp:47] [Port: 38465, Space: 1, Part: 1] [Host: 127.0.0.1:40737] The host has been stopped!
I1220 10:27:45.529350 16455 Host.h:32] [Port: 38465, Space: 1, Part: 1] [Host: 127.0.0.1:42047]  The host has been destroyed!
I1220 10:27:45.529377 16455 Host.h:32] [Port: 38465, Space: 1, Part: 1] [Host: 127.0.0.1:40737]  The host has been destroyed!
I1220 10:27:45.529384 16455 RaftPart.cpp:338] [Port: 38465, Space: 1, Part: 1] Partition has been stopped
I1220 10:27:45.529394 16455 RaftPart.cpp:338] [Port: 38465, Space: 1, Part: 1] Partition has been stopped
I1220 10:27:45.529400 16455 RaftexTestBase.cpp:328] copies 0 stop
I1220 10:27:45.529417 16455 RaftPart.cpp:275] [Port: 38465, Space: 1, Part: 1] There are 2 peer hosts, and total 3 copies. The quorum is 2, as learner 0
I1220 10:27:45.529423 16455 RaftPart.cpp:294] [Port: 38465, Space: 1, Part: 1] Add peer [127.0.0.1:42047]
I1220 10:27:45.529436 16455 RaftPart.cpp:294] [Port: 38465, Space: 1, Part: 1] Add peer [127.0.0.1:40737]
I1220 10:27:45.529464 16455 RaftexTestBase.cpp:337] copies 0 reboot
I1220 10:27:45.529471 16455 RaftexTestBase.cpp:283] =====> Start appending logs from index 2 to 2
I1220 10:27:45.530123 36668 RaftPart.cpp:1570] [Port: 38465, Space: 1, Part: 1] The current role is Follower. Will follow the new leader 127.0.0.1:42047 [Term: 2]
I1220 10:27:45.530369 16455 RaftexTestBase.cpp:292] <===== Finish appending logs from index 2 to 2
I1220 10:27:45.530386 16455 Host.cpp:47] [Port: 40737, Space: 1, Part: 1] [Host: 127.0.0.1:38465] The host has been stopped!
I1220 10:27:45.530391 16455 Host.cpp:47] [Port: 40737, Space: 1, Part: 1] [Host: 127.0.0.1:42047] The host has been stopped!
I1220 10:27:45.530396 16455 Host.h:32] [Port: 40737, Space: 1, Part: 1] [Host: 127.0.0.1:38465]  The host has been destroyed!
I1220 10:27:45.530402 16455 Host.h:32] [Port: 40737, Space: 1, Part: 1] [Host: 127.0.0.1:42047]  The host has been destroyed!
I1220 10:27:45.530408 16455 RaftPart.cpp:338] [Port: 40737, Space: 1, Part: 1] Partition has been stopped
I1220 10:27:45.530416 16455 RaftPart.cpp:338] [Port: 40737, Space: 1, Part: 1] Partition has been stopped
I1220 10:27:45.530421 16455 RaftexTestBase.cpp:328] copies 2 stop
I1220 10:27:45.530431 16455 RaftPart.cpp:275] [Port: 40737, Space: 1, Part: 1] There are 2 peer hosts, and total 3 copies. The quorum is 2, as learner 0
I1220 10:27:45.530437 16455 RaftPart.cpp:294] [Port: 40737, Space: 1, Part: 1] Add peer [127.0.0.1:38465]
I1220 10:27:45.530448 16455 RaftPart.cpp:294] [Port: 40737, Space: 1, Part: 1] Add peer [127.0.0.1:42047]
I1220 10:27:45.530469 16455 RaftexTestBase.cpp:337] copies 2 reboot
I1220 10:27:45.530475 16455 RaftexTestBase.cpp:283] =====> Start appending logs from index 3 to 3
I1220 10:27:45.531215 36876 RaftPart.cpp:1570] [Port: 40737, Space: 1, Part: 1] The current role is Follower. Will follow the new leader 127.0.0.1:42047 [Term: 2]
I1220 10:27:45.531380 16455 RaftexTestBase.cpp:292] <===== Finish appending logs from index 3 to 3
I1220 10:27:45.531400 16455 Host.cpp:47] [Port: 38465, Space: 1, Part: 1] [Host: 127.0.0.1:42047] The host has been stopped!
I1220 10:27:45.531406 16455 Host.cpp:47] [Port: 38465, Space: 1, Part: 1] [Host: 127.0.0.1:40737] The host has been stopped!
I1220 10:27:45.531412 16455 Host.h:32] [Port: 38465, Space: 1, Part: 1] [Host: 127.0.0.1:42047]  The host has been destroyed!
I1220 10:27:45.531419 16455 Host.h:32] [Port: 38465, Space: 1, Part: 1] [Host: 127.0.0.1:40737]  The host has been destroyed!
I1220 10:27:45.531424 16455 RaftPart.cpp:338] [Port: 38465, Space: 1, Part: 1] Partition has been stopped
I1220 10:27:45.531430 16455 RaftPart.cpp:338] [Port: 38465, Space: 1, Part: 1] Partition has been stopped
I1220 10:27:45.531436 16455 RaftexTestBase.cpp:328] copies 0 stop
I1220 10:27:45.531446 16455 RaftPart.cpp:275] [Port: 38465, Space: 1, Part: 1] There are 2 peer hosts, and total 3 copies. The quorum is 2, as learner 0
I1220 10:27:45.531455 16455 RaftPart.cpp:294] [Port: 38465, Space: 1, Part: 1] Add peer [127.0.0.1:42047]
I1220 10:27:45.531466 16455 RaftPart.cpp:294] [Port: 38465, Space: 1, Part: 1] Add peer [127.0.0.1:40737]
I1220 10:27:45.531486 16455 RaftexTestBase.cpp:337] copies 0 reboot
I1220 10:27:45.531494 16455 RaftexTestBase.cpp:283] =====> Start appending logs from index 4 to 4
I1220 10:27:45.532240 36668 RaftPart.cpp:1570] [Port: 38465, Space: 1, Part: 1] The current role is Follower. Will follow the new leader 127.0.0.1:42047 [Term: 2]
I1220 10:27:45.532518 16455 RaftexTestBase.cpp:292] <===== Finish appending logs from index 4 to 4
I1220 10:27:45.532538 16455 Host.cpp:47] [Port: 40737, Space: 1, Part: 1] [Host: 127.0.0.1:38465] The host has been stopped!
I1220 10:27:45.532543 16455 Host.cpp:47] [Port: 40737, Space: 1, Part: 1] [Host: 127.0.0.1:42047] The host has been stopped!
I1220 10:27:45.532548 16455 Host.h:32] [Port: 40737, Space: 1, Part: 1] [Host: 127.0.0.1:38465]  The host has been destroyed!
I1220 10:27:45.532554 16455 Host.h:32] [Port: 40737, Space: 1, Part: 1] [Host: 127.0.0.1:42047]  The host has been destroyed!
I1220 10:27:45.532559 16455 RaftPart.cpp:338] [Port: 40737, Space: 1, Part: 1] Partition has been stopped
I1220 10:27:45.532567 16455 RaftPart.cpp:338] [Port: 40737, Space: 1, Part: 1] Partition has been stopped
I1220 10:27:45.532572 16455 RaftexTestBase.cpp:328] copies 2 stop
I1220 10:27:45.532582 16455 RaftPart.cpp:275] [Port: 40737, Space: 1, Part: 1] There are 2 peer hosts, and total 3 copies. The quorum is 2, as learner 0
I1220 10:27:45.532588 16455 RaftPart.cpp:294] [Port: 40737, Space: 1, Part: 1] Add peer [127.0.0.1:38465]
I1220 10:27:45.532599 16455 RaftPart.cpp:294] [Port: 40737, Space: 1, Part: 1] Add peer [127.0.0.1:42047]
I1220 10:27:45.532624 16455 RaftexTestBase.cpp:337] copies 2 reboot
I1220 10:27:45.532629 16455 RaftexTestBase.cpp:283] =====> Start appending logs from index 5 to 5
I1220 10:27:45.533424 36876 RaftPart.cpp:1570] [Port: 40737, Space: 1, Part: 1] The current role is Follower. Will follow the new leader 127.0.0.1:42047 [Term: 2]
I1220 10:27:45.533643 16455 RaftexTestBase.cpp:292] <===== Finish appending logs from index 5 to 5
I1220 10:27:45.534409 16455 Host.cpp:47] [Port: 42047, Space: 1, Part: 1] [Host: 127.0.0.1:38465] The host has been stopped!
I1220 10:27:45.534425 16455 Host.cpp:47] [Port: 42047, Space: 1, Part: 1] [Host: 127.0.0.1:40737] The host has been stopped!
I1220 10:27:45.534430 16455 RaftPart.cpp:338] [Port: 42047, Space: 1, Part: 1] Partition has been stopped
I1220 10:27:45.534438 16455 RaftPart.cpp:338] [Port: 42047, Space: 1, Part: 1] Partition has been stopped
W1220 10:27:45.534443 36758 RaftPart.cpp:934] [Port: 42047, Space: 1, Part: 1] Only 0 hosts succeeded, Need to try again
I1220 10:27:45.534443 16455 RaftexTestBase.cpp:328] copies 1 stop
E1220 10:27:45.534471 36758 RaftPart.cpp:753] [Port: 42047, Space: 1, Part: 1] Replicate logs failed
I1220 10:27:45.534477 16455 RaftPart.cpp:275] [Port: 42047, Space: 1, Part: 1] There are 2 peer hosts, and total 3 copies. The quorum is 2, as learner 0
I1220 10:27:45.534489 36758 Host.h:32] [Port: 42047, Space: 1, Part: 1] [Host: 127.0.0.1:38465]  The host has been destroyed!
I1220 10:27:45.534497 36758 Host.h:32] [Port: 42047, Space: 1, Part: 1] [Host: 127.0.0.1:40737]  The host has been destroyed!
I1220 10:27:45.534493 16455 RaftPart.cpp:294] [Port: 42047, Space: 1, Part: 1] Add peer [127.0.0.1:38465]
I1220 10:27:45.534514 16455 RaftPart.cpp:294] [Port: 42047, Space: 1, Part: 1] Add peer [127.0.0.1:40737]
I1220 10:27:45.534535 16455 RaftexTestBase.cpp:337] copies 1 reboot
I1220 10:27:45.811195 36618 RaftPart.cpp:961] [Port: 42047, Space: 1, Part: 1] Start leader election, reason: lastMsgDur 1685, term 2
I1220 10:27:45.811257 36618 RaftPart.cpp:1052] [Port: 42047, Space: 1, Part: 1] Sending out an election request (space = 1, part = 1, term = 3, lastLogId = 10, lastLogTerm = 2, candidateIP = 127.0.0.1, candidatePort = 42047)
I1220 10:27:45.813020 36668 RaftPart.cpp:1215] [Port: 38465, Space: 1, Part: 1] Recieved a VOTING request: space = 1, partition = 1, candidateAddr = 127.0.0.1:42047, term = 3, lastLogId = 10, lastLogTerm = 2
I1220 10:27:45.813025 36876 RaftPart.cpp:1215] [Port: 40737, Space: 1, Part: 1] Recieved a VOTING request: space = 1, partition = 1, candidateAddr = 127.0.0.1:42047, term = 3, lastLogId = 10, lastLogTerm = 2
I1220 10:27:45.813077 36668 RaftPart.cpp:1235] [Port: 38465, Space: 1, Part: 1] The partition currently is a Follower
I1220 10:27:45.813124 36876 RaftPart.cpp:1235] [Port: 40737, Space: 1, Part: 1] The partition currently is a Follower
I1220 10:27:45.813138 36668 RaftPart.cpp:1270] [Port: 38465, Space: 1, Part: 1] The partition's last log id is 11. The candidate's last log id is smaller, so it will be rejected
I1220 10:27:45.813150 36876 RaftPart.cpp:1290] [Port: 40737, Space: 1, Part: 1] The partition will vote for the candidate
I1220 10:27:45.813164 36876 RaftPart.cpp:1319] [Port: 40737, Space: 1, Part: 1] I was Follower, discover the new leader [127.0.0.1:42047]
I1220 10:27:45.813560 36774 RaftPart.cpp:1087] [Port: 42047, Space: 1, Part: 1] My last log id is less than [127.0.0.1:38465], double my election interval.
I1220 10:27:45.813766 36618 RaftPart.cpp:1030] [Port: 42047, Space: 1, Part: 1] Partition is elected as the new leader for term 3
I1220 10:27:45.813807 36618 RaftPart.cpp:1112] [Port: 42047, Space: 1, Part: 1] The partition is elected as the leader
E1220 10:27:45.813869 36618 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:45.813910 36618 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:45.813930 36618 RaftPart.cpp:691] [Port: 42047, Space: 1, Part: 1] Failed to write into WAL
E1220 10:27:45.813956 36618 RaftPart.cpp:705] [Port: 42047, Space: 1, Part: 1] Failed append logs
I1220 10:27:45.814046 36618 RaftexTestBase.cpp:53] [Port: 42047, Space: 1, Part: 1] I'm elected as the leader for the term 3
E1220 10:27:45.867175 36619 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:45.867259 36619 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:45.867282 36619 RaftPart.cpp:691] [Port: 42047, Space: 1, Part: 1] Failed to write into WAL
E1220 10:27:45.867307 36619 RaftPart.cpp:705] [Port: 42047, Space: 1, Part: 1] Failed append logs
E1220 10:27:45.917683 36620 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:45.917742 36620 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:45.917762 36620 RaftPart.cpp:691] [Port: 42047, Space: 1, Part: 1] Failed to write into WAL
E1220 10:27:45.917788 36620 RaftPart.cpp:705] [Port: 42047, Space: 1, Part: 1] Failed append logs
E1220 10:27:46.147472 36619 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:46.147539 36619 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:46.147559 36619 RaftPart.cpp:691] [Port: 42047, Space: 1, Part: 1] Failed to write into WAL
E1220 10:27:46.147583 36619 RaftPart.cpp:705] [Port: 42047, Space: 1, Part: 1] Failed append logs
E1220 10:27:46.200493 36621 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:46.200534 36621 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:46.200543 36621 RaftPart.cpp:691] [Port: 42047, Space: 1, Part: 1] Failed to write into WAL
E1220 10:27:46.200556 36621 RaftPart.cpp:705] [Port: 42047, Space: 1, Part: 1] Failed append logs
E1220 10:27:46.250924 36619 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:46.250963 36619 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:46.250972 36619 RaftPart.cpp:691] [Port: 42047, Space: 1, Part: 1] Failed to write into WAL
E1220 10:27:46.250983 36619 RaftPart.cpp:705] [Port: 42047, Space: 1, Part: 1] Failed append logs
E1220 10:27:46.481019 36619 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:46.481102 36619 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:46.481122 36619 RaftPart.cpp:691] [Port: 42047, Space: 1, Part: 1] Failed to write into WAL
E1220 10:27:46.481150 36619 RaftPart.cpp:705] [Port: 42047, Space: 1, Part: 1] Failed append logs
E1220 10:27:46.533640 36621 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:46.533694 36621 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:46.533730 36621 RaftPart.cpp:691] [Port: 42047, Space: 1, Part: 1] Failed to write into WAL
E1220 10:27:46.533754 36621 RaftPart.cpp:705] [Port: 42047, Space: 1, Part: 1] Failed append logs
I1220 10:27:46.534680 16455 RaftexTestBase.cpp:283] =====> Start appending logs from index 6 to 6
E1220 10:27:46.534783 16455 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:46.534819 16455 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:46.534842 16455 RaftPart.cpp:691] [Port: 42047, Space: 1, Part: 1] Failed to write into WAL
E1220 10:27:46.534871 16455 RaftPart.cpp:705] [Port: 42047, Space: 1, Part: 1] Failed append logs
I1220 10:27:46.534898 16455 RaftexTestBase.cpp:292] <===== Finish appending logs from index 6 to 6
I1220 10:27:46.534924 16455 Host.cpp:47] [Port: 42047, Space: 1, Part: 1] [Host: 127.0.0.1:38465] The host has been stopped!
I1220 10:27:46.534938 16455 Host.cpp:47] [Port: 42047, Space: 1, Part: 1] [Host: 127.0.0.1:40737] The host has been stopped!
I1220 10:27:46.534952 16455 Host.h:32] [Port: 42047, Space: 1, Part: 1] [Host: 127.0.0.1:38465]  The host has been destroyed!
I1220 10:27:46.534971 16455 Host.h:32] [Port: 42047, Space: 1, Part: 1] [Host: 127.0.0.1:40737]  The host has been destroyed!
I1220 10:27:46.534986 16455 RaftPart.cpp:338] [Port: 42047, Space: 1, Part: 1] Partition has been stopped
I1220 10:27:46.535012 16455 RaftPart.cpp:338] [Port: 42047, Space: 1, Part: 1] Partition has been stopped
I1220 10:27:46.535027 16455 RaftexTestBase.cpp:328] copies 1 stop
I1220 10:27:46.535061 16455 RaftPart.cpp:275] [Port: 42047, Space: 1, Part: 1] There are 2 peer hosts, and total 3 copies. The quorum is 2, as learner 0
I1220 10:27:46.535076 16455 RaftPart.cpp:294] [Port: 42047, Space: 1, Part: 1] Add peer [127.0.0.1:38465]
I1220 10:27:46.535109 16455 RaftPart.cpp:294] [Port: 42047, Space: 1, Part: 1] Add peer [127.0.0.1:40737]
I1220 10:27:46.535161 16455 RaftexTestBase.cpp:337] copies 1 reboot
I1220 10:27:46.544991 36618 RaftPart.cpp:961] [Port: 38465, Space: 1, Part: 1] Start leader election, reason: lastMsgDur 1011, term 2
I1220 10:27:46.545044 36618 RaftPart.cpp:1052] [Port: 38465, Space: 1, Part: 1] Sending out an election request (space = 1, part = 1, term = 3, lastLogId = 11, lastLogTerm = 2, candidateIP = 127.0.0.1, candidatePort = 38465)
I1220 10:27:46.546869 36758 RaftPart.cpp:1215] [Port: 42047, Space: 1, Part: 1] Recieved a VOTING request: space = 1, partition = 1, candidateAddr = 127.0.0.1:38465, term = 3, lastLogId = 11, lastLogTerm = 2
I1220 10:27:46.546923 36758 RaftPart.cpp:1235] [Port: 42047, Space: 1, Part: 1] The partition currently is a Follower
I1220 10:27:46.546936 36758 RaftPart.cpp:1245] [Port: 42047, Space: 1, Part: 1] The partition currently is on term 3. The term proposed by the candidate is no greater, so it will be rejected
I1220 10:27:46.546979 36876 RaftPart.cpp:1215] [Port: 40737, Space: 1, Part: 1] Recieved a VOTING request: space = 1, partition = 1, candidateAddr = 127.0.0.1:38465, term = 3, lastLogId = 11, lastLogTerm = 2
I1220 10:27:46.547026 36876 RaftPart.cpp:1235] [Port: 40737, Space: 1, Part: 1] The partition currently is a Follower
I1220 10:27:46.547062 36876 RaftPart.cpp:1245] [Port: 40737, Space: 1, Part: 1] The partition currently is on term 3. The term proposed by the candidate is no greater, so it will be rejected
I1220 10:27:46.547346 36618 RaftPart.cpp:1135] [Port: 38465, Space: 1, Part: 1] No one is elected, continue the election
I1220 10:27:46.566344 36619 RaftPart.cpp:1052] [Port: 38465, Space: 1, Part: 1] Sending out an election request (space = 1, part = 1, term = 4, lastLogId = 11, lastLogTerm = 2, candidateIP = 127.0.0.1, candidatePort = 38465)
I1220 10:27:46.567019 36758 RaftPart.cpp:1215] [Port: 42047, Space: 1, Part: 1] Recieved a VOTING request: space = 1, partition = 1, candidateAddr = 127.0.0.1:38465, term = 4, lastLogId = 11, lastLogTerm = 2
I1220 10:27:46.567036 36758 RaftPart.cpp:1235] [Port: 42047, Space: 1, Part: 1] The partition currently is a Follower
I1220 10:27:46.567047 36758 RaftPart.cpp:1290] [Port: 42047, Space: 1, Part: 1] The partition will vote for the candidate
I1220 10:27:46.567054 36758 RaftPart.cpp:1319] [Port: 42047, Space: 1, Part: 1] I was Follower, discover the new leader [127.0.0.1:38465]
I1220 10:27:46.567095 36876 RaftPart.cpp:1215] [Port: 40737, Space: 1, Part: 1] Recieved a VOTING request: space = 1, partition = 1, candidateAddr = 127.0.0.1:38465, term = 4, lastLogId = 11, lastLogTerm = 2
I1220 10:27:46.567111 36876 RaftPart.cpp:1235] [Port: 40737, Space: 1, Part: 1] The partition currently is a Follower
I1220 10:27:46.567119 36876 RaftPart.cpp:1290] [Port: 40737, Space: 1, Part: 1] The partition will vote for the candidate
I1220 10:27:46.567124 36876 RaftPart.cpp:1319] [Port: 40737, Space: 1, Part: 1] I was Follower, discover the new leader [127.0.0.1:38465]
I1220 10:27:46.567237 36619 RaftPart.cpp:1030] [Port: 38465, Space: 1, Part: 1] Partition is elected as the new leader for term 4
I1220 10:27:46.567276 36619 RaftPart.cpp:1112] [Port: 38465, Space: 1, Part: 1] The partition is elected as the leader
I1220 10:27:46.567378 36673 Host.cpp:144] [Port: 38465, Space: 1, Part: 1] [Host: 127.0.0.1:42047] This is the first time to send the logs to this host
I1220 10:27:46.567411 36619 RaftexTestBase.cpp:53] [Port: 38465, Space: 1, Part: 1] I'm elected as the leader for the term 4
I1220 10:27:46.567628 36673 Host.cpp:144] [Port: 38465, Space: 1, Part: 1] [Host: 127.0.0.1:40737] This is the first time to send the logs to this host
I1220 10:27:46.568150 36758 RaftPart.cpp:1456] [Port: 42047, Space: 1, Part: 1] Local is missing logs from id 10. Need to catch up
I1220 10:27:46.568264 36876 RaftPart.cpp:1456] [Port: 40737, Space: 1, Part: 1] Local is missing logs from id 10. Need to catch up
E1220 10:27:46.568735 36758 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:46.568771 36758 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:46.568785 36758 RaftPart.cpp:1484] [Port: 42047, Space: 1, Part: 1] Failed to append logs to WAL
E1220 10:27:46.688652 36758 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:46.688704 36758 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:46.688724 36758 RaftPart.cpp:1484] [Port: 42047, Space: 1, Part: 1] Failed to append logs to WAL
E1220 10:27:46.902001 36758 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:46.902058 36758 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:46.902076 36758 RaftPart.cpp:1484] [Port: 42047, Space: 1, Part: 1] Failed to append logs to WAL
E1220 10:27:47.021911 36758 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:47.021975 36758 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:47.022032 36758 RaftPart.cpp:1484] [Port: 42047, Space: 1, Part: 1] Failed to append logs to WAL
E1220 10:27:47.236498 36758 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:47.236523 36758 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:47.236532 36758 RaftPart.cpp:1484] [Port: 42047, Space: 1, Part: 1] Failed to append logs to WAL
E1220 10:27:47.355321 36758 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:47.355391 36758 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:47.355406 36758 RaftPart.cpp:1484] [Port: 42047, Space: 1, Part: 1] Failed to append logs to WAL
I1220 10:27:47.535307 16455 RaftexTestBase.cpp:283] =====> Start appending logs from index 7 to 7
E1220 10:27:47.536657 36758 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:47.536710 36758 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:47.536731 36758 RaftPart.cpp:1484] [Port: 42047, Space: 1, Part: 1] Failed to append logs to WAL
I1220 10:27:47.537154 16455 RaftexTestBase.cpp:292] <===== Finish appending logs from index 7 to 7
I1220 10:27:47.537192 16455 Host.cpp:47] [Port: 42047, Space: 1, Part: 1] [Host: 127.0.0.1:38465] The host has been stopped!
I1220 10:27:47.537204 16455 Host.cpp:47] [Port: 42047, Space: 1, Part: 1] [Host: 127.0.0.1:40737] The host has been stopped!
I1220 10:27:47.537214 16455 Host.h:32] [Port: 42047, Space: 1, Part: 1] [Host: 127.0.0.1:38465]  The host has been destroyed!
I1220 10:27:47.537226 16455 Host.h:32] [Port: 42047, Space: 1, Part: 1] [Host: 127.0.0.1:40737]  The host has been destroyed!
I1220 10:27:47.537236 16455 RaftPart.cpp:338] [Port: 42047, Space: 1, Part: 1] Partition has been stopped
I1220 10:27:47.537256 16455 RaftPart.cpp:338] [Port: 42047, Space: 1, Part: 1] Partition has been stopped
I1220 10:27:47.537266 16455 RaftexTestBase.cpp:328] copies 1 stop
I1220 10:27:47.537293 16455 RaftPart.cpp:275] [Port: 42047, Space: 1, Part: 1] There are 2 peer hosts, and total 3 copies. The quorum is 2, as learner 0
I1220 10:27:47.537307 16455 RaftPart.cpp:294] [Port: 42047, Space: 1, Part: 1] Add peer [127.0.0.1:38465]
I1220 10:27:47.537331 16455 RaftPart.cpp:294] [Port: 42047, Space: 1, Part: 1] Add peer [127.0.0.1:40737]
I1220 10:27:47.537389 16455 RaftexTestBase.cpp:337] copies 1 reboot
I1220 10:27:47.537405 16455 RaftexTestBase.cpp:283] =====> Start appending logs from index 8 to 8
I1220 10:27:47.538592 36758 RaftPart.cpp:1570] [Port: 42047, Space: 1, Part: 1] The current role is Follower. Will follow the new leader 127.0.0.1:38465 [Term: 4]
E1220 10:27:47.538650 36758 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:47.538674 36758 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:47.538695 36758 RaftPart.cpp:1484] [Port: 42047, Space: 1, Part: 1] Failed to append logs to WAL
I1220 10:27:47.539031 16455 RaftexTestBase.cpp:292] <===== Finish appending logs from index 8 to 8
I1220 10:27:47.539062 16455 Host.cpp:47] [Port: 40737, Space: 1, Part: 1] [Host: 127.0.0.1:38465] The host has been stopped!
I1220 10:27:47.539072 16455 Host.cpp:47] [Port: 40737, Space: 1, Part: 1] [Host: 127.0.0.1:42047] The host has been stopped!
I1220 10:27:47.539080 16455 Host.h:32] [Port: 40737, Space: 1, Part: 1] [Host: 127.0.0.1:38465]  The host has been destroyed!
I1220 10:27:47.539093 16455 Host.h:32] [Port: 40737, Space: 1, Part: 1] [Host: 127.0.0.1:42047]  The host has been destroyed!
I1220 10:27:47.539101 16455 RaftPart.cpp:338] [Port: 40737, Space: 1, Part: 1] Partition has been stopped
I1220 10:27:47.539139 16455 RaftPart.cpp:338] [Port: 40737, Space: 1, Part: 1] Partition has been stopped
I1220 10:27:47.539147 16455 RaftexTestBase.cpp:328] copies 2 stop
I1220 10:27:47.539165 16455 RaftPart.cpp:275] [Port: 40737, Space: 1, Part: 1] There are 2 peer hosts, and total 3 copies. The quorum is 2, as learner 0
I1220 10:27:47.539181 16455 RaftPart.cpp:294] [Port: 40737, Space: 1, Part: 1] Add peer [127.0.0.1:38465]
I1220 10:27:47.539202 16455 RaftPart.cpp:294] [Port: 40737, Space: 1, Part: 1] Add peer [127.0.0.1:42047]
I1220 10:27:47.539238 16455 RaftexTestBase.cpp:337] copies 2 reboot
I1220 10:27:47.539250 16455 RaftexTestBase.cpp:283] =====> Start appending logs from index 9 to 9
E1220 10:27:47.540818 36758 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
I1220 10:27:47.540827 36876 RaftPart.cpp:1570] [Port: 40737, Space: 1, Part: 1] The current role is Follower. Will follow the new leader 127.0.0.1:38465 [Term: 4]
E1220 10:27:47.540879 36758 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:47.540938 36758 RaftPart.cpp:1484] [Port: 42047, Space: 1, Part: 1] Failed to append logs to WAL
I1220 10:27:47.541524 16455 RaftexTestBase.cpp:292] <===== Finish appending logs from index 9 to 9
I1220 10:27:47.541574 16455 Host.cpp:47] [Port: 40737, Space: 1, Part: 1] [Host: 127.0.0.1:38465] The host has been stopped!
I1220 10:27:47.541584 16455 Host.cpp:47] [Port: 40737, Space: 1, Part: 1] [Host: 127.0.0.1:42047] The host has been stopped!
I1220 10:27:47.541594 16455 Host.h:32] [Port: 40737, Space: 1, Part: 1] [Host: 127.0.0.1:38465]  The host has been destroyed!
I1220 10:27:47.541604 16455 Host.h:32] [Port: 40737, Space: 1, Part: 1] [Host: 127.0.0.1:42047]  The host has been destroyed!
I1220 10:27:47.541613 16455 RaftPart.cpp:338] [Port: 40737, Space: 1, Part: 1] Partition has been stopped
I1220 10:27:47.541627 16455 RaftPart.cpp:338] [Port: 40737, Space: 1, Part: 1] Partition has been stopped
I1220 10:27:47.541637 16455 RaftexTestBase.cpp:328] copies 2 stop
I1220 10:27:47.541656 16455 RaftPart.cpp:275] [Port: 40737, Space: 1, Part: 1] There are 2 peer hosts, and total 3 copies. The quorum is 2, as learner 0
I1220 10:27:47.541667 16455 RaftPart.cpp:294] [Port: 40737, Space: 1, Part: 1] Add peer [127.0.0.1:38465]
I1220 10:27:47.541689 16455 RaftPart.cpp:294] [Port: 40737, Space: 1, Part: 1] Add peer [127.0.0.1:42047]
I1220 10:27:47.541728 16455 RaftexTestBase.cpp:337] copies 2 reboot
I1220 10:27:47.569748 36876 RaftPart.cpp:1570] [Port: 40737, Space: 1, Part: 1] The current role is Follower. Will follow the new leader 127.0.0.1:38465 [Term: 4]
E1220 10:27:47.569772 36758 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:47.569820 36758 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:47.569840 36758 RaftPart.cpp:1484] [Port: 42047, Space: 1, Part: 1] Failed to append logs to WAL
E1220 10:27:47.596742 36758 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:47.596792 36758 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:47.596812 36758 RaftPart.cpp:1484] [Port: 42047, Space: 1, Part: 1] Failed to append logs to WAL
E1220 10:27:47.688570 36758 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:47.688637 36758 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:47.688661 36758 RaftPart.cpp:1484] [Port: 42047, Space: 1, Part: 1] Failed to append logs to WAL
E1220 10:27:47.901854 36758 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:47.901890 36758 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:47.901911 36758 RaftPart.cpp:1484] [Port: 42047, Space: 1, Part: 1] Failed to append logs to WAL
E1220 10:27:47.928499 36758 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:47.928524 36758 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:47.928534 36758 RaftPart.cpp:1484] [Port: 42047, Space: 1, Part: 1] Failed to append logs to WAL
E1220 10:27:48.022449 36758 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:48.022477 36758 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:48.022485 36758 RaftPart.cpp:1484] [Port: 42047, Space: 1, Part: 1] Failed to append logs to WAL
E1220 10:27:48.235378 36758 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:48.235437 36758 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:48.235460 36758 RaftPart.cpp:1484] [Port: 42047, Space: 1, Part: 1] Failed to append logs to WAL
E1220 10:27:48.262794 36758 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:48.262852 36758 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:48.262874 36758 RaftPart.cpp:1484] [Port: 42047, Space: 1, Part: 1] Failed to append logs to WAL
E1220 10:27:48.356088 36758 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:48.356155 36758 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:48.356189 36758 RaftPart.cpp:1484] [Port: 42047, Space: 1, Part: 1] Failed to append logs to WAL
E1220 10:27:48.568734 36758 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:48.568797 36758 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:48.568819 36758 RaftPart.cpp:1484] [Port: 42047, Space: 1, Part: 1] Failed to append logs to WAL
E1220 10:27:48.595468 36758 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:48.595535 36758 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:48.595556 36758 RaftPart.cpp:1484] [Port: 42047, Space: 1, Part: 1] Failed to append logs to WAL
E1220 10:27:48.689752 36758 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:48.689821 36758 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:48.689842 36758 RaftPart.cpp:1484] [Port: 42047, Space: 1, Part: 1] Failed to append logs to WAL
E1220 10:27:48.902139 36758 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:48.902196 36758 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:48.902231 36758 RaftPart.cpp:1484] [Port: 42047, Space: 1, Part: 1] Failed to append logs to WAL
E1220 10:27:48.928689 36758 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:48.928745 36758 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:48.928767 36758 RaftPart.cpp:1484] [Port: 42047, Space: 1, Part: 1] Failed to append logs to WAL
E1220 10:27:49.023252 36758 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:49.023319 36758 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:49.023344 36758 RaftPart.cpp:1484] [Port: 42047, Space: 1, Part: 1] Failed to append logs to WAL
E1220 10:27:49.236253 36758 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:49.236312 36758 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:49.236335 36758 RaftPart.cpp:1484] [Port: 42047, Space: 1, Part: 1] Failed to append logs to WAL
E1220 10:27:49.262681 36758 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:49.262740 36758 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:49.262763 36758 RaftPart.cpp:1484] [Port: 42047, Space: 1, Part: 1] Failed to append logs to WAL
E1220 10:27:49.356457 36758 FileBasedWal.cpp:503] [Port: 42047, Space: 1, Part: 1] There is a gap in the log id. The last log id is 11, and the id being appended is 11
E1220 10:27:49.356518 36758 FileBasedWal.cpp:582] [Port: 42047, Space: 1, Part: 1] Failed to append log for logId 11
E1220 10:27:49.356539 36758 RaftPart.cpp:1484] [Port: 42047, Space: 1, Part: 1] Failed to append logs to WAL
/home/shylock.huang/nebula/src/kvstore/raftex/test/RaftexTestBase.cpp:304: Failure
      Expected: msgs.size()
      Which is: 10
To be equal to: c->getNumLogs()
      Which is: 9

Your Environments (must be provided)

  • OS: Linux hp-server 4.18.16-300.fc29.x86_64 Parser framework #1 SMP Sat Oct 20 23:24:08 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

  • Compliler:
    g++ (GCC) 8.2.0
    Copyright (C) 2018 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

  • CPU:
    Architecture: x86_64
    CPU op-mode(s): 32-bit, 64-bit
    Byte Order: Little Endian
    CPU(s): 40
    On-line CPU(s) list: 0-39
    Thread(s) per core: 2
    Core(s) per socket: 10
    Socket(s): 2
    NUMA node(s): 2
    Vendor ID: GenuineIntel
    CPU family: 6
    Model: 62
    Model name: Intel(R) Xeon(R) CPU E5-2690 v2 @ 3.00GHz
    Stepping: 4
    CPU MHz: 2992.975
    CPU max MHz: 3600.0000
    CPU min MHz: 1200.0000
    BogoMIPS: 5985.45
    Virtualization: VT-x
    L1d cache: 32K
    L1i cache: 32K
    L2 cache: 256K
    L3 cache: 25600K
    NUMA node0 CPU(s): 0-9,20-29
    NUMA node1 CPU(s): 10-19,30-39
    Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm cpuid_fault epb pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts flush_l1d

  • Commit id (e.g. a3ffc7d8)
    5e1ee28
    How To Reproduce(must be provided)

Expected behavior

Additional context

@critical27
Copy link
Contributor

#1777

yixinglu pushed a commit to yixinglu/nebula that referenced this issue Jan 31, 2023
…soft-inc#1483)

* Avoid match full scan when has in predicate

fix

small fix

add test case

small change

add test cases

small fix

fmt

* small delete

Co-authored-by: Sophie <84560950+Sophie-Xie@users.noreply.github.com>

Co-authored-by: kyle.cao <kyle.cao@vesoft.com>
Co-authored-by: Sophie <84560950+Sophie-Xie@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants