11:22:11,8 AM [test-akka.actor.default-dispatcher-4] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [03/11/2024 11:22:11.005] [main] [EventStream(akka://test)] logger log1-TestEventListener started [DEBUG] [03/11/2024 11:22:11.009] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [03/11/2024 11:22:11.009] [main] [EventStream(akka://test)] Default Loggers started 11:22:11,41 AM [test-akka.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.95:25520] with UID [-7166092874649619526] 11:22:11,41 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.95:25520] - Starting up, Akka version [2.6.21] ... [INFO] [03/11/2024 11:22:11.039] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.95:25520] with UID [-7166092874649619526] [INFO] [03/11/2024 11:22:11.040] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.95:25520] - Starting up, Akka version [2.6.21] ... 11:22:11,62 AM [test-akka.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [akka://test@10.30.171.95:25520] - Registered cluster JMX MBean [akka:type=Cluster] 11:22:11,62 AM [test-akka.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [akka://test@10.30.171.95:25520] - Started up successfully 11:22:11,68 AM [test-akka.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [akka://test@10.30.171.95:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 11:22:11,68 AM [test-akka.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [akka://test@10.30.171.95: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 11:22:11.052] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.95:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [03/11/2024 11:22:11.052] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.95:25520] - Started up successfully [INFO] [03/11/2024 11:22:11.067] [test-akka.actor.internal-dispatcher-9] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.95: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 11:22:11.067] [test-akka.actor.internal-dispatcher-9] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.95:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 11:22:11,178 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:22:11,179 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:22:11,179 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:22:11,180 AM [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 11:22:11,180 AM [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 11:22:11,180 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:22:11,180 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 11:22:11,181 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior172#1572300512] 11:22:11,193 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate173] 11:22:11,193 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer174#-1058825765] 11:22:11,297 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:22:11,298 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 11:22:11,298 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:22:11,298 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 11:22:11,298 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 11:22:11,298 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 11:22:11,298 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 11:22:11,298 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior175#1349066829] 11:22:11,310 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate176] 11:22:11,310 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer177#-2118623822] 11:22:11,313 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:22:11,313 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:22:11,313 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 11:22:11,314 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 11:22:11,314 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 11:22:11,314 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 11:22:11,314 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior178#-2137664577] 11:22:11,325 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate179] 11:22:11,326 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer180#-360386972] 11:22:11,328 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:22:11,328 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:22:11,328 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:22:11,336 AM [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 11:22:11,336 AM [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=[]] 11:22:11,336 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 11:22:11,337 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:22:11,337 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 11:22:11,337 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior181#-1016715280] 11:22:11,349 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate182] 11:22:11,349 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer183#1451395471] 11:22:11,353 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:22:11,353 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 11:22:11,356 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 11:22:11,356 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:22:11,356 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 11:22:11,357 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 11:22:11,357 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 11:22:11,357 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 11:22:11,357 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 11:22:11,358 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 11:22:11,358 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:22:11,358 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:22:11,360 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:22:11,360 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 11:22:11,360 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior184#519307941] 11:22:11,371 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate185] 11:22:11,372 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer186#-1153365893] 11:22:11,372 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer187#-1988232516] 11:22:11,375 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:22:11,375 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:22:11,375 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:22:11,375 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 11:22:11,375 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0] - currentTerm: 2, votedFor: candidate, lastIndex: 1, lastTerm: 1 11:22:11,375 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 11:22:11,376 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior188#-1208405967] 11:22:11,387 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate189] 11:22:11,387 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer190#1954545554] 11:22:11,390 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:22:11,390 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:22:11,390 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 11:22:11,391 AM [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 11:22:11,391 AM [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]]] 11:22:11,391 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 11:22:11,391 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:22:11,391 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 11:22:11,391 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior191#1089174434] 11:22:11,402 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate192] 11:22:11,404 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:22:11,404 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:22:11,404 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 11:22:11,405 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 11:22:11,405 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 11:22:11,405 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 11:22:11,405 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior193#424398356] 11:22:11,416 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate194] 11:22:11,416 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer195#-1635925499] 11:22:11,420 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:22:11,420 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:22:11,420 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:22:11,420 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior196#1592356099] 11:22:11,431 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate197] 11:22:11,608 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 11:22:11,610 AM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 11:22:11,610 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 11:22:11,611 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 11:22:12,14 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 11:22:12,14 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 11:22:12,14 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 11:22:12,14 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 11:22:12,14 AM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 11:22:12,15 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:22:12,15 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:22:12,15 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:22:12,15 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:22:12,16 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:22:12,16 AM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 11:22:12,16 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior198#-2095589776] 11:22:12,28 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate199] 11:22:12,28 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer200#-1415563730] 11:22:12,29 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer201#1355857832] 11:22:12,29 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer202#-342138837] 11:22:12,30 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer203#-1776197910] 11:22:12,34 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:22:12,34 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 11:22:12,37 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 11:22:12,37 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 11:22:12,37 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 11:22:12,37 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 11:22:12,38 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 11:22:12,38 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 11:22:12,38 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 11:22:12,38 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 11:22:12,38 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 11:22:12,38 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 11:22:12,39 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 11:22:12,39 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 11:22:12,39 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 11:22:12,39 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:22:12,39 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:22:12,39 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:22:12,39 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:22:12,39 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:22:12,40 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 11:22:12,40 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior204#-853421363] 11:22:12,51 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate205] 11:22:12,51 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer206#2108450495] 11:22:12,52 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer207#-742727506] 11:22:12,52 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer208#551824321] 11:22:12,53 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer209#-765768823] 11:22:12,56 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:22:12,56 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:22:12,56 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:22:12,61 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior210#-1580986955] 11:22:12,72 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate211] 11:22:12,178 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:22:12,178 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:22:12,178 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:22:12,178 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 11:22:12,178 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 11:22:12,178 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:22:12,178 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:22:12,178 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior212#1241938157] 11:22:12,191 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate213] 11:22:12,194 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:22:12,194 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:22:12,194 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:22:12,195 AM [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 11:22:12,195 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 11:22:12,195 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior214#-373708997] 11:22:12,207 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate215] 11:22:12,207 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer216#-1634434409] 11:22:12,210 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:22:12,210 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 11:22:12,211 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 11:22:12,211 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:22:12,211 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 11:22:12,212 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 11:22:12,212 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 11:22:12,212 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 11:22:12,212 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 11:22:12,212 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:22:12,213 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:22:12,213 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:22:12,213 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:22:12,213 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior217#1057389249] 11:22:12,224 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate218] 11:22:12,224 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer219#-1192508392] 11:22:12,224 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer220#294496990] 11:22:12,227 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:22:12,227 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:22:12,227 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:22:12,228 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior221#1528846477] 11:22:12,240 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate222] 11:22:12,252 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:22:12,252 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:22:12,252 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:22:12,252 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 11:22:12,252 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 11:22:12,252 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 11:22:12,252 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior223#1906622632] 11:22:12,264 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate224] 11:22:12,367 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:22:12,368 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:22:12,368 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:22:12,368 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 11:22:12,368 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1] - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 11:22:12,368 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 11:22:12,368 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior225#-690411394] 11:22:12,380 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate226] 11:22:12,383 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:22:12,383 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:22:12,383 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:22:12,383 AM [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 11:22:12,383 AM [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 11:22:12,383 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:22:12,383 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 11:22:12,383 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:22:12,383 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:22:12,383 AM [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 11:22:12,383 AM [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 11:22:12,383 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 11:22:12,383 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:22:12,384 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:22:12,384 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 11:22:12,384 AM [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 11:22:12,384 AM [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 11:22:12,384 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 11:22:12,384 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 11:22:12,384 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:22:12,384 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:22:12,384 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 11:22:12,384 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "RequestVoteReply [term=100, voteGranted=false]" message is greater than Candidate's term 2 - switching to Follower 11:22:12,384 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 11:22:12,384 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior227#-2094274843] 11:22:12,395 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate228] 11:22:12,398 AM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 11:22:12,398 AM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 11:22:12,398 AM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 11:22:12,398 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior229#-1584458273] 11:22:12,409 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate230] 11:22:12,410 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:22:12,410 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:22:12,410 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 11:22:12,410 AM [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 11:22:12,410 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 11:22:12,410 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior231#-1643968860] 11:22:12,421 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate232] 11:22:12,424 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:22:12,424 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:22:12,425 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 11:22:12,425 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 11:22:12,425 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 11:22:12,425 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 11:22:12,425 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior233#439875919] 11:22:12,436 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate234] 11:22:12,437 AM [test-akka.actor.default-dispatcher-5] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [03/11/2024 11:22:12.436] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [03/11/2024 11:22:12.439] [test-akka.actor.default-dispatcher-11] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.171.95:25520) [INFO] [03/11/2024 11:22:12.439] [test-akka.actor.internal-dispatcher-9] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.95:25520] - Exiting completed [INFO] [03/11/2024 11:22:12.439] [test-akka.actor.internal-dispatcher-9] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.95:25520] - Shutting down... [INFO] [akkaDeadLetter][03/11/2024 11:22:12.439] [test-akka.actor.default-dispatcher-5] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#1057082550] 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 11:22:12.440] [test-akka.actor.internal-dispatcher-9] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.95:25520] - Successfully shut down 11:22:12,440 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.95:25520] - Exiting completed 11:22:12,440 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.95:25520] - Shutting down... 11:22:12,440 AM [test-akka.actor.default-dispatcher-5] [INFO] LocalActorRef - Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#1057082550] 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'. 11:22:12,440 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.95:25520] - Successfully shut down [INFO] [03/11/2024 11:22:12.444] [test-akka.remote.default-remote-dispatcher-6] [akka://test@10.30.171.95:25520/system/remoting-terminator] Shutting down remote daemon. 11:22:12,444 AM [test-akka.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 11:22:12,444 AM [test-akka.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [03/11/2024 11:22:12.444] [test-akka.remote.default-remote-dispatcher-6] [akka://test@10.30.171.95:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 11:22:12,451 AM [test-akka.actor.default-dispatcher-4] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [03/11/2024 11:22:12.450] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.171.95:25520/system/remoting-terminator] Remoting shut down. [DEBUG] [03/11/2024 11:22:12.451] [test-akka.actor.internal-dispatcher-10] [EventStream] shutting down: StandardOutLogger