[DEBUG] [07/09/2025 11:13:50.029] [main] [EventStream(akka://test)] logger log1-TestEventListener started 11:13:50,29 AM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [07/09/2025 11:13:50.030] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [07/09/2025 11:13:50.030] [main] [EventStream(akka://test)] Default Loggers started [INFO] [07/09/2025 11:13:50.048] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.166:25520] with UID [-9210109668256747192] 11:13:50,48 AM [test-akka.actor.default-dispatcher-7] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.166:25520] with UID [-9210109668256747192] [INFO] [07/09/2025 11:13:50.049] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.166:25520] - Starting up, Akka version [2.6.21] ... 11:13:50,49 AM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.170.166:25520] - Starting up, Akka version [2.6.21] ... [INFO] [07/09/2025 11:13:50.052] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.166:25520] - Registered cluster JMX MBean [akka:type=Cluster] 11:13:50,52 AM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.170.166:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [07/09/2025 11:13:50.052] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.166:25520] - Started up successfully 11:13:50,52 AM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.170.166:25520] - Started up successfully [INFO] [07/09/2025 11:13:50.059] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.166:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [07/09/2025 11:13:50.059] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.166:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 11:13:50,60 AM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.170.166:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 11:13:50,60 AM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.170.166:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 11:13:50,68 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:13:50,68 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:13:50,68 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:13:50,68 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 11:13:50,68 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 5 in "AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than Candidate's term 2 - switching to Follower 11:13:50,68 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:13:50,69 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 11:13:50,69 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior363#-897012722] 11:13:50,70 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate364] 11:13:50,70 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer365#-1154484926] 11:13:50,71 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:13:50,72 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 11:13:50,72 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:13:50,72 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 11:13:50,72 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 11:13:50,72 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 11:13:50,72 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 11:13:50,72 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior366#1227402668] 11:13:50,72 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate367] 11:13:50,73 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer368#-71341013] 11:13:50,74 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:13:50,74 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:13:50,74 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 11:13:50,74 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 11:13:50,74 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 11:13:50,74 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 11:13:50,74 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior369#-1393355121] 11:13:50,75 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate370] 11:13:50,75 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer371#-542246210] 11:13:50,76 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:13:50,76 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:13:50,76 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:13:50,77 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 11:13:50,77 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleAppendEntries: AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] 11:13:50,77 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 11:13:50,77 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:13:50,77 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 11:13:50,77 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior372#-1883856651] 11:13:50,78 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate373] 11:13:50,78 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer374#-2045167419] 11:13:50,79 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:13:50,79 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 11:13:50,79 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 11:13:50,79 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:13:50,79 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 11:13:50,79 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 11:13:50,79 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 11:13:50,79 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 11:13:50,79 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 11:13:50,80 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 11:13:50,80 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:13:50,80 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:13:50,80 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:13:50,80 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 11:13:50,80 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior375#-1149063191] 11:13:50,80 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate376] 11:13:50,80 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer377#1685070709] 11:13:50,80 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer378#846182412] 11:13:50,81 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:13:50,81 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:13:50,81 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:13:50,82 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 11:13:50,82 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0] - currentTerm: 2, votedFor: candidate, lastIndex: 1, lastTerm: 1 11:13:50,82 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 11:13:50,82 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior379#1752170690] 11:13:50,82 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate380] 11:13:50,82 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer381#386943295] 11:13:50,83 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:13:50,83 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:13:50,83 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 11:13:50,83 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]], my term is 2 11:13:50,83 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleAppendEntries: AppendEntries [leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 11:13:50,83 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 11:13:50,84 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:13:50,84 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 11:13:50,84 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior382#-1517122902] 11:13:50,84 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate383] 11:13:50,85 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:13:50,85 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:13:50,85 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 11:13:50,85 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 11:13:50,85 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 11:13:50,85 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 11:13:50,85 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior384#758212131] 11:13:50,86 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate385] 11:13:50,86 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer386#1147661868] 11:13:50,87 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:13:50,87 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:13:50,87 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:13:50,87 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior387#1112058131] 11:13:50,87 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate388] 11:13:50,90 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 11:13:50,90 AM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 11:13:50,90 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 11:13:50,90 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 11:13:50,492 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 11:13:50,492 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 11:13:50,492 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 11:13:50,492 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 11:13:50,493 AM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 11:13:50,493 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:13:50,493 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:13:50,493 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:13:50,493 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:13:50,494 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:13:50,494 AM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 11:13:50,494 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior389#-635995744] 11:13:50,495 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate390] 11:13:50,495 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer391#560764346] 11:13:50,496 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer392#858231384] 11:13:50,496 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer393#186399666] 11:13:50,496 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer394#-270770915] 11:13:50,498 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:13:50,498 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 11:13:50,500 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 11:13:50,500 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 11:13:50,500 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 11:13:50,500 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 11:13:50,500 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 11:13:50,500 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 11:13:50,501 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 11:13:50,501 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 11:13:50,501 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 11:13:50,501 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 11:13:50,501 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 11:13:50,501 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 11:13:50,501 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 11:13:50,501 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:13:50,501 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:13:50,501 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:13:50,501 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:13:50,501 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:13:50,501 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 11:13:50,501 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior395#1885798824] 11:13:50,502 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate396] 11:13:50,502 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer397#656876754] 11:13:50,502 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer398#929853446] 11:13:50,503 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer399#2105414114] 11:13:50,503 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer400#-1383162212] 11:13:50,504 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:13:50,504 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:13:50,504 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:13:50,504 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior401#-207944681] 11:13:50,505 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate402] 11:13:50,506 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:13:50,506 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:13:50,506 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:13:50,506 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 11:13:50,506 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 11:13:50,506 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:13:50,506 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:13:50,506 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior403#-1592222018] 11:13:50,506 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate404] 11:13:50,507 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:13:50,507 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:13:50,507 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:13:50,507 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 11:13:50,507 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 11:13:50,507 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior405#-1653964585] 11:13:50,508 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate406] 11:13:50,508 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer407#888132732] 11:13:50,509 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:13:50,509 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 11:13:50,509 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 11:13:50,509 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:13:50,509 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 11:13:50,509 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 11:13:50,509 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 11:13:50,509 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 11:13:50,509 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 11:13:50,509 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:13:50,509 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:13:50,509 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:13:50,509 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:13:50,509 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior408#-1575165886] 11:13:50,510 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate409] 11:13:50,510 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer410#-302802330] 11:13:50,510 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer411#1102144343] 11:13:50,511 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:13:50,511 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:13:50,511 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:13:50,511 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior412#505760117] 11:13:50,511 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate413] 11:13:50,512 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:13:50,512 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:13:50,512 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:13:50,512 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 11:13:50,512 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 11:13:50,512 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 11:13:50,512 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior414#755135880] 11:13:50,513 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate415] 11:13:50,514 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:13:50,514 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:13:50,514 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:13:50,514 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 11:13:50,514 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1] - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 11:13:50,514 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 11:13:50,514 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior416#1069131432] 11:13:50,514 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate417] 11:13:50,515 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:13:50,515 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:13:50,515 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:13:50,515 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 11:13:50,515 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than Candidate's term 2 - switching to Follower 11:13:50,515 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:13:50,515 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 11:13:50,515 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:13:50,515 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:13:50,515 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntriesReply [term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5], my term is 2 11:13:50,515 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "AppendEntriesReply [term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5]" message is greater than Candidate's term 2 - switching to Follower 11:13:50,515 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 11:13:50,515 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:13:50,515 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:13:50,515 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 11:13:50,515 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100]" message is greater than Candidate's term 2 - switching to Follower 11:13:50,515 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100] - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 11:13:50,515 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 11:13:50,515 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 11:13:50,515 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:13:50,515 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:13:50,515 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 11:13:50,515 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "RequestVoteReply [term=100, voteGranted=false]" message is greater than Candidate's term 2 - switching to Follower 11:13:50,516 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 11:13:50,516 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior418#-505371157] 11:13:50,516 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate419] 11:13:50,517 AM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 11:13:50,517 AM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 11:13:50,517 AM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 11:13:50,517 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior420#-1076918207] 11:13:50,517 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate421] 11:13:50,518 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:13:50,518 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:13:50,518 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 11:13:50,518 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=4, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 1001 11:13:50,518 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 11:13:50,518 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior422#-790729217] 11:13:50,518 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate423] 11:13:50,519 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:13:50,519 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:13:50,519 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 11:13:50,519 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 11:13:50,519 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 11:13:50,519 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 11:13:50,519 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior424#1150444756] 11:13:50,520 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate425] [INFO] [07/09/2025 11:13:50.520] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 11:13:50,520 AM [test-akka.actor.default-dispatcher-7] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [07/09/2025 11:13:50.522] [test-akka.actor.default-dispatcher-7] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.170.166:25520) [INFO] [akkaDeadLetter][07/09/2025 11:13:50.522] [test-akka.actor.default-dispatcher-7] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-2049851332] was unhandled. [1] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 11:13:50,522 AM [test-akka.actor.default-dispatcher-7] [INFO] LocalActorRef - akkaDeadLetter Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-2049851332] 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/09/2025 11:13:50.522] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.166:25520] - Exiting completed 11:13:50,522 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.166:25520] - Exiting completed 11:13:50,522 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.166:25520] - Shutting down... [INFO] [07/09/2025 11:13:50.522] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.166:25520] - Shutting down... [INFO] [07/09/2025 11:13:50.522] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.166:25520] - Successfully shut down [INFO] [07/09/2025 11:13:50.523] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.170.166:25520/system/remoting-terminator] Shutting down remote daemon. 11:13:50,524 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.166:25520] - Successfully shut down 11:13:50,524 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [07/09/2025 11:13:50.524] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.170.166:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 11:13:50,524 AM [test-akka.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [07/09/2025 11:13:50.526] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.166:25520/system/remoting-terminator] Remoting shut down. 11:13:50,526 AM [test-akka.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [07/09/2025 11:13:50.526] [test-akka.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger