[DEBUG] [07/14/2025 08:45:58.549] [main] [EventStream(akka://test)] logger log1-TestEventListener started 08:45:58,549 AM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [07/14/2025 08:45:58.549] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [07/14/2025 08:45:58.549] [main] [EventStream(akka://test)] Default Loggers started [INFO] [07/14/2025 08:45:58.562] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.51:25520] with UID [-2582014069252546891] 08:45:58,562 AM [test-akka.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.51:25520] with UID [-2582014069252546891] [INFO] [07/14/2025 08:45:58.563] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.51:25520] - Starting up, Akka version [2.6.21] ... 08:45:58,563 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.51:25520] - Starting up, Akka version [2.6.21] ... [INFO] [07/14/2025 08:45:58.564] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.51:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [07/14/2025 08:45:58.564] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.51:25520] - Started up successfully 08:45:58,564 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.51:25520] - Registered cluster JMX MBean [akka:type=Cluster] 08:45:58,564 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.51:25520] - Started up successfully [INFO] [07/14/2025 08:45:58.566] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.51: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:58.566] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.51:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 08:45:58,566 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.51:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 08:45:58,566 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.51:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 08:45:58,575 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:58,575 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:58,575 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:58,576 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:58,576 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:58,576 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:45:58,576 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 08:45:58,576 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior363#1629122454] 08:45:58,587 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate364] 08:45:58,587 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer365#1300780577] 08:45:58,588 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:58,588 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 08:45:58,588 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:58,588 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 08:45:58,589 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 08:45:58,589 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 08:45:58,589 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 08:45:58,589 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior366#-1784373069] 08:45:58,599 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate367] 08:45:58,599 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer368#-714079357] 08:45:58,602 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:58,602 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:58,602 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 08:45:58,602 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 08:45:58,602 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:58,602 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 08:45:58,602 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior369#-1038410528] 08:45:58,613 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate370] 08:45:58,613 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer371#1393268032] 08:45:58,615 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:58,616 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:58,616 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:58,616 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:58,616 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:58,616 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 08:45:58,616 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:45:58,616 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 08:45:58,617 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior372#-501672320] 08:45:58,627 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate373] 08:45:58,628 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer374#1225084567] 08:45:58,629 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:58,629 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 08:45:58,630 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 08:45:58,630 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:58,630 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 08:45:58,630 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 08:45:58,630 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 08:45:58,630 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 08:45:58,630 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 08:45:58,630 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 08:45:58,630 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:45:58,630 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:45:58,630 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:45:58,630 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 08:45:58,630 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior375#-2042092057] 08:45:58,641 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate376] 08:45:58,641 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer377#666598806] 08:45:58,641 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer378#-1212307035] 08:45:58,643 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:58,643 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:58,643 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:58,644 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 08:45:58,644 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:58,644 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 08:45:58,644 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior379#-421852082] 08:45:58,654 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate380] 08:45:58,655 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer381#-1492589735] 08:45:58,657 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:58,657 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:58,657 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 08:45:58,657 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:58,657 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:58,657 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 08:45:58,657 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:45:58,657 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 08:45:58,657 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior382#270935839] 08:45:58,668 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate383] 08:45:58,672 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:58,672 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:58,672 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 08:45:58,672 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 08:45:58,672 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:58,672 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 08:45:58,673 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior384#782503015] 08:45:58,674 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate385] 08:45:58,674 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer386#-1473342616] 08:45:58,676 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:58,676 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:58,676 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:58,676 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior387#885975713] 08:45:58,677 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate388] 08:45:58,679 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 08:45:58,679 AM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 08:45:58,679 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 08:45:58,679 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 08:45:59,82 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 08:45:59,82 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 08:45:59,82 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 08:45:59,82 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 08:45:59,82 AM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 08:45:59,82 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:45:59,82 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:45:59,82 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:45:59,82 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:45:59,82 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:45:59,83 AM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 08:45:59,83 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior389#-594884880] 08:45:59,94 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate390] 08:45:59,94 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer391#-534047480] 08:45:59,94 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer392#1973925263] 08:45:59,94 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer393#1585392167] 08:45:59,94 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer394#1284548635] 08:45:59,197 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:59,197 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 08:45:59,199 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 08:45:59,199 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 08:45:59,200 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 08:45:59,200 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 08:45:59,200 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 08:45:59,200 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 08:45:59,200 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 08:45:59,200 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 08:45:59,200 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 08:45:59,200 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 08:45:59,200 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 08:45:59,200 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 08:45:59,200 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 08:45:59,200 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 08:45:59,200 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 08:45:59,200 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 08:45:59,201 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 08:45:59,201 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:45:59,201 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 08:45:59,201 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior395#-1810488895] 08:45:59,212 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate396] 08:45:59,212 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer397#-858924788] 08:45:59,212 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer398#-1755611690] 08:45:59,212 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer399#1718319996] 08:45:59,212 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer400#953879651] 08:45:59,214 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:59,214 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:59,214 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:59,215 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior401#1250433977] 08:45:59,225 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate402] 08:45:59,227 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:59,227 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:59,227 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:59,227 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 08:45:59,227 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 08:45:59,227 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:45:59,227 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 08:45:59,227 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior403#-1586939193] 08:45:59,238 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate404] 08:45:59,240 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:59,240 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:59,240 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:59,240 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:59,240 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 08:45:59,241 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior405#2001892599] 08:45:59,251 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate406] 08:45:59,251 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer407#-1706575647] 08:45:59,253 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:59,253 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 08:45:59,253 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 08:45:59,253 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:59,253 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 08:45:59,253 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 08:45:59,253 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 08:45:59,253 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 08:45:59,254 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 08:45:59,254 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:45:59,254 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:45:59,254 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:45:59,254 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 08:45:59,254 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior408#2105135098] 08:45:59,264 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate409] 08:45:59,264 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer410#650324638] 08:45:59,264 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer411#-538500419] 08:45:59,266 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:59,266 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:59,266 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:59,267 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior412#-885024338] 08:45:59,277 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate413] 08:45:59,279 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:59,279 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:59,279 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:59,279 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 08:45:59,279 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:59,279 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 08:45:59,279 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior414#370595083] 08:45:59,289 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate415] 08:45:59,291 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:59,291 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:59,291 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:59,291 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 08:45:59,291 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:59,291 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 08:45:59,291 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior416#-1926785605] 08:45:59,302 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate417] 08:45:59,303 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:59,303 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:59,303 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:59,304 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:59,304 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:59,304 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:45:59,304 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 08:45:59,304 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:59,304 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:59,304 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:59,304 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:59,304 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 08:45:59,304 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:59,304 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:59,304 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:59,304 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:59,304 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:59,304 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 08:45:59,304 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 08:45:59,304 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:59,304 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:45:59,304 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 08:45:59,304 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:59,304 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 08:45:59,304 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior418#807055559] 08:45:59,315 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate419] 08:45:59,317 AM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 08:45:59,317 AM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 08:45:59,317 AM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 08:45:59,317 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior420#-2101403072] 08:45:59,328 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate421] 08:45:59,329 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:59,329 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:59,329 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 08:45:59,329 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:59,329 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 08:45:59,329 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior422#861794844] 08:45:59,340 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate423] 08:45:59,341 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:45:59,341 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:45:59,341 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 08:45:59,341 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 08:45:59,341 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:59,341 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 08:45:59,342 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior424#-707196622] 08:45:59,353 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate425] [INFO] [07/14/2025 08:45:59.353] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 08:45:59,354 AM [test-akka.actor.default-dispatcher-5] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [07/14/2025 08:45:59.354] [test-akka.actor.default-dispatcher-5] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.171.51:25520) [INFO] [akkaDeadLetter][07/14/2025 08:45:59.354] [test-akka.actor.default-dispatcher-6] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-1711194529] 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:59,355 AM [test-akka.actor.default-dispatcher-5] [INFO] LocalActorRef - akkaDeadLetter Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-1711194529] 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:59.355] [test-akka.actor.internal-dispatcher-8] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.51:25520] - Exiting completed [INFO] [07/14/2025 08:45:59.355] [test-akka.actor.internal-dispatcher-8] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.51:25520] - Shutting down... [INFO] [07/14/2025 08:45:59.356] [test-akka.actor.internal-dispatcher-8] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.51:25520] - Successfully shut down 08:45:59,356 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.51:25520] - Exiting completed 08:45:59,356 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.51:25520] - Shutting down... 08:45:59,356 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.51:25520] - Successfully shut down [INFO] [07/14/2025 08:45:59.357] [test-akka.remote.default-remote-dispatcher-10] [akka://test@10.30.171.51:25520/system/remoting-terminator] Shutting down remote daemon. 08:45:59,358 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [07/14/2025 08:45:59.358] [test-akka.remote.default-remote-dispatcher-10] [akka://test@10.30.171.51:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 08:45:59,358 AM [test-akka.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. 08:45:59,360 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [07/14/2025 08:45:59.360] [test-akka.remote.default-remote-dispatcher-10] [akka://test@10.30.171.51:25520/system/remoting-terminator] Remoting shut down. [DEBUG] [07/14/2025 08:45:59.361] [test-akka.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger