[DEBUG] [08/12/2025 13:27:57.987] [main] [EventStream(akka://test)] logger log1-TestEventListener started 01:27:57,987 PM [test-akka.actor.default-dispatcher-4] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [08/12/2025 13:27:57.987] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [08/12/2025 13:27:57.987] [main] [EventStream(akka://test)] Default Loggers started [INFO] [08/12/2025 13:27:58.000] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.251:25520] with UID [3206757216523509863] 01:27:58,1 PM [test-akka.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.251:25520] with UID [3206757216523509863] 01:27:58,2 PM [test-akka.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [akka://test@10.30.170.251:25520] - Starting up, Akka version [2.6.21] ... [INFO] [08/12/2025 13:27:58.002] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.251:25520] - Starting up, Akka version [2.6.21] ... 01:27:58,4 PM [test-akka.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [akka://test@10.30.170.251:25520] - Registered cluster JMX MBean [akka:type=Cluster] 01:27:58,4 PM [test-akka.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [akka://test@10.30.170.251:25520] - Started up successfully [INFO] [08/12/2025 13:27:58.004] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.251:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [08/12/2025 13:27:58.004] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.251:25520] - Started up successfully 01:27:58,6 PM [test-akka.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [akka://test@10.30.170.251:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 01:27:58,6 PM [test-akka.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [akka://test@10.30.170.251:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [INFO] [08/12/2025 13:27:58.005] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.251:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [08/12/2025 13:27:58.005] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.251:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 01:27:58,120 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:58,120 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:58,120 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:58,121 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:27:58,121 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:27:58,122 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:27:58,122 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 01:27:58,122 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior363#1182157597] 01:27:58,134 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate364] 01:27:58,134 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer365#-621020086] 01:27:58,136 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:58,137 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 01:27:58,137 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:58,137 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:27:58,138 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 01:27:58,138 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:27:58,138 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:27:58,138 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior366#-323915623] 01:27:58,148 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate367] 01:27:58,149 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer368#271862332] 01:27:58,152 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:58,152 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:58,152 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:27:58,152 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:27:58,152 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:27:58,152 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 01:27:58,153 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior369#-461826573] 01:27:58,167 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate370] 01:27:58,167 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer371#-490486434] 01:27:58,170 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:58,170 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:58,170 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:58,171 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:27:58,171 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:27:58,171 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 01:27:58,171 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:27:58,171 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 01:27:58,171 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior372#-1584116221] 01:27:58,182 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate373] 01:27:58,182 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer374#110487518] 01:27:58,185 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:58,185 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 01:27:58,185 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 01:27:58,185 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:58,185 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:27:58,186 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 01:27:58,186 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 01:27:58,186 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:27:58,186 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 01:27:58,186 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 01:27:58,186 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:27:58,186 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:27:58,186 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:27:58,186 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 01:27:58,186 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior375#-435213941] 01:27:58,197 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate376] 01:27:58,197 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer377#-580621764] 01:27:58,198 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer378#996008243] 01:27:58,200 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:58,200 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:58,200 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:58,200 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 01:27:58,200 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:27:58,200 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 01:27:58,200 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior379#1224785874] 01:27:58,211 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate380] 01:27:58,211 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer381#-42444512] 01:27:58,214 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:58,214 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:58,214 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:27:58,215 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:27:58,215 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:27:58,215 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 01:27:58,215 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:27:58,215 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 01:27:58,216 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior382#-1640180184] 01:27:58,227 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate383] 01:27:58,331 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:58,331 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:58,331 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:27:58,332 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:27:58,332 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:27:58,332 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 01:27:58,332 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior384#-1755555963] 01:27:58,343 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate385] 01:27:58,343 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer386#-1470446191] 01:27:58,345 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:58,345 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:58,345 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:58,346 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior387#-954425580] 01:27:58,346 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate388] 01:27:58,352 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 01:27:58,353 PM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 01:27:58,353 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 01:27:58,353 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 01:27:58,756 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 01:27:58,756 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 01:27:58,756 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 01:27:58,756 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:27:58,756 PM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 01:27:58,756 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:27:58,756 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:27:58,756 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:27:58,756 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:27:58,757 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:27:58,757 PM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 01:27:58,757 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior389#-1992024408] 01:27:58,768 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate390] 01:27:58,768 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer391#-1421338926] 01:27:58,768 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer392#1402469890] 01:27:58,768 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer393#491829856] 01:27:58,768 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer394#-883622823] 01:27:58,770 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:58,770 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 01:27:58,772 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 01:27:58,772 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:27:58,772 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 01:27:58,772 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 01:27:58,772 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 01:27:58,772 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 01:27:58,772 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 01:27:58,772 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 01:27:58,772 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 01:27:58,772 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:27:58,772 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 01:27:58,772 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 01:27:58,772 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 01:27:58,773 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:27:58,773 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:27:58,773 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:27:58,773 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:27:58,773 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:27:58,773 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 01:27:58,773 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior395#27398211] 01:27:58,783 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate396] 01:27:58,784 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer397#-1187680265] 01:27:58,784 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer398#-71513352] 01:27:58,784 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer399#-68414552] 01:27:58,784 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer400#-333991839] 01:27:58,785 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:58,785 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:58,785 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:58,785 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior401#-258580713] 01:27:58,796 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate402] 01:27:58,797 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:58,797 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:58,797 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:58,798 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 01:27:58,798 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 01:27:58,798 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:27:58,798 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:27:58,798 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior403#-1473845140] 01:27:58,808 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate404] 01:27:58,810 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:58,810 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:58,810 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:58,810 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:27:58,811 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 01:27:58,811 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior405#1014745937] 01:27:58,822 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate406] 01:27:58,822 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer407#461200566] 01:27:58,824 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:58,824 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 01:27:58,824 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 01:27:58,824 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:58,824 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:27:58,825 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 01:27:58,825 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 01:27:58,825 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:27:58,825 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 01:27:58,825 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:27:58,825 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:27:58,825 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:27:58,825 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:27:58,825 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior408#-459630139] 01:27:58,836 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate409] 01:27:58,836 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer410#-1718771573] 01:27:58,836 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer411#-781217567] 01:27:58,838 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:58,838 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:58,838 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:58,838 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior412#91124102] 01:27:58,849 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate413] 01:27:58,850 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:58,850 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:58,850 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:58,850 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 01:27:58,850 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:27:58,850 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 01:27:58,850 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior414#1076746770] 01:27:58,861 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate415] 01:27:58,863 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:58,863 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:58,863 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:58,863 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 01:27:58,863 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:27:58,863 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 01:27:58,863 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior416#-748304705] 01:27:58,874 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate417] 01:27:58,876 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:58,876 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:58,876 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:58,876 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:27:58,876 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:27:58,876 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:27:58,876 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:27:58,876 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:58,876 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:58,876 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:27:58,876 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:27:58,877 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:27:58,877 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:58,877 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:58,877 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 01:27:58,877 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:27:58,877 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:27:58,877 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 01:27:58,877 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:27:58,877 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:58,877 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:27:58,877 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 01:27:58,877 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:27:58,877 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:27:58,877 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior418#746891121] 01:27:58,878 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate419] 01:27:58,879 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 01:27:58,879 PM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 01:27:58,879 PM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 01:27:58,879 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior420#2131775345] 01:27:58,880 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate421] 01:27:58,881 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:58,881 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:58,881 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:27:58,881 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:27:58,881 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 01:27:58,881 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior422#409557544] 01:27:58,883 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate423] 01:27:58,884 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:27:58,884 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:27:58,884 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:27:58,884 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:27:58,884 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:27:58,884 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 01:27:58,884 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior424#-996383676] 01:27:58,885 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate425] [INFO] [08/12/2025 13:27:58.885] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 01:27:58,886 PM [test-akka.actor.default-dispatcher-5] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 01:27:58,887 PM [test-akka.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [akka://test@10.30.170.251:25520] - Exiting completed 01:27:58,887 PM [test-akka.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [akka://test@10.30.170.251:25520] - Shutting down... 01:27:58,887 PM [test-akka.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [akka://test@10.30.170.251:25520] - Successfully shut down 01:27:58,887 PM [test-akka.actor.default-dispatcher-4] [INFO] LocalActorRef - akkaDeadLetter Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#1164255843] 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'. [WARN] [08/12/2025 13:27:58.886] [test-akka.actor.default-dispatcher-5] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.170.251:25520) [INFO] [08/12/2025 13:27:58.887] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.251:25520] - Exiting completed [INFO] [08/12/2025 13:27:58.887] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.251:25520] - Shutting down... [INFO] [08/12/2025 13:27:58.887] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.251:25520] - Successfully shut down [INFO] [akkaDeadLetter][08/12/2025 13:27:58.887] [test-akka.actor.default-dispatcher-4] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#1164255843] 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:27:58,888 PM [test-akka.actor.default-dispatcher-4] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 01:27:58,888 PM [test-akka.actor.default-dispatcher-4] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [08/12/2025 13:27:58.888] [test-akka.remote.default-remote-dispatcher-10] [akka://test@10.30.170.251:25520/system/remoting-terminator] Shutting down remote daemon. [INFO] [08/12/2025 13:27:58.888] [test-akka.remote.default-remote-dispatcher-10] [akka://test@10.30.170.251:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports.