[DEBUG] [11/03/2025 16:17:48.964] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 04:17:48,965 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [11/03/2025 16:17:48.965] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [11/03/2025 16:17:48.969] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [11/03/2025 16:17:49.002] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.191:17355] with UID [4499015697100494557] 04:17:49,3 PM [test-pekko.actor.default-dispatcher-7] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.191:17355] with UID [4499015697100494557] 04:17:49,4 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.191:17355] - Starting up, Pekko version [1.2.1] ... [INFO] [11/03/2025 16:17:49.003] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.191:17355] - Starting up, Pekko version [1.2.1] ... [INFO] [11/03/2025 16:17:49.009] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.191:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 04:17:49,9 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.191:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [11/03/2025 16:17:49.009] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.191:17355] - Started up successfully 04:17:49,9 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.191:17355] - Started up successfully 04:17:49,10 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.191:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 04:17:49,10 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.191:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [11/03/2025 16:17:49.010] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.191:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [11/03/2025 16:17:49.010] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.191:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 04:17:49,30 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:49,31 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:49,31 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:17:49,31 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999}, my term is 1 04:17:49,31 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 04:17:49,31 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 04:17:49,31 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior670#-1743393444] 04:17:49,42 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate671] 04:17:49,50 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:49,50 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:49,50 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:17:49,51 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1}, my term is 1 04:17:49,51 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 04:17:49,51 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 04:17:49,51 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior672#921471105] 04:17:49,62 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate673] 04:17:49,68 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:49,68 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:49,68 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:17:49,68 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 04:17:49,69 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 04:17:49,70 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 04:17:49,70 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:49,70 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:17:49,70 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 04:17:49,70 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 04:17:49,71 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 04:17:49,71 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:49,71 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:17:49,71 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}, my term is 2 04:17:49,71 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 04:17:49,72 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 04:17:49,72 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 04:17:49,72 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 04:17:49,73 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:49,73 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:17:49,73 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=100, voteGranted=false}, my term is 2 04:17:49,73 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 04:17:49,73 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 04:17:49,73 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior674#-1503636426] 04:17:49,85 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate675] 04:17:49,94 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:49,94 PM [main] [DEBUG] Candidate - test (Candidate): Election: Candidate has following voting peers: [] 04:17:49,94 PM [main] [INFO] Candidate - test (Candidate): Starting new election term 2 04:17:49,94 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior676#1991420751] 04:17:49,105 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate677] 04:17:49,110 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:49,110 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:49,110 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 1001 04:17:49,110 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 04:17:49,110 PM [main] [INFO] RaftActorBehavior - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 04:17:49,111 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior678#-698423708] 04:17:49,124 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate679] 04:17:49,131 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:49,131 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:49,131 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 1001 04:17:49,131 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999}, my term is 1001 04:17:49,131 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 04:17:49,131 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1001, voteGranted=false} 04:17:49,131 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior680#-1995029928] 04:17:49,142 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate681] 04:17:49,148 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:49,148 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:49,148 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:17:49,150 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 04:17:49,150 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 04:17:49,151 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 04:17:49,151 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior682#-737006597] 04:17:49,152 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate683] 04:17:49,152 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer684#-1868255951] 04:17:49,156 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:49,156 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 04:17:49,156 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:17:49,156 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 04:17:49,157 PM [main] [DEBUG] Candidate - candidate (Candidate): Received ElectionTimeout 04:17:49,157 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 3 04:17:49,157 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 04:17:49,157 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior685#1766149555] 04:17:49,169 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate686] 04:17:49,169 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer687#-594904907] 04:17:49,176 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:49,176 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:49,176 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 1001 04:17:49,177 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999}, my term is 1001 04:17:49,177 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 04:17:49,177 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1001, voteGranted=false} 04:17:49,177 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior688#102975863] 04:17:49,188 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate689] 04:17:49,189 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer690#1922310947] 04:17:49,193 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:49,193 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:49,193 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:17:49,194 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 04:17:49,195 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==[]} 04:17:49,195 PM [main] [INFO] Candidate - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 04:17:49,195 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 04:17:49,196 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior691#-1952396124] 04:17:49,214 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate692] 04:17:49,221 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer693#1072741167] 04:17:49,231 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:49,232 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to -1 04:17:49,233 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 04:17:49,233 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:17:49,233 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 04:17:49,233 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer2 04:17:49,233 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 2 04:17:49,233 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 04:17:49,233 PM [main] [INFO] Candidate - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 04:17:49,233 PM [main] [DEBUG] AbstractLeader - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 04:17:49,233 PM [main] [DEBUG] AbstractLeader - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:17:49,233 PM [main] [DEBUG] AbstractLeader - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:17:49,234 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 04:17:49,234 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior694#674620735] 04:17:49,248 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate695] 04:17:49,248 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer696#2058340930] 04:17:49,248 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer697#-2109715820] 04:17:49,252 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:49,253 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:49,253 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:17:49,254 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0}, my term is 2 04:17:49,254 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 04:17:49,254 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=2, voteGranted=false} 04:17:49,254 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior698#-833269304] 04:17:49,268 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate699] 04:17:49,268 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer700#-1532528887] 04:17:49,273 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:49,273 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:49,273 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 3 04:17:49,273 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 04:17:49,274 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]]} 04:17:49,274 PM [main] [INFO] Candidate - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 04:17:49,274 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 04:17:49,274 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior701#-963341273] 04:17:49,285 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate702] 04:17:49,289 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:49,289 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:49,289 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 1001 04:17:49,290 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999}, my term is 1001 04:17:49,290 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 04:17:49,290 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1001, voteGranted=true} 04:17:49,290 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior703#-1025672116] 04:17:49,302 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate704] 04:17:49,302 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer705#242846953] 04:17:49,309 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:49,309 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:49,309 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:17:49,309 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior706#-1596558462] 04:17:49,320 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate707] 04:17:49,325 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:49,327 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 04:17:49,327 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:17:49,327 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1} to peer peer3 04:17:49,327 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1} to peer peer2 04:17:49,732 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=false}, my term is 2 04:17:49,732 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=false}, current voteCount: 1 04:17:49,732 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 2 04:17:49,732 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 04:17:49,733 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 04:17:49,733 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:17:49,733 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:17:49,733 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:17:49,733 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:17:49,733 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 04:17:49,733 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior708#1562977096] 04:17:49,745 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate709] 04:17:49,745 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer710#1067125978] 04:17:49,745 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer711#-1812554119] 04:17:49,746 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer712#829145161] 04:17:49,746 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer713#1860496087] 04:17:49,751 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:49,751 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 4 04:17:49,753 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 04:17:49,753 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 3 04:17:49,753 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer1 04:17:49,753 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer3 04:17:49,753 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer2 04:17:49,753 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer4 04:17:49,754 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=false}, my term is 3 04:17:49,754 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=false}, current voteCount: 1 04:17:49,754 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 3 04:17:49,754 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 04:17:49,754 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 3 04:17:49,754 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 2 04:17:49,754 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 04:17:49,754 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 04:17:49,754 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 04:17:49,754 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 04:17:49,754 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 04:17:49,754 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 04:17:49,754 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior714#-1113286639] 04:17:49,765 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate715] 04:17:49,766 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer716#516555095] 04:17:49,766 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer717#1337814427] 04:17:49,766 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer718#-456850973] 04:17:49,766 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer719#-345005977] 04:17:49,770 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:49,770 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:49,770 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:17:49,771 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior720#-1726593322] 04:17:49,781 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate721] 04:17:49,784 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:49,784 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:49,784 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:17:49,784 PM [main] [DEBUG] Candidate - candidate (Candidate): Received ElectionTimeout 04:17:49,784 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Election: Leader has following peers: [] 04:17:49,784 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 04:17:49,784 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior722#723168386] 04:17:49,795 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate723] 04:17:49,800 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:49,801 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:49,801 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:17:49,801 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 04:17:49,801 PM [main] [INFO] RaftActorBehavior - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 04:17:49,802 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior724#686457208] 04:17:49,812 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate725] 04:17:49,813 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer726#-2090505717] 04:17:49,817 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:49,817 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 1 04:17:49,818 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 04:17:49,818 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:17:49,819 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 04:17:49,819 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer2 04:17:49,819 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 2 04:17:49,819 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 04:17:49,819 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 04:17:49,819 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:17:49,819 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:17:49,819 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 04:17:49,820 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior727#1639624884] 04:17:49,830 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate728] 04:17:49,830 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer729#-671205824] 04:17:49,830 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer730#-1254046397] 04:17:49,834 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:49,834 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:17:49,834 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:17:49,834 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior731#182765504] 04:17:49,845 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate732] 04:17:49,847 PM [test-pekko.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [11/03/2025 16:17:49.846] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [11/03/2025 16:17:49.848] [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.191:17355) [INFO] [pekkoDeadLetter][11/03/2025 16:17:49.848] [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#-2099742646] 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'. 04:17:49,848 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#-2099742646] 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] [11/03/2025 16:17:49.849] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.191:17355] - Exiting completed 04:17:49,849 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.191:17355] - Exiting completed [INFO] [11/03/2025 16:17:49.849] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.191:17355] - Shutting down... 04:17:49,849 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.191:17355] - Shutting down... [INFO] [11/03/2025 16:17:49.849] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.191:17355] - Successfully shut down 04:17:49,849 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.191:17355] - Successfully shut down 04:17:49,851 PM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [11/03/2025 16:17:49.851] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.191:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [11/03/2025 16:17:49.852] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.191:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 04:17:49,852 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. 04:17:49,855 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [11/03/2025 16:17:49.854] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.191:17355/system/remoting-terminator] Remoting shut down.