[DEBUG] [04/26/2024 12:58:53.886] [main] [EventStream(akka://test)] logger log1-TestEventListener started 12:58:53,887 PM [test-akka.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [04/26/2024 12:58:53.888] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [04/26/2024 12:58:53.888] [main] [EventStream(akka://test)] Default Loggers started [INFO] [04/26/2024 12:58:53.917] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.79:25520] with UID [-3829059692558849561] 12:58:53,918 PM [test-akka.actor.default-dispatcher-7] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.79:25520] with UID [-3829059692558849561] [INFO] [04/26/2024 12:58:53.918] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.79:25520] - Starting up, Akka version [2.6.21] ... 12:58:53,919 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.79:25520] - Starting up, Akka version [2.6.21] ... 12:58:53,934 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.79:25520] - Registered cluster JMX MBean [akka:type=Cluster] 12:58:53,934 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.79:25520] - Started up successfully 12:58:53,936 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.79:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 12:58:53,936 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.79:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [INFO] [04/26/2024 12:58:53.927] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.79:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [04/26/2024 12:58:53.927] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.79:25520] - Started up successfully [INFO] [04/26/2024 12:58:53.935] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.79:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [04/26/2024 12:58:53.936] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.79:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 12:58:54,52 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:58:54,52 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:58:54,52 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:58:54,53 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 12:58:54,53 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 12:58:54,53 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:58:54,53 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 12:58:54,53 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior172#806752512] 12:58:54,65 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate173] 12:58:54,66 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer174#1923754766] 12:58:54,172 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:58:54,172 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 12:58:54,172 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:58:54,173 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 12:58:54,173 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 12:58:54,173 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 12:58:54,173 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 12:58:54,173 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior175#1739905703] 12:58:54,184 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate176] 12:58:54,184 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer177#-1446905699] 12:58:54,187 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:58:54,187 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:58:54,187 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 12:58:54,187 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 12:58:54,187 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 12:58:54,187 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 12:58:54,188 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior178#-1018083506] 12:58:54,199 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate179] 12:58:54,199 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer180#-259915338] 12:58:54,201 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:58:54,201 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:58:54,201 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:58:54,201 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 12:58:54,201 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=[]] 12:58:54,201 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 12:58:54,202 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:58:54,202 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 12:58:54,202 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior181#-1764085020] 12:58:54,213 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate182] 12:58:54,213 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer183#1956609091] 12:58:54,219 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:58:54,219 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 12:58:54,220 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 12:58:54,220 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:58:54,220 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 12:58:54,220 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 12:58:54,220 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 12:58:54,220 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 12:58:54,220 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 12:58:54,221 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 12:58:54,221 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:58:54,222 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:58:54,223 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:58:54,223 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 12:58:54,223 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior184#-1579718038] 12:58:54,234 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate185] 12:58:54,234 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer186#-1243179388] 12:58:54,234 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer187#423987245] 12:58:54,236 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:58:54,236 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:58:54,236 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:58:54,237 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 12:58:54,237 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 12:58:54,237 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 12:58:54,237 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior188#1034006611] 12:58:54,248 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate189] 12:58:54,248 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer190#-964845862] 12:58:54,360 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:58:54,361 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:58:54,361 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 12:58:54,361 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 12:58:54,361 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]]] 12:58:54,361 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 12:58:54,361 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:58:54,361 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 12:58:54,361 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior191#-1001238740] 12:58:54,374 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate192] 12:58:54,478 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:58:54,478 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:58:54,478 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 12:58:54,480 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 12:58:54,480 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 12:58:54,480 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 12:58:54,480 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior193#-1759377709] 12:58:54,491 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate194] 12:58:54,493 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer195#-102314210] 12:58:54,498 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:58:54,498 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:58:54,498 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:58:54,498 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior196#155893191] 12:58:54,509 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate197] 12:58:54,610 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 12:58:54,613 PM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 12:58:54,613 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 12:58:54,613 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 12:58:55,17 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 12:58:55,17 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 12:58:55,17 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 12:58:55,17 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 12:58:55,17 PM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 12:58:55,18 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:58:55,18 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:58:55,18 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:58:55,18 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:58:55,19 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:58:55,19 PM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 12:58:55,19 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior198#-893443884] 12:58:55,31 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate199] 12:58:55,31 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer200#-674482895] 12:58:55,31 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer201#-1456758521] 12:58:55,32 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer202#-1341296302] 12:58:55,33 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer203#-1403398365] 12:58:55,38 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:58:55,39 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 12:58:55,41 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 12:58:55,41 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 12:58:55,41 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 12:58:55,41 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 12:58:55,42 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 12:58:55,42 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 12:58:55,42 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 12:58:55,42 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 12:58:55,42 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 12:58:55,43 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 12:58:55,43 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 12:58:55,43 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 12:58:55,43 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 12:58:55,43 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 12:58:55,43 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 12:58:55,43 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 12:58:55,43 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 12:58:55,43 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:58:55,43 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 12:58:55,43 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior204#-1732933208] 12:58:55,54 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate205] 12:58:55,55 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer206#1105095341] 12:58:55,56 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer207#66128097] 12:58:55,57 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer208#-361807197] 12:58:55,58 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer209#1142694243] 12:58:55,62 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:58:55,62 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:58:55,62 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:58:55,63 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior210#765325060] 12:58:55,73 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate211] 12:58:55,176 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:58:55,177 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:58:55,177 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:58:55,177 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 12:58:55,177 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 12:58:55,177 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:58:55,177 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 12:58:55,177 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior212#-1270333924] 12:58:55,188 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate213] 12:58:55,292 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:58:55,292 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:58:55,292 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:58:55,293 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 12:58:55,293 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 12:58:55,294 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior214#-52007347] 12:58:55,305 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate215] 12:58:55,305 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer216#623416363] 12:58:55,308 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:58:55,308 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 12:58:55,309 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 12:58:55,310 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:58:55,310 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 12:58:55,310 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 12:58:55,310 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 12:58:55,310 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 12:58:55,310 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 12:58:55,310 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:58:55,310 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:58:55,310 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:58:55,310 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 12:58:55,311 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior217#2146080620] 12:58:55,322 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate218] 12:58:55,322 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer219#1635216487] 12:58:55,322 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer220#-1528965205] 12:58:55,331 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:58:55,331 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:58:55,331 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:58:55,331 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior221#-1002578169] 12:58:55,342 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate222] 12:58:55,345 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:58:55,345 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:58:55,345 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:58:55,345 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 12:58:55,345 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 12:58:55,345 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 12:58:55,346 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior223#-1200900213] 12:58:55,357 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate224] 12:58:55,359 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:58:55,359 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:58:55,359 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:58:55,359 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 12:58:55,359 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 12:58:55,359 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 12:58:55,360 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior225#-1577411991] 12:58:55,371 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate226] 12:58:55,374 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:58:55,374 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:58:55,374 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:58:55,374 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 12:58:55,374 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 12:58:55,374 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:58:55,374 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 12:58:55,374 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:58:55,374 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:58:55,374 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 12:58:55,374 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 12:58:55,374 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 12:58:55,374 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:58:55,374 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:58:55,374 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 12:58:55,374 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 12:58:55,375 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 12:58:55,375 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 12:58:55,375 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 12:58:55,375 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:58:55,375 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 12:58:55,375 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 12:58:55,375 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 12:58:55,375 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 12:58:55,375 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior227#-191472777] 12:58:55,386 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate228] 12:58:55,388 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 12:58:55,388 PM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 12:58:55,388 PM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 12:58:55,388 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior229#2064265078] 12:58:55,399 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate230] 12:58:55,402 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:58:55,402 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:58:55,403 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 12:58:55,403 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 12:58:55,403 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 12:58:55,403 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior231#-315596729] 12:58:55,414 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate232] 12:58:55,415 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 12:58:55,415 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 12:58:55,415 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 12:58:55,415 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 12:58:55,415 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 12:58:55,416 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 12:58:55,416 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior233#-2005652580] 12:58:55,427 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate234] [INFO] [04/26/2024 12:58:55.428] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 12:58:55,428 PM [test-akka.actor.default-dispatcher-11] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [04/26/2024 12:58:55.430] [test-akka.actor.default-dispatcher-6] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.171.79:25520) [INFO] [akkaDeadLetter][04/26/2024 12:58:55.430] [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#723014881] 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'. 12:58:55,431 PM [test-akka.actor.default-dispatcher-6] [INFO] LocalActorRef - Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#723014881] 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] [04/26/2024 12:58:55.431] [test-akka.actor.internal-dispatcher-5] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.79:25520] - Exiting completed 12:58:55,432 PM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.79:25520] - Exiting completed 12:58:55,432 PM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.79:25520] - Shutting down... [INFO] [04/26/2024 12:58:55.432] [test-akka.actor.internal-dispatcher-5] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.79:25520] - Shutting down... [INFO] [04/26/2024 12:58:55.432] [test-akka.actor.internal-dispatcher-5] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.79:25520] - Successfully shut down 12:58:55,432 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.79:25520] - Successfully shut down [INFO] [04/26/2024 12:58:55.438] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.79:25520/system/remoting-terminator] Shutting down remote daemon. [INFO] [04/26/2024 12:58:55.439] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.79:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 12:58:55,439 PM [test-akka.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 12:58:55,439 PM [test-akka.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [04/26/2024 12:58:55.449] [test-akka.remote.default-remote-dispatcher-10] [akka://test@10.30.171.79:25520/system/remoting-terminator] Remoting shut down. 12:58:55,449 PM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [04/26/2024 12:58:55.449] [test-akka.actor.internal-dispatcher-5] [EventStream] shutting down: StandardOutLogger