[DEBUG] [07/14/2025 08:45:49.570] [main] [EventStream(akka://test)] logger log1-TestEventListener started 08:45:49,571 AM [test-akka.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [07/14/2025 08:45:49.571] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [07/14/2025 08:45:49.571] [main] [EventStream(akka://test)] Default Loggers started [INFO] [07/14/2025 08:45:49.592] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.90:25520] with UID [-2114261167213156942] 08:45:49,592 AM [test-akka.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.90:25520] with UID [-2114261167213156942] [INFO] [07/14/2025 08:45:49.593] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.90:25520] - Starting up, Akka version [2.6.21] ... 08:45:49,593 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.90:25520] - Starting up, Akka version [2.6.21] ... [INFO] [07/14/2025 08:45:49.595] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.90:25520] - Registered cluster JMX MBean [akka:type=Cluster] 08:45:49,595 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.90:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [07/14/2025 08:45:49.595] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.90:25520] - Started up successfully 08:45:49,595 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.90:25520] - Started up successfully [INFO] [07/14/2025 08:45:49.596] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.90:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [07/14/2025 08:45:49.596] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.90:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 08:45:49,596 AM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.90:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 08:45:49,596 AM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.90:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 08:45:49,610 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:49,610 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:49,610 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:49,611 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 08:45:49,611 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 08:45:49,611 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:45:49,611 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 08:45:49,611 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior363#-1594891080] 08:45:49,623 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate364] 08:45:49,623 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer365#999021559] 08:45:49,624 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:49,625 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 08:45:49,625 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:49,625 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 08:45:49,625 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 08:45:49,625 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 08:45:49,625 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 08:45:49,625 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior366#1521317142] 08:45:49,635 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate367] 08:45:49,636 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer368#-1241841795] 08:45:49,637 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:49,637 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:49,637 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 08:45:49,637 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 08:45:49,637 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 08:45:49,637 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 08:45:49,637 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior369#41495511] 08:45:49,648 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate370] 08:45:49,648 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer371#2050120116] 08:45:49,649 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:49,649 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:49,649 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:49,650 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 08:45:49,650 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=[]] 08:45:49,650 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 08:45:49,650 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:45:49,650 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 08:45:49,650 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior372#908675000] 08:45:49,661 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate373] 08:45:49,661 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer374#-1275139454] 08:45:49,663 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:49,663 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 08:45:49,663 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 08:45:49,663 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:49,663 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 08:45:49,663 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 08:45:49,663 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 08:45:49,663 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 08:45:49,663 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 08:45:49,663 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 08:45:49,663 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:45:49,664 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:45:49,664 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:45:49,664 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 08:45:49,664 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior375#-1459114927] 08:45:49,674 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate376] 08:45:49,674 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer377#1555543813] 08:45:49,675 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer378#1812544568] 08:45:49,676 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:49,676 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:49,676 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:49,676 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 08:45:49,676 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 08:45:49,676 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 08:45:49,676 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior379#1048497870] 08:45:49,687 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate380] 08:45:49,687 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer381#1013509287] 08:45:49,688 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:49,688 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:49,688 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 08:45:49,688 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 08:45:49,688 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]]] 08:45:49,688 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 08:45:49,689 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:45:49,689 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 08:45:49,689 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior382#2083197419] 08:45:49,699 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate383] 08:45:49,700 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:49,700 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:49,700 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 08:45:49,700 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 08:45:49,700 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 08:45:49,701 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 08:45:49,701 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior384#-991503716] 08:45:49,711 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate385] 08:45:49,712 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer386#994786269] 08:45:49,713 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:49,713 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:49,713 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:49,713 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior387#-451890105] 08:45:49,724 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate388] 08:45:49,728 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 08:45:49,728 AM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 08:45:49,729 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 08:45:49,729 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 08:45:50,130 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 08:45:50,130 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 08:45:50,131 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 08:45:50,131 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 08:45:50,131 AM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 08:45:50,131 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:45:50,131 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:45:50,131 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:45:50,131 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:45:50,131 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:45:50,131 AM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 08:45:50,132 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior389#764221242] 08:45:50,142 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate390] 08:45:50,143 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer391#-1720045090] 08:45:50,143 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer392#263310569] 08:45:50,143 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer393#-309234868] 08:45:50,143 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer394#-1656360248] 08:45:50,145 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:50,146 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 08:45:50,147 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 08:45:50,147 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 08:45:50,147 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 08:45:50,147 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 08:45:50,147 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 08:45:50,147 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 08:45:50,147 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 08:45:50,147 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 08:45:50,147 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 08:45:50,147 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 08:45:50,147 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 08:45:50,147 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 08:45:50,147 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 08:45:50,147 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 08:45:50,147 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 08:45:50,147 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 08:45:50,147 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 08:45:50,147 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:45:50,147 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 08:45:50,147 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior395#-1864826515] 08:45:50,158 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate396] 08:45:50,158 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer397#1610769231] 08:45:50,159 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer398#353189070] 08:45:50,159 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer399#170726546] 08:45:50,159 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer400#35722751] 08:45:50,161 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:50,161 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:50,161 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:50,162 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior401#-1811739499] 08:45:50,172 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate402] 08:45:50,174 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:50,174 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:50,174 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:50,174 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 08:45:50,174 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 08:45:50,174 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:45:50,174 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 08:45:50,174 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior403#1197254102] 08:45:50,184 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate404] 08:45:50,186 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:50,186 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:50,186 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:50,187 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 08:45:50,187 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 08:45:50,187 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior405#186967925] 08:45:50,198 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate406] 08:45:50,198 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer407#2024433089] 08:45:50,200 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:50,200 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 08:45:50,201 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 08:45:50,201 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:50,201 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 08:45:50,201 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 08:45:50,201 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 08:45:50,201 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 08:45:50,202 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 08:45:50,202 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:45:50,202 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:45:50,202 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:45:50,202 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 08:45:50,202 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior408#-508348780] 08:45:50,212 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate409] 08:45:50,212 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer410#904485114] 08:45:50,213 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer411#-1825758741] 08:45:50,214 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:50,214 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:50,214 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:50,214 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior412#79750315] 08:45:50,225 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate413] 08:45:50,226 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:50,226 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:50,226 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:50,227 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 08:45:50,227 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 08:45:50,227 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 08:45:50,227 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior414#1535432613] 08:45:50,237 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate415] 08:45:50,239 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:50,239 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:50,239 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:50,239 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 08:45:50,239 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 08:45:50,239 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 08:45:50,239 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior416#-571030409] 08:45:50,250 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate417] 08:45:50,252 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:50,252 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:50,252 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:50,252 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 08:45:50,252 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 08:45:50,252 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:45:50,252 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 08:45:50,253 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:50,253 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:50,253 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 08:45:50,253 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 08:45:50,253 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 08:45:50,253 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:50,253 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:50,253 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 08:45:50,253 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 08:45:50,253 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 08:45:50,253 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 08:45:50,253 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 08:45:50,253 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:50,253 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:50,253 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 08:45:50,253 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 08:45:50,253 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 08:45:50,253 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior418#1805733021] 08:45:50,254 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate419] 08:45:50,256 AM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 08:45:50,256 AM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 08:45:50,256 AM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 08:45:50,256 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior420#545082834] 08:45:50,256 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate421] 08:45:50,258 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:50,258 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:50,258 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 08:45:50,258 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 08:45:50,258 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 08:45:50,258 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior422#-472463091] 08:45:50,259 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate423] 08:45:50,260 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:50,260 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:50,260 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 08:45:50,260 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 08:45:50,260 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 08:45:50,260 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 08:45:50,260 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior424#905781941] 08:45:50,261 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate425] [INFO] [07/14/2025 08:45:50.261] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 08:45:50,261 AM [test-akka.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [07/14/2025 08:45:50.262] [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.90:25520) [INFO] [akkaDeadLetter][07/14/2025 08:45:50.262] [test-akka.actor.default-dispatcher-11] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-1522626459] 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'. 08:45:50,262 AM [test-akka.actor.default-dispatcher-11] [INFO] LocalActorRef - akkaDeadLetter Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-1522626459] 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] [07/14/2025 08:45:50.263] [test-akka.actor.internal-dispatcher-5] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.90:25520] - Exiting completed 08:45:50,263 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.90:25520] - Exiting completed [INFO] [07/14/2025 08:45:50.263] [test-akka.actor.internal-dispatcher-5] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.90:25520] - Shutting down... 08:45:50,263 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.90:25520] - Shutting down... 08:45:50,263 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.90:25520] - Successfully shut down [INFO] [07/14/2025 08:45:50.263] [test-akka.actor.internal-dispatcher-5] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.90:25520] - Successfully shut down [INFO] [07/14/2025 08:45:50.264] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.171.90:25520/system/remoting-terminator] Shutting down remote daemon. 08:45:50,265 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [07/14/2025 08:45:50.265] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.171.90:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 08:45:50,265 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports.