[DEBUG] [09/02/2025 21:13:29.965] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 09:13:29,965 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [09/02/2025 21:13:29.965] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [09/02/2025 21:13:29.965] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [09/02/2025 21:13:30.046] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.48:17355] with UID [273552201603010014] [INFO] [09/02/2025 21:13:30.047] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.48:17355] - Starting up, Pekko version [1.1.5] ... 09:13:30,49 PM [test-pekko.actor.default-dispatcher-7] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.48:17355] with UID [273552201603010014] 09:13:30,49 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.48:17355] - Starting up, Pekko version [1.1.5] ... [INFO] [09/02/2025 21:13:30.049] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.48:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [09/02/2025 21:13:30.050] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.48:17355] - Started up successfully 09:13:30,50 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.48:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 09:13:30,50 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.48:17355] - Started up successfully 09:13:30,52 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.48:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 09:13:30,52 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.48:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [09/02/2025 21:13:30.052] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.48:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [09/02/2025 21:13:30.052] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.48:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 09:13:30,68 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:30,68 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:13:30,68 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:13:30,68 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999}, my term is 1 09:13:30,68 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 09:13:30,68 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 09:13:30,68 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior361#2125409227] 09:13:30,79 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate362] 09:13:30,84 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:30,84 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:13:30,84 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:13:30,84 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1}, my term is 1 09:13:30,84 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 09:13:30,84 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 09:13:30,84 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior363#129150695] 09:13:30,98 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate364] 09:13:30,104 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:30,104 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:13:30,104 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:13:30,104 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 09:13:30,104 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 09:13:30,104 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:13:30,104 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 09:13:30,104 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:13:30,104 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:13:30,104 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 09:13:30,104 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 09:13:30,104 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 09:13:30,104 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:13:30,104 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:13:30,104 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}, my term is 2 09:13:30,104 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 09:13:30,104 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 09:13:30,104 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 09:13:30,104 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 09:13:30,104 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:13:30,104 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:13:30,104 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=100, voteGranted=false}, my term is 2 09:13:30,104 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 09:13:30,104 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 09:13:30,105 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior365#-1821810539] 09:13:30,116 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate366] 09:13:30,121 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:30,121 PM [main] [DEBUG] Candidate - test (Candidate): Election: Candidate has following voting peers: [] 09:13:30,121 PM [main] [INFO] Candidate - test (Candidate): Starting new election term 2 09:13:30,121 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior367#32041251] 09:13:30,122 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate368] 09:13:30,124 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:30,124 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:13:30,125 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 1001 09:13:30,125 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 09:13:30,125 PM [main] [INFO] RaftActorBehavior - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 09:13:30,125 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior369#1955121323] 09:13:30,125 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate370] 09:13:30,128 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:30,128 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:13:30,128 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 1001 09:13:30,128 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999}, my term is 1001 09:13:30,128 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 09:13:30,128 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1001, voteGranted=false} 09:13:30,128 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior371#-617301463] 09:13:30,129 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate372] 09:13:30,131 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:30,131 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:13:30,131 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:13:30,132 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 09:13:30,132 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 09:13:30,132 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:13:30,132 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 09:13:30,132 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior373#-2112269342] 09:13:30,132 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate374] 09:13:30,133 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer375#503328270] 09:13:30,135 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:30,135 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 09:13:30,135 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:13:30,135 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 09:13:30,136 PM [main] [DEBUG] Candidate - candidate (Candidate): Received ElectionTimeout 09:13:30,136 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 3 09:13:30,136 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 09:13:30,136 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior376#-1006736751] 09:13:30,136 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate377] 09:13:30,136 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer378#240934485] 09:13:30,138 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:30,138 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:13:30,138 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 1001 09:13:30,138 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999}, my term is 1001 09:13:30,138 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 09:13:30,138 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1001, voteGranted=false} 09:13:30,139 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior379#-73209594] 09:13:30,139 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate380] 09:13:30,139 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer381#54463750] 09:13:30,141 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:30,141 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:13:30,141 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:13:30,141 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 09:13:30,141 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==[]} 09:13:30,141 PM [main] [INFO] Candidate - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 09:13:30,141 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:13:30,141 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 09:13:30,142 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior382#1805381933] 09:13:30,142 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate383] 09:13:30,142 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer384#1083036022] 09:13:30,144 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:30,144 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to -1 09:13:30,144 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 09:13:30,144 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:13:30,144 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 09:13:30,144 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer2 09:13:30,144 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 2 09:13:30,144 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 09:13:30,144 PM [main] [INFO] Candidate - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 09:13:30,145 PM [main] [DEBUG] AbstractLeader - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 09:13:30,145 PM [main] [DEBUG] AbstractLeader - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 09:13:30,145 PM [main] [DEBUG] AbstractLeader - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 09:13:30,145 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:13:30,145 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 09:13:30,145 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior385#1672086068] 09:13:30,145 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate386] 09:13:30,145 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer387#-699632472] 09:13:30,145 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer388#1221256631] 09:13:30,147 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:30,147 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:13:30,147 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:13:30,147 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0}, my term is 2 09:13:30,147 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 09:13:30,147 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=2, voteGranted=false} 09:13:30,148 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior389#-1790652086] 09:13:30,148 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate390] 09:13:30,148 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer391#973907671] 09:13:30,150 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:30,150 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:13:30,150 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 3 09:13:30,150 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 09:13:30,151 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]]} 09:13:30,151 PM [main] [INFO] Candidate - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 09:13:30,151 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:13:30,151 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 09:13:30,151 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior392#-1424030121] 09:13:30,151 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate393] 09:13:30,153 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:30,153 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:13:30,153 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 1001 09:13:30,154 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999}, my term is 1001 09:13:30,154 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 09:13:30,154 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1001, voteGranted=true} 09:13:30,154 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior394#-791662151] 09:13:30,155 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate395] 09:13:30,155 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer396#-645276223] 09:13:30,157 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:30,157 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:13:30,157 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:13:30,157 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior397#-2109082766] 09:13:30,157 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate398] 09:13:30,159 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:30,160 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 09:13:30,160 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:13:30,160 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1} to peer peer3 09:13:30,160 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1} to peer peer2 09:13:30,562 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=false}, my term is 2 09:13:30,562 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=false}, current voteCount: 1 09:13:30,562 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 2 09:13:30,562 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 09:13:30,563 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 09:13:30,563 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 09:13:30,563 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 09:13:30,563 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 09:13:30,563 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 09:13:30,563 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:13:30,563 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 09:13:30,563 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior399#1563417862] 09:13:30,565 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate400] 09:13:30,565 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer401#1454451703] 09:13:30,565 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer402#486016255] 09:13:30,565 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer403#-505325377] 09:13:30,566 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer404#203000874] 09:13:30,570 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:30,570 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 4 09:13:30,572 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 09:13:30,572 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 3 09:13:30,572 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer1 09:13:30,572 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer3 09:13:30,572 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer2 09:13:30,572 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer4 09:13:30,572 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=false}, my term is 3 09:13:30,572 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=false}, current voteCount: 1 09:13:30,572 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 3 09:13:30,572 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 09:13:30,572 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 3 09:13:30,572 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 2 09:13:30,572 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 09:13:30,572 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 09:13:30,572 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 09:13:30,572 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 09:13:30,572 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 09:13:30,572 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:13:30,572 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 09:13:30,573 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior405#-330098277] 09:13:30,573 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate406] 09:13:30,573 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer407#1213697058] 09:13:30,573 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer408#1716887686] 09:13:30,574 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer409#-23691590] 09:13:30,574 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer410#-1310531351] 09:13:30,576 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:30,576 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:13:30,576 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:13:30,577 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior411#-1040439028] 09:13:30,577 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate412] 09:13:30,580 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:30,580 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:13:30,580 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:13:30,580 PM [main] [DEBUG] Candidate - candidate (Candidate): Received ElectionTimeout 09:13:30,580 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Election: Leader has following peers: [] 09:13:30,580 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:13:30,580 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 09:13:30,580 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior413#-1625616214] 09:13:30,581 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate414] 09:13:30,583 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:30,583 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:13:30,583 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:13:30,583 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 09:13:30,583 PM [main] [INFO] RaftActorBehavior - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 09:13:30,583 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior415#1991526773] 09:13:30,584 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate416] 09:13:30,584 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer417#12860622] 09:13:30,586 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:30,586 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 1 09:13:30,587 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 09:13:30,587 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:13:30,587 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 09:13:30,587 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer2 09:13:30,587 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 2 09:13:30,587 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 09:13:30,587 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 09:13:30,587 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 09:13:30,587 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 09:13:30,587 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:13:30,587 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 09:13:30,587 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior418#254834193] 09:13:30,588 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate419] 09:13:30,588 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer420#383004970] 09:13:30,588 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer421#69570431] 09:13:30,590 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:30,590 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:13:30,590 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:13:30,590 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior422#1963905111] 09:13:30,590 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate423] [INFO] [09/02/2025 21:13:30.591] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 09:13:30,592 PM [test-pekko.actor.default-dispatcher-5] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [09/02/2025 21:13:30.592] [test-pekko.actor.default-dispatcher-5] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.48:17355) [INFO] [pekkoDeadLetter][09/02/2025 21:13:30.592] [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#-2061442654] 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'. 09:13:30,593 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#-2061442654] 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] [09/02/2025 21:13:30.593] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.48:17355] - Exiting completed 09:13:30,593 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.48:17355] - Exiting completed 09:13:30,593 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.48:17355] - Shutting down... [INFO] [09/02/2025 21:13:30.593] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.48:17355] - Shutting down... 09:13:30,594 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.48:17355] - Successfully shut down [INFO] [09/02/2025 21:13:30.593] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.48:17355] - Successfully shut down [INFO] [09/02/2025 21:13:30.595] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.48:17355/system/remoting-terminator] Shutting down remote daemon. 09:13:30,595 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [09/02/2025 21:13:30.595] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.48:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 09:13:30,595 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [09/02/2025 21:13:30.597] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.48:17355/system/remoting-terminator] Remoting shut down. 09:13:30,597 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [09/02/2025 21:13:30.597] [test-pekko.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger