[DEBUG] [06/27/2025 14:31:53.270] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 02:31:53,274 PM [test-pekko.actor.default-dispatcher-7] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [06/27/2025 14:31:53.274] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [06/27/2025 14:31:53.274] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [06/27/2025 14:31:53.289] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.8:17355] with UID [-879543870582000762] [INFO] [06/27/2025 14:31:53.290] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.8:17355] - Starting up, Pekko version [1.0.3] ... 02:31:53,291 PM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.8:17355] with UID [-879543870582000762] 02:31:53,291 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.8:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [06/27/2025 14:31:53.291] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.8:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [06/27/2025 14:31:53.291] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.8:17355] - Started up successfully 02:31:53,292 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.8:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 02:31:53,292 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.8:17355] - Started up successfully [INFO] [06/27/2025 14:31:53.298] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.8:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [06/27/2025 14:31:53.298] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.8:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 02:31:53,298 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.8:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 02:31:53,298 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.8:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 02:31:53,303 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:31:53,304 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 02:31:53,304 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 02:31:53,304 PM [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 02:31:53,304 PM [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 02:31:53,304 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:31:53,304 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 02:31:53,304 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior355#254930628] 02:31:53,305 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate356] 02:31:53,305 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer357#853736668] 02:31:53,307 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:31:53,307 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 02:31:53,307 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 02:31:53,307 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 02:31:53,307 PM [main] [DEBUG] Candidate - candidate (Candidate): Received ElectionTimeout 02:31:53,307 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 3 02:31:53,307 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 02:31:53,307 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior358#1358885149] 02:31:53,308 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate359] 02:31:53,308 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer360#-675503534] 02:31:53,309 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:31:53,309 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 02:31:53,309 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 1001 02:31:53,310 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999}, my term is 1001 02:31:53,310 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): In requestVote: RequestVote{term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 02:31:53,310 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1001, voteGranted=false} 02:31:53,310 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior361#-1744644070] 02:31:53,310 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate362] 02:31:53,310 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer363#1545738880] 02:31:53,312 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:31:53,312 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 02:31:53,312 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 02:31:53,312 PM [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 02:31:53,312 PM [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==[]} 02:31:53,312 PM [main] [INFO] Candidate - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 02:31:53,312 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:31:53,312 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 02:31:53,312 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior364#-1119742167] 02:31:53,313 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate365] 02:31:53,313 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer366#1636198343] 02:31:53,314 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:31:53,314 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to -1 02:31:53,315 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 02:31:53,315 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 02:31:53,315 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 02:31:53,315 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer2 02:31:53,315 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 2 02:31:53,315 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 02:31:53,315 PM [main] [INFO] Candidate - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 02:31:53,315 PM [main] [DEBUG] AbstractLeader - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 02:31:53,315 PM [main] [DEBUG] AbstractLeader - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:31:53,315 PM [main] [DEBUG] AbstractLeader - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:31:53,315 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:31:53,315 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 02:31:53,315 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior367#-2107932732] 02:31:53,315 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate368] 02:31:53,315 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer369#1620435628] 02:31:53,316 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer370#1112420699] 02:31:53,317 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:31:53,317 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 02:31:53,317 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 02:31:53,317 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0}, my term is 2 02:31:53,317 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0} - currentTerm: 2, votedFor: candidate, lastIndex: 1, lastTerm: 1 02:31:53,317 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=2, voteGranted=false} 02:31:53,317 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior371#-221545040] 02:31:53,317 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate372] 02:31:53,317 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer373#-521856873] 02:31:53,319 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:31:53,319 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 02:31:53,319 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 3 02:31:53,319 PM [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 02:31:53,320 PM [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]]} 02:31:53,320 PM [main] [INFO] Candidate - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 02:31:53,320 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:31:53,320 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 02:31:53,320 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior374#-1494642175] 02:31:53,320 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate375] 02:31:53,322 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:31:53,322 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 02:31:53,322 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 1001 02:31:53,322 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999}, my term is 1001 02:31:53,323 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): In requestVote: RequestVote{term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 02:31:53,323 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1001, voteGranted=true} 02:31:53,323 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior376#-1897909601] 02:31:53,323 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate377] 02:31:53,323 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer378#1759195518] 02:31:53,324 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:31:53,324 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 02:31:53,324 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 02:31:53,324 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior379#2113391987] 02:31:53,325 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate380] 02:31:53,326 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:31:53,327 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 02:31:53,327 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 02:31:53,327 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1} to peer peer3 02:31:53,327 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1} to peer peer2 02:31:53,729 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=false}, my term is 2 02:31:53,729 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=false}, current voteCount: 1 02:31:53,729 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 2 02:31:53,729 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 02:31:53,730 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 02:31:53,730 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:31:53,730 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:31:53,730 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:31:53,730 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:31:53,730 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:31:53,730 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 02:31:53,730 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior381#157271378] 02:31:53,731 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate382] 02:31:53,732 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer383#-369093809] 02:31:53,732 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer384#1121618644] 02:31:53,732 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer385#489478835] 02:31:53,732 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer386#-2030487185] 02:31:53,736 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:31:53,736 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 4 02:31:53,737 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 02:31:53,737 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 3 02:31:53,737 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer1 02:31:53,737 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer3 02:31:53,737 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer2 02:31:53,738 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer4 02:31:53,738 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=false}, my term is 3 02:31:53,738 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=false}, current voteCount: 1 02:31:53,738 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 3 02:31:53,738 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 02:31:53,738 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 3 02:31:53,738 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 2 02:31:53,738 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 02:31:53,738 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:31:53,738 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:31:53,738 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:31:53,738 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:31:53,738 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:31:53,738 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 02:31:53,738 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior387#-1377786505] 02:31:53,739 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate388] 02:31:53,739 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer389#-636649018] 02:31:53,739 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer390#-259121664] 02:31:53,739 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer391#191498802] 02:31:53,739 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer392#-2110213236] 02:31:53,741 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:31:53,741 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 02:31:53,741 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 02:31:53,741 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior393#1862832231] 02:31:53,742 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate394] 02:31:53,743 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:31:53,743 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 02:31:53,743 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 02:31:53,743 PM [main] [DEBUG] Candidate - candidate (Candidate): Received ElectionTimeout 02:31:53,743 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Election: Leader has following peers: [] 02:31:53,743 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:31:53,743 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 02:31:53,743 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior395#-1350526787] 02:31:53,744 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate396] 02:31:53,745 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:31:53,745 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 02:31:53,745 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 02:31:53,745 PM [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 02:31:53,745 PM [main] [INFO] RaftActorBehavior - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 02:31:53,745 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior397#2007683917] 02:31:53,746 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate398] 02:31:53,746 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer399#-1802161797] 02:31:53,747 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:31:53,747 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 1 02:31:53,748 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 02:31:53,748 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 02:31:53,748 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 02:31:53,748 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer2 02:31:53,748 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 2 02:31:53,748 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 02:31:53,748 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 02:31:53,748 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:31:53,748 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:31:53,748 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:31:53,748 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 02:31:53,748 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior400#-2143940571] 02:31:53,750 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate401] 02:31:53,750 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer402#1672480974] 02:31:53,750 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer403#-623043704] 02:31:53,752 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:31:53,752 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 02:31:53,752 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 02:31:53,752 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior404#1656627539] 02:31:53,753 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate405] 02:31:53,755 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:31:53,755 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 02:31:53,755 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 02:31:53,755 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999}, my term is 1 02:31:53,755 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 02:31:53,755 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 02:31:53,755 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior406#-966958612] 02:31:53,756 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate407] 02:31:53,758 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:31:53,758 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 02:31:53,758 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 02:31:53,758 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1}, my term is 1 02:31:53,758 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 02:31:53,758 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 02:31:53,759 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior408#1299008308] 02:31:53,759 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate409] 02:31:53,762 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:31:53,762 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 02:31:53,762 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 02:31:53,762 PM [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 02:31:53,762 PM [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 02:31:53,762 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:31:53,762 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 02:31:53,762 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 02:31:53,762 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 02:31:53,762 PM [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 02:31:53,762 PM [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 02:31:53,762 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 02:31:53,762 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 02:31:53,762 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 02:31:53,762 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}, my term is 2 02:31:53,762 PM [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 02:31:53,762 PM [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 02:31:53,762 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 02:31:53,762 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 02:31:53,763 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 02:31:53,763 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 02:31:53,763 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=100, voteGranted=false}, my term is 2 02:31:53,763 PM [main] [INFO] Candidate - candidate (Candidate): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than Candidate's term 2 - switching to Follower 02:31:53,763 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 02:31:53,763 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior410#-1443490363] 02:31:53,774 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate411] 02:31:53,776 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:31:53,776 PM [main] [DEBUG] Candidate - test (Candidate): Election: Candidate has following voting peers: [] 02:31:53,776 PM [main] [INFO] Candidate - test (Candidate): Starting new election term 2 02:31:53,776 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior412#-1313219091] 02:31:53,787 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate413] 02:31:53,789 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:31:53,789 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 02:31:53,789 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 1001 02:31:53,789 PM [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 02:31:53,789 PM [main] [INFO] RaftActorBehavior - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 02:31:53,789 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior414#1350406311] 02:31:53,800 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate415] 02:31:53,802 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:31:53,802 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 02:31:53,802 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 1001 02:31:53,802 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999}, my term is 1001 02:31:53,802 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 02:31:53,802 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1001, voteGranted=false} 02:31:53,802 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior416#-1626974400] 02:31:53,813 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate417] [INFO] [06/27/2025 14:31:53.813] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 02:31:53,813 PM [test-pekko.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [06/27/2025 14:31:53.814] [test-pekko.actor.default-dispatcher-6] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.8:17355) 02:31:53,815 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.8:17355] - Exiting completed 02:31:53,815 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.8:17355] - Shutting down... 02:31:53,815 PM [test-pekko.actor.default-dispatcher-6] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#882633251] 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'. 02:31:53,815 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.8:17355] - Successfully shut down [INFO] [06/27/2025 14:31:53.815] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.8:17355] - Exiting completed [INFO] [06/27/2025 14:31:53.815] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.8:17355] - Shutting down... [INFO] [pekkoDeadLetter][06/27/2025 14:31:53.814] [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#882633251] 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] [06/27/2025 14:31:53.815] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.8:17355] - Successfully shut down [INFO] [06/27/2025 14:31:53.816] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.8:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [06/27/2025 14:31:53.816] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.8:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 02:31:53,816 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 02:31:53,816 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. 02:31:53,818 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [06/27/2025 14:31:53.818] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.8:17355/system/remoting-terminator] Remoting shut down. [DEBUG] [06/27/2025 14:31:53.818] [test-pekko.actor.internal-dispatcher-5] [EventStream] shutting down: StandardOutLogger