[DEBUG] [03/11/2024 13:05:45.433] [main] [EventStream(akka://test)] logger log1-TestEventListener started 01:05:45,433 PM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [03/11/2024 13:05:45.434] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [03/11/2024 13:05:45.434] [main] [EventStream(akka://test)] Default Loggers started 01:05:45,453 PM [test-akka.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.179:25520] with UID [-3930705402582898198] 01:05:45,453 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.179:25520] - Starting up, Akka version [2.6.21] ... [INFO] [03/11/2024 13:05:45.451] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.179:25520] with UID [-3930705402582898198] [INFO] [03/11/2024 13:05:45.452] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.179:25520] - Starting up, Akka version [2.6.21] ... 01:05:45,457 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.179:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [03/11/2024 13:05:45.457] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.179:25520] - Registered cluster JMX MBean [akka:type=Cluster] 01:05:45,457 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.179:25520] - Started up successfully [INFO] [03/11/2024 13:05:45.457] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.179:25520] - Started up successfully 01:05:45,472 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.179:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 01:05:45,472 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.179:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [INFO] [03/11/2024 13:05:45.472] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.179:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [03/11/2024 13:05:45.472] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.179:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 01:05:45,575 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:05:45,576 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:05:45,576 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:05:45,577 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 01:05:45,577 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 5 in "AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than Candidate's term 2 - switching to Follower 01:05:45,577 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:05:45,577 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 01:05:45,577 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior172#-464197149] 01:05:45,590 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate173] 01:05:45,590 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer174#581883099] 01:05:45,595 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:05:45,596 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 01:05:45,596 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:05:45,596 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:05:45,596 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 01:05:45,596 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:05:45,596 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:05:45,596 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior175#-730793280] 01:05:45,607 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate176] 01:05:45,608 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer177#817497055] 01:05:45,613 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:05:45,614 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:05:45,614 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:05:45,620 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:05:45,620 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 01:05:45,620 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 01:05:45,620 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior178#269345822] 01:05:45,631 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate179] 01:05:45,632 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer180#1449623577] 01:05:45,636 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:05:45,637 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:05:45,637 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:05:45,640 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 01:05:45,640 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleAppendEntries: AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] 01:05:45,640 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 01:05:45,640 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:05:45,640 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 01:05:45,641 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior181#-278735815] 01:05:45,652 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate182] 01:05:45,652 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer183#112753828] 01:05:45,656 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:05:45,656 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 01:05:45,658 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 01:05:45,658 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:05:45,658 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:05:45,658 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 01:05:45,658 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 01:05:45,658 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:05:45,658 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 01:05:45,659 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 01:05:45,659 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:05:45,659 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:05:45,661 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:05:45,661 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 01:05:45,661 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior184#-920639320] 01:05:45,672 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate185] 01:05:45,673 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer186#-1794200251] 01:05:45,673 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer187#1955904938] 01:05:45,776 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:05:45,776 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:05:45,776 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:05:45,777 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 01:05:45,777 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0] - currentTerm: 2, votedFor: candidate, lastIndex: 1, lastTerm: 1 01:05:45,777 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 01:05:45,777 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior188#-1832331737] 01:05:45,789 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate189] 01:05:45,789 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer190#1720484059] 01:05:45,897 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:05:45,898 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:05:45,898 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:05:45,898 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]], my term is 2 01:05:45,898 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleAppendEntries: AppendEntries [leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 01:05:45,898 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 01:05:45,898 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:05:45,898 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 01:05:45,898 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior191#1022511570] 01:05:45,911 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate192] 01:05:45,917 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:05:45,917 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:05:45,917 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:05:45,921 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:05:45,921 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 01:05:45,921 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 01:05:45,921 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior193#-201256301] 01:05:45,932 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate194] 01:05:45,933 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer195#26814797] 01:05:45,938 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:05:45,938 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:05:45,938 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:05:45,939 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior196#-1192021380] 01:05:45,950 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate197] 01:05:46,120 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 01:05:46,122 PM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 01:05:46,122 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 01:05:46,122 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 01:05:46,524 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 01:05:46,525 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 01:05:46,525 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 01:05:46,525 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:05:46,525 PM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 01:05:46,525 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:05:46,525 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:05:46,526 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:05:46,526 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:05:46,526 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:05:46,526 PM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 01:05:46,526 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior198#-1292417607] 01:05:46,538 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate199] 01:05:46,538 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer200#-749640320] 01:05:46,539 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer201#1451383666] 01:05:46,539 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer202#-1562496260] 01:05:46,540 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer203#-1078078435] 01:05:46,645 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:05:46,646 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 01:05:46,649 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 01:05:46,649 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:05:46,649 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 01:05:46,649 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 01:05:46,650 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 01:05:46,650 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 01:05:46,651 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 01:05:46,651 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 01:05:46,651 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 01:05:46,651 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:05:46,651 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 01:05:46,651 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 01:05:46,651 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 01:05:46,651 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:05:46,652 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:05:46,652 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:05:46,652 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:05:46,652 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:05:46,652 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 01:05:46,652 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior204#526237079] 01:05:46,664 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate205] 01:05:46,664 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer206#772183484] 01:05:46,665 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer207#-680547782] 01:05:46,665 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer208#-70434657] 01:05:46,666 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer209#-695167041] 01:05:46,669 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:05:46,670 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:05:46,670 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:05:46,670 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior210#-1231197644] 01:05:46,681 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate211] 01:05:46,786 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:05:46,786 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:05:46,786 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:05:46,786 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 01:05:46,786 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 01:05:46,786 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:05:46,786 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:05:46,786 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior212#-290345358] 01:05:46,798 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate213] 01:05:46,802 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:05:46,802 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:05:46,802 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:05:46,803 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 01:05:46,803 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 01:05:46,804 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior214#671947857] 01:05:46,815 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate215] 01:05:46,815 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer216#416096067] 01:05:46,822 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:05:46,822 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 01:05:46,823 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 01:05:46,824 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:05:46,824 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:05:46,824 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 01:05:46,824 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 01:05:46,824 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:05:46,824 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 01:05:46,824 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:05:46,824 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:05:46,824 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:05:46,824 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:05:46,824 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior217#1264455167] 01:05:46,835 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate218] 01:05:46,836 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer219#1607003900] 01:05:46,836 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer220#-510890608] 01:05:46,840 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:05:46,840 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:05:46,840 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:05:46,841 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior221#-1760966375] 01:05:46,851 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate222] 01:05:46,854 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:05:46,854 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:05:46,854 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:05:46,854 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 01:05:46,854 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 01:05:46,854 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 01:05:46,854 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior223#-1870304444] 01:05:46,865 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate224] 01:05:46,868 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:05:46,868 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:05:46,868 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:05:46,868 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 01:05:46,868 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1] - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 01:05:46,868 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 01:05:46,868 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior225#-1937963432] 01:05:46,879 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate226] 01:05:46,882 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:05:46,882 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:05:46,882 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:05:46,882 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 01:05:46,882 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than Candidate's term 2 - switching to Follower 01:05:46,882 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:05:46,882 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:05:46,882 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:05:46,882 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:05:46,882 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntriesReply [term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5], my term is 2 01:05:46,882 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "AppendEntriesReply [term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5]" message is greater than Candidate's term 2 - switching to Follower 01:05:46,882 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:05:46,882 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:05:46,882 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:05:46,883 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 01:05:46,883 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100]" message is greater than Candidate's term 2 - switching to Follower 01:05:46,883 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100] - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 01:05:46,883 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 01:05:46,883 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:05:46,883 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:05:46,883 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:05:46,883 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 01:05:46,883 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "RequestVoteReply [term=100, voteGranted=false]" message is greater than Candidate's term 2 - switching to Follower 01:05:46,883 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:05:46,883 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior227#818947145] 01:05:46,885 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate228] 01:05:46,887 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 01:05:46,887 PM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 01:05:46,887 PM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 01:05:46,887 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior229#-1760286568] 01:05:46,898 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate230] 01:05:46,901 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:05:46,901 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:05:46,901 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:05:46,901 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=4, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 1001 01:05:46,901 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 01:05:46,904 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior231#-188844944] 01:05:46,915 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate232] 01:05:46,918 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:05:46,918 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:05:46,918 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:05:46,918 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:05:46,918 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 01:05:46,918 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 01:05:46,920 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior233#1348311980] 01:05:46,931 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate234] [INFO] [03/11/2024 13:05:46.932] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 01:05:46,933 PM [test-akka.actor.default-dispatcher-11] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [03/11/2024 13:05:46.935] [test-akka.actor.default-dispatcher-6] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.170.179:25520) 01:05:46,937 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.179:25520] - Exiting completed 01:05:46,937 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.179:25520] - Shutting down... 01:05:46,937 PM [test-akka.actor.default-dispatcher-5] [INFO] LocalActorRef - Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#1860746716] was unhandled. [1] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 01:05:46,937 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.179:25520] - Successfully shut down [INFO] [03/11/2024 13:05:46.936] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.179:25520] - Exiting completed [INFO] [03/11/2024 13:05:46.936] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.179:25520] - Shutting down... [INFO] [akkaDeadLetter][03/11/2024 13:05:46.936] [test-akka.actor.default-dispatcher-6] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#1860746716] was unhandled. [1] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. [INFO] [03/11/2024 13:05:46.936] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.179:25520] - Successfully shut down [INFO] [03/11/2024 13:05:46.944] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.179:25520/system/remoting-terminator] Shutting down remote daemon. 01:05:46,944 PM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [03/11/2024 13:05:46.945] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.179:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 01:05:46,945 PM [test-akka.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [03/11/2024 13:05:46.948] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.179:25520/system/remoting-terminator] Remoting shut down. 01:05:46,949 PM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [03/11/2024 13:05:46.949] [test-akka.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger