[DEBUG] [07/02/2025 11:01:52.689] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 11:01:52,691 AM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [07/02/2025 11:01:52.691] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [07/02/2025 11:01:52.692] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [07/02/2025 11:01:52.708] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.118:17355] with UID [5237711922828519965] 11:01:52,710 AM [test-pekko.actor.default-dispatcher-9] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.118:17355] with UID [5237711922828519965] [INFO] [07/02/2025 11:01:52.711] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.118:17355] - Starting up, Pekko version [1.0.3] ... 11:01:52,711 AM [test-pekko.actor.default-dispatcher-9] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.118:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [07/02/2025 11:01:52.713] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.118:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 11:01:52,713 AM [test-pekko.actor.default-dispatcher-9] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.118:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [07/02/2025 11:01:52.713] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.118:17355] - Started up successfully 11:01:52,713 AM [test-pekko.actor.default-dispatcher-9] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.118:17355] - Started up successfully [INFO] [07/02/2025 11:01:52.717] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.118:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [07/02/2025 11:01:52.717] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.118:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 11:01:52,717 AM [test-pekko.actor.default-dispatcher-9] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.118:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 11:01:52,717 AM [test-pekko.actor.default-dispatcher-9] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.118:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 11:01:52,728 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:01:52,728 AM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:52,728 AM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 11:01:52,729 AM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received AppendEntries{term=5, leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}, my term is 2 11:01:52,729 AM [main] [INFO] Candidate - candidate (Candidate): Term 5 in "AppendEntries{term=5, leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than Candidate's term 2 - switching to Follower 11:01:52,730 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:01:52,730 AM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 11:01:52,730 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior356#1849733518] 11:01:52,741 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate357] 11:01:52,741 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer358#-1016810162] 11:01:52,745 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:01:52,746 AM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 11:01:52,746 AM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 11:01:52,746 AM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 11:01:52,746 AM [main] [DEBUG] Candidate - candidate (Candidate): Received ElectionTimeout 11:01:52,746 AM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 3 11:01:52,746 AM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 11:01:52,746 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior359#1806705195] 11:01:52,747 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate360] 11:01:52,748 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer361#601720126] 11:01:52,750 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:01:52,750 AM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:52,750 AM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 1001 11:01:52,750 AM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999}, my term is 1001 11:01:52,750 AM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): In requestVote: RequestVote{term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 11:01:52,750 AM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1001, voteGranted=false} 11:01:52,751 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior362#-581681109] 11:01:52,751 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate363] 11:01:52,751 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer364#1945148816] 11:01:52,753 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:01:52,753 AM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:52,753 AM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 11:01:52,754 AM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received AppendEntries{term=2, leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}, my term is 2 11:01:52,754 AM [main] [DEBUG] Candidate - candidate (Candidate): handleAppendEntries: AppendEntries{term=2, leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]} 11:01:52,754 AM [main] [INFO] Candidate - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 11:01:52,754 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:01:52,754 AM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 11:01:52,754 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior365#188767156] 11:01:52,755 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate366] 11:01:52,755 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer367#-46729775] 11:01:52,757 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:01:52,757 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to -1 11:01:52,757 AM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 11:01:52,757 AM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 11:01:52,757 AM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 11:01:52,757 AM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer2 11:01:52,757 AM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 2 11:01:52,757 AM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 11:01:52,757 AM [main] [INFO] Candidate - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 11:01:52,757 AM [main] [DEBUG] AbstractLeader - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 11:01:52,757 AM [main] [DEBUG] AbstractLeader - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:01:52,758 AM [main] [DEBUG] AbstractLeader - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:01:52,758 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:01:52,758 AM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 11:01:52,758 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior368#1840018666] 11:01:52,758 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate369] 11:01:52,758 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer370#2091243029] 11:01:52,758 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer371#-1895128666] 11:01:52,760 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:01:52,760 AM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:52,760 AM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 11:01:52,760 AM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0}, my term is 2 11:01:52,760 AM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0} - currentTerm: 2, votedFor: candidate, lastIndex: 1, lastTerm: 1 11:01:52,760 AM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=2, voteGranted=false} 11:01:52,760 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior372#608065671] 11:01:52,761 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate373] 11:01:52,761 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer374#-1871699748] 11:01:52,762 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:01:52,762 AM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:52,762 AM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 3 11:01:52,762 AM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]}, my term is 2 11:01:52,765 AM [main] [DEBUG] Candidate - candidate (Candidate): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 11:01:52,765 AM [main] [INFO] Candidate - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 11:01:52,765 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:01:52,765 AM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 11:01:52,765 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior375#-2117904811] 11:01:52,766 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate376] 11:01:52,769 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:01:52,769 AM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:52,769 AM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 1001 11:01:52,769 AM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999}, my term is 1001 11:01:52,769 AM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): In requestVote: RequestVote{term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 11:01:52,769 AM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1001, voteGranted=true} 11:01:52,770 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior377#-1139664128] 11:01:52,770 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate378] 11:01:52,770 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer379#-1906384657] 11:01:52,772 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:01:52,772 AM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:52,772 AM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 11:01:52,772 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior380#686351759] 11:01:52,774 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate381] 11:01:52,776 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:01:52,777 AM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 11:01:52,777 AM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 11:01:52,777 AM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1} to peer peer3 11:01:52,777 AM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1} to peer peer2 11:01:53,179 AM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=false}, my term is 2 11:01:53,180 AM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=false}, current voteCount: 1 11:01:53,180 AM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 2 11:01:53,180 AM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 11:01:53,180 AM [main] [DEBUG] AbstractLeader - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 11:01:53,180 AM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:01:53,180 AM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:01:53,180 AM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:01:53,180 AM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:01:53,180 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:01:53,180 AM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:01:53,181 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior382#563335703] 11:01:53,192 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate383] 11:01:53,192 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer384#-2027952718] 11:01:53,192 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer385#-1821409177] 11:01:53,192 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer386#-841477463] 11:01:53,193 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer387#-237436909] 11:01:53,197 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:01:53,197 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 4 11:01:53,198 AM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 11:01:53,198 AM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 3 11:01:53,198 AM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer1 11:01:53,198 AM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer3 11:01:53,198 AM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer2 11:01:53,198 AM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer4 11:01:53,199 AM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=false}, my term is 3 11:01:53,199 AM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=false}, current voteCount: 1 11:01:53,199 AM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 3 11:01:53,199 AM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 11:01:53,199 AM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 3 11:01:53,199 AM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 2 11:01:53,199 AM [main] [DEBUG] AbstractLeader - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 11:01:53,199 AM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:01:53,199 AM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:01:53,199 AM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:01:53,199 AM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:01:53,199 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:01:53,199 AM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 11:01:53,199 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior388#-1837423258] 11:01:53,200 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate389] 11:01:53,200 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer390#1465011405] 11:01:53,200 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer391#1884654295] 11:01:53,201 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer392#-502096510] 11:01:53,201 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer393#792840834] 11:01:53,204 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:01:53,204 AM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:53,204 AM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 11:01:53,204 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior394#-1597363188] 11:01:53,205 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate395] 11:01:53,207 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:01:53,207 AM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:53,207 AM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 11:01:53,207 AM [main] [DEBUG] Candidate - candidate (Candidate): Received ElectionTimeout 11:01:53,207 AM [main] [DEBUG] AbstractLeader - candidate (Leader): Election: Leader has following peers: [] 11:01:53,207 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:01:53,207 AM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:01:53,207 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior396#1009463982] 11:01:53,208 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate397] 11:01:53,209 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:01:53,210 AM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:53,210 AM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 11:01:53,210 AM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received AppendEntries{term=1, leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}, my term is 2 11:01:53,210 AM [main] [INFO] RaftActorBehavior - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 11:01:53,210 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior398#1708317546] 11:01:53,211 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate399] 11:01:53,211 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer400#-121324543] 11:01:53,213 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:01:53,213 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 1 11:01:53,214 AM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 11:01:53,214 AM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 11:01:53,214 AM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 11:01:53,214 AM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer2 11:01:53,214 AM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 2 11:01:53,214 AM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 11:01:53,214 AM [main] [DEBUG] AbstractLeader - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 11:01:53,214 AM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:01:53,214 AM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:01:53,214 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:01:53,214 AM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:01:53,214 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior401#-905103037] 11:01:53,215 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate402] 11:01:53,215 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer403#180441187] 11:01:53,215 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer404#1284888363] 11:01:53,216 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:01:53,216 AM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:53,216 AM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 11:01:53,216 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior405#-1817988656] 11:01:53,217 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate406] 11:01:53,218 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:01:53,218 AM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:53,218 AM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 11:01:53,218 AM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999}, my term is 1 11:01:53,218 AM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 11:01:53,218 AM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 11:01:53,218 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior407#-1506881128] 11:01:53,219 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate408] 11:01:53,220 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:01:53,220 AM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:53,220 AM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 11:01:53,220 AM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1}, my term is 1 11:01:53,220 AM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 11:01:53,220 AM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 11:01:53,220 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior409#-447132377] 11:01:53,221 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate410] 11:01:53,222 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:01:53,222 AM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:53,222 AM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 11:01:53,222 AM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}, my term is 2 11:01:53,222 AM [main] [INFO] Candidate - candidate (Candidate): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than Candidate's term 2 - switching to Follower 11:01:53,222 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:01:53,222 AM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 11:01:53,222 AM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:53,222 AM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 11:01:53,222 AM [main] [DEBUG] Candidate - 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:01:53,222 AM [main] [INFO] Candidate - 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:01:53,223 AM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 11:01:53,223 AM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:53,223 AM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 11:01:53,223 AM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}, my term is 2 11:01:53,223 AM [main] [INFO] Candidate - 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:01:53,223 AM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 11:01:53,223 AM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 11:01:53,223 AM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 11:01:53,223 AM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:53,223 AM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 11:01:53,223 AM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=100, voteGranted=false}, my term is 2 11:01:53,223 AM [main] [INFO] Candidate - candidate (Candidate): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than Candidate's term 2 - switching to Follower 11:01:53,223 AM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 11:01:53,223 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior411#436375025] 11:01:53,223 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate412] 11:01:53,225 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:01:53,225 AM [main] [DEBUG] Candidate - test (Candidate): Election: Candidate has following voting peers: [] 11:01:53,225 AM [main] [INFO] Candidate - test (Candidate): Starting new election term 2 11:01:53,225 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior413#1379394453] 11:01:53,226 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate414] 11:01:53,227 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:01:53,227 AM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:53,227 AM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 1001 11:01:53,227 AM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=4, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}, my term is 1001 11:01:53,227 AM [main] [INFO] RaftActorBehavior - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 11:01:53,227 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior415#-1414626632] 11:01:53,228 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate416] 11:01:53,230 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:01:53,230 AM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 11:01:53,230 AM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 1001 11:01:53,230 AM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999}, my term is 1001 11:01:53,230 AM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 11:01:53,230 AM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1001, voteGranted=false} 11:01:53,230 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior417#281934602] 11:01:53,230 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate418] [INFO] [07/02/2025 11:01:53.231] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 11:01:53,231 AM [test-pekko.actor.default-dispatcher-9] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [07/02/2025 11:01:53.232] [test-pekko.actor.default-dispatcher-6] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.118:17355) [INFO] [pekkoDeadLetter][07/02/2025 11:01:53.232] [test-pekko.actor.default-dispatcher-6] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-93912510] was unhandled. [1] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [07/02/2025 11:01:53.232] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.118:17355] - Exiting completed 11:01:53,232 AM [test-pekko.actor.default-dispatcher-7] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-93912510] was unhandled. [1] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:01:53,232 AM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.118:17355] - Exiting completed 11:01:53,233 AM [test-pekko.actor.default-dispatcher-9] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.118:17355] - Shutting down... [INFO] [07/02/2025 11:01:53.232] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.118:17355] - Shutting down... [INFO] [07/02/2025 11:01:53.233] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.118:17355] - Successfully shut down 11:01:53,233 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.118:17355] - Successfully shut down [INFO] [07/02/2025 11:01:53.235] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.171.118:17355/system/remoting-terminator] Shutting down remote daemon. 11:01:53,235 AM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 11:01:53,235 AM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [07/02/2025 11:01:53.235] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.171.118:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [07/02/2025 11:01:53.237] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.118:17355/system/remoting-terminator] Remoting shut down. 11:01:53,237 AM [test-pekko.actor.default-dispatcher-9] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [07/02/2025 11:01:53.237] [test-pekko.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger