[DEBUG] [11/02/2025 16:22:30.142] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 04:22:30,143 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [11/02/2025 16:22:30.143] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [11/02/2025 16:22:30.143] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [11/02/2025 16:22:30.166] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.190:17355] with UID [5519303394895775239] [INFO] [11/02/2025 16:22:30.167] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.190:17355] - Starting up, Pekko version [1.2.1] ... 04:22:30,167 PM [test-pekko.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.190:17355] with UID [5519303394895775239] 04:22:30,167 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.190:17355] - Starting up, Pekko version [1.2.1] ... [INFO] [11/02/2025 16:22:30.170] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.190:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [11/02/2025 16:22:30.170] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.190:17355] - Started up successfully [INFO] [11/02/2025 16:22:30.172] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.190:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [11/02/2025 16:22:30.172] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.190:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 04:22:30,172 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.190:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 04:22:30,172 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.190:17355] - Started up successfully 04:22:30,172 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.190:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 04:22:30,172 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.190:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 04:22:30,283 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:22:30,283 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:22:30,283 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:22:30,283 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999}, my term is 1 04:22:30,283 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:22:30,283 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 04:22:30,283 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior670#1490004346] 04:22:30,294 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate671] 04:22:30,396 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:22:30,396 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:22:30,396 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:22:30,396 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1}, my term is 1 04:22:30,396 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:22:30,396 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 04:22:30,396 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior672#-480103961] 04:22:30,407 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate673] 04:22:30,409 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:22:30,409 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:22:30,409 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:22:30,409 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:22:30,409 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:22:30,409 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 04:22:30,409 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:22:30,409 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:22:30,409 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:22:30,409 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:22:30,409 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 04:22:30,409 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:22:30,409 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:22:30,409 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}, my term is 2 04:22:30,409 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:22:30,409 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:22:30,409 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 04:22:30,409 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 04:22:30,409 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:22:30,409 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:22:30,409 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=100, voteGranted=false}, my term is 2 04:22:30,409 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:22:30,409 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 04:22:30,409 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior674#1545342469] 04:22:30,420 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate675] 04:22:30,421 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:22:30,421 PM [main] [DEBUG] Candidate - test (Candidate): Election: Candidate has following voting peers: [] 04:22:30,421 PM [main] [INFO] Candidate - test (Candidate): Starting new election term 2 04:22:30,421 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior676#-791138900] 04:22:30,432 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate677] 04:22:30,433 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:22:30,433 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:22:30,433 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 1001 04:22:30,433 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:22:30,433 PM [main] [INFO] RaftActorBehavior - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 04:22:30,433 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior678#-573786592] 04:22:30,433 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate679] 04:22:30,435 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:22:30,435 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:22:30,435 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 1001 04:22:30,435 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999}, my term is 1001 04:22:30,435 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:22:30,435 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1001, voteGranted=false} 04:22:30,435 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior680#-678665456] 04:22:30,435 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate681] 04:22:30,436 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:22:30,436 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:22:30,436 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:22:30,437 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:22:30,437 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:22:30,437 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 04:22:30,437 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior682#1345563469] 04:22:30,437 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate683] 04:22:30,437 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer684#155531705] 04:22:30,439 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:22:30,439 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 04:22:30,439 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:22:30,439 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 04:22:30,439 PM [main] [DEBUG] Candidate - candidate (Candidate): Received ElectionTimeout 04:22:30,439 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 3 04:22:30,439 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 04:22:30,439 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior685#-1356045861] 04:22:30,440 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate686] 04:22:30,440 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer687#-1259371003] 04:22:30,441 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:22:30,441 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:22:30,441 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 1001 04:22:30,441 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999}, my term is 1001 04:22:30,441 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:22:30,441 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1001, voteGranted=false} 04:22:30,441 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior688#1116393535] 04:22:30,442 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate689] 04:22:30,442 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer690#1361017938] 04:22:30,443 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:22:30,443 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:22:30,443 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:22:30,443 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:22:30,443 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:22:30,443 PM [main] [INFO] Candidate - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 04:22:30,444 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 04:22:30,444 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior691#441427618] 04:22:30,444 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate692] 04:22:30,444 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer693#1445328591] 04:22:30,446 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:22:30,446 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to -1 04:22:30,446 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 04:22:30,446 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:22:30,446 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 04:22:30,446 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer2 04:22:30,446 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 2 04:22:30,446 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 04:22:30,446 PM [main] [INFO] Candidate - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 04:22:30,446 PM [main] [DEBUG] AbstractLeader - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 04:22:30,446 PM [main] [DEBUG] AbstractLeader - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:22:30,446 PM [main] [DEBUG] AbstractLeader - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:22:30,446 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 04:22:30,446 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior694#1648759395] 04:22:30,447 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate695] 04:22:30,447 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer696#-563760690] 04:22:30,447 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer697#-654314052] 04:22:30,448 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:22:30,448 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:22:30,448 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:22:30,448 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0}, my term is 2 04:22:30,448 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:22:30,448 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=2, voteGranted=false} 04:22:30,449 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior698#-62283202] 04:22:30,449 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate699] 04:22:30,449 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer700#-1406989952] 04:22:30,450 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:22:30,450 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:22:30,450 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 3 04:22:30,450 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:22:30,450 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:22:30,450 PM [main] [INFO] Candidate - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 04:22:30,450 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 04:22:30,450 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior701#-401613595] 04:22:30,451 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate702] 04:22:30,452 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:22:30,452 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:22:30,452 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 1001 04:22:30,452 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999}, my term is 1001 04:22:30,452 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:22:30,452 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1001, voteGranted=true} 04:22:30,452 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior703#-223732034] 04:22:30,453 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate704] 04:22:30,453 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer705#327881501] 04:22:30,454 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:22:30,454 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:22:30,454 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:22:30,454 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior706#160209979] 04:22:30,455 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate707] 04:22:30,456 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:22:30,456 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 04:22:30,456 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:22:30,457 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1} to peer peer3 04:22:30,457 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1} to peer peer2 04:22:30,869 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=false}, my term is 2 04:22:30,869 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=false}, current voteCount: 1 04:22:30,869 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 2 04:22:30,869 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 04:22:30,869 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 04:22:30,869 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:22:30,869 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:22:30,869 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:22:30,869 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:22:30,869 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 04:22:30,869 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior708#2006330473] 04:22:30,870 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate709] 04:22:30,870 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer710#-1267724686] 04:22:30,870 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer711#549444780] 04:22:30,871 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer712#1816266346] 04:22:30,871 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer713#-346364536] 04:22:30,874 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:22:30,874 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 4 04:22:30,875 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 04:22:30,875 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 3 04:22:30,875 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer1 04:22:30,875 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer3 04:22:30,875 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer2 04:22:30,875 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer4 04:22:30,875 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=false}, my term is 3 04:22:30,875 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=false}, current voteCount: 1 04:22:30,875 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 3 04:22:30,875 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 04:22:30,875 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 3 04:22:30,875 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 2 04:22:30,875 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 04:22:30,875 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 04:22:30,875 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 04:22:30,876 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 04:22:30,876 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 04:22:30,876 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 04:22:30,876 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior714#1749674027] 04:22:30,876 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate715] 04:22:30,876 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer716#-1381168294] 04:22:30,876 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer717#250778343] 04:22:30,876 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer718#-1888849511] 04:22:30,877 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer719#1089576528] 04:22:30,879 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:22:30,879 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:22:30,879 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:22:30,879 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior720#1164975891] 04:22:30,879 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate721] 04:22:30,881 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:22:30,881 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:22:30,881 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:22:30,881 PM [main] [DEBUG] Candidate - candidate (Candidate): Received ElectionTimeout 04:22:30,881 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Election: Leader has following peers: [] 04:22:30,881 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 04:22:30,881 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior722#1237898154] 04:22:30,883 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate723] 04:22:30,887 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:22:30,887 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:22:30,887 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:22:30,887 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:22:30,887 PM [main] [INFO] RaftActorBehavior - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 04:22:30,888 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior724#-1318137864] 04:22:30,898 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate725] 04:22:30,899 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer726#-480489661] 04:22:30,902 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:22:30,902 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 1 04:22:30,903 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 04:22:30,903 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:22:30,903 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 04:22:30,903 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer2 04:22:30,904 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 2 04:22:30,904 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 04:22:30,904 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 04:22:30,904 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:22:30,904 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:22:30,904 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 04:22:30,904 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior727#-1526366177] 04:22:30,915 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate728] 04:22:30,915 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer729#1836243577] 04:22:30,915 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer730#-1855493484] 04:22:30,917 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:22:30,917 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:22:30,917 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:22:30,918 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior731#1120002019] 04:22:30,918 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate732] [INFO] [11/02/2025 16:22:30.919] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 04:22:30,919 PM [test-pekko.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 04:22:30,923 PM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.190:17355] - Exiting completed 04:22:30,923 PM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.190:17355] - Shutting down... 04:22:30,923 PM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.190:17355] - Successfully shut down 04:22:30,923 PM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 04:22:30,923 PM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [WARN] [11/02/2025 16:22:30.923] [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.190:17355) [INFO] [11/02/2025 16:22:30.920] [test-pekko.actor.internal-dispatcher-8] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.190:17355] - Exiting completed [INFO] [11/02/2025 16:22:30.920] [test-pekko.actor.internal-dispatcher-8] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.190:17355] - Shutting down... [INFO] [11/02/2025 16:22:30.920] [test-pekko.actor.internal-dispatcher-8] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.190:17355] - Successfully shut down [INFO] [11/02/2025 16:22:30.923] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.170.190:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [11/02/2025 16:22:30.923] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.170.190:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 04:22:30,925 PM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [WARN] [11/02/2025 16:22:30.925] [test-pekko.actor.default-dispatcher-6] [pekko://test/system/deadLetterListener] received dead letter: UnhandledMessage(Leave(pekko://test@10.30.170.190:17355),Actor[pekko://test/deadLetters],Actor[pekko://test/system/cluster/core/daemon#1646062446]) [INFO] [11/02/2025 16:22:30.925] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.170.190:17355/system/remoting-terminator] Remoting shut down.