[DEBUG] [11/06/2025 21:38:22.823] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 09:38:22,824 PM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [11/06/2025 21:38:22.824] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [11/06/2025 21:38:22.824] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [11/06/2025 21:38:22.843] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.64:17355] with UID [4377113834403280664] 09:38:22,843 PM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.64:17355] with UID [4377113834403280664] [INFO] [11/06/2025 21:38:22.843] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.64:17355] - Starting up, Pekko version [1.2.1] ... 09:38:22,845 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.64:17355] - Starting up, Pekko version [1.2.1] ... 09:38:22,846 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.64:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 09:38:22,846 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.64:17355] - Started up successfully [INFO] [11/06/2025 21:38:22.846] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.64:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [11/06/2025 21:38:22.846] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.64:17355] - Started up successfully 09:38:22,848 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.64:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 09:38:22,848 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.64:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [11/06/2025 21:38:22.848] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.64:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [11/06/2025 21:38:22.848] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.64:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 09:38:22,861 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:38:22,861 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:38:22,861 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:38:22,861 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999}, my term is 1 09:38:22,861 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:38:22,861 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 09:38:22,861 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior670#-665225237] 09:38:22,872 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate671] 09:38:22,875 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:38:22,876 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:38:22,876 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:38:22,876 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1}, my term is 1 09:38:22,876 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:38:22,876 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 09:38:22,876 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior672#-2052036684] 09:38:22,886 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate673] 09:38:22,889 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:38:22,889 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:38:22,889 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:38:22,889 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:38:22,889 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:38:22,889 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 09:38:22,889 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:38:22,889 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:38:22,889 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:38:22,889 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:38:22,889 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 09:38:22,889 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:38:22,889 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:38:22,889 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}, my term is 2 09:38:22,889 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:38:22,889 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:38:22,889 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 09:38:22,889 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 09:38:22,889 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:38:22,889 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:38:22,889 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=100, voteGranted=false}, my term is 2 09:38:22,889 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:38:22,889 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 09:38:22,889 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior674#534994181] 09:38:22,900 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate675] 09:38:22,904 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:38:22,904 PM [main] [DEBUG] Candidate - test (Candidate): Election: Candidate has following voting peers: [] 09:38:22,904 PM [main] [INFO] Candidate - test (Candidate): Starting new election term 2 09:38:22,904 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior676#-318629682] 09:38:22,915 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate677] 09:38:22,918 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:38:22,919 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:38:22,919 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 1001 09:38:22,919 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:38:22,919 PM [main] [INFO] RaftActorBehavior - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 09:38:22,919 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior678#-1991052662] 09:38:22,930 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate679] 09:38:22,933 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:38:22,933 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:38:22,933 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 1001 09:38:22,933 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999}, my term is 1001 09:38:22,933 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:38:22,933 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1001, voteGranted=false} 09:38:22,933 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior680#-1402047308] 09:38:22,944 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate681] 09:38:22,946 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:38:22,946 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:38:22,946 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:38:22,947 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:38:22,947 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:38:22,947 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 09:38:22,948 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior682#-50427303] 09:38:22,958 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate683] 09:38:22,958 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer684#-1680903205] 09:38:22,962 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:38:22,963 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 09:38:22,963 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:38:22,963 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 09:38:22,963 PM [main] [DEBUG] Candidate - candidate (Candidate): Received ElectionTimeout 09:38:22,963 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 3 09:38:22,963 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 09:38:22,963 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior685#-1031023653] 09:38:22,974 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate686] 09:38:22,974 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer687#-1982265857] 09:38:22,978 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:38:22,978 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:38:22,978 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 1001 09:38:22,979 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999}, my term is 1001 09:38:22,979 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:38:22,979 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1001, voteGranted=false} 09:38:22,979 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior688#2114394597] 09:38:22,990 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate689] 09:38:22,990 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer690#653651797] 09:38:22,993 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:38:22,993 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:38:22,993 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:38:22,994 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:38:22,994 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:38:22,994 PM [main] [INFO] Candidate - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 09:38:22,994 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 09:38:22,994 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior691#307117076] 09:38:23,5 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate692] 09:38:23,5 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer693#1692054358] 09:38:23,8 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:38:23,8 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to -1 09:38:23,9 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 09:38:23,9 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:38:23,9 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 09:38:23,9 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer2 09:38:23,9 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 2 09:38:23,9 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 09:38:23,9 PM [main] [INFO] Candidate - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 09:38:23,9 PM [main] [DEBUG] AbstractLeader - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 09:38:23,9 PM [main] [DEBUG] AbstractLeader - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 09:38:23,9 PM [main] [DEBUG] AbstractLeader - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 09:38:23,10 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 09:38:23,10 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior694#-1854071032] 09:38:23,20 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate695] 09:38:23,21 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer696#871171330] 09:38:23,21 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer697#-1568748341] 09:38:23,23 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:38:23,23 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:38:23,23 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:38:23,24 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0}, my term is 2 09:38:23,24 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:38:23,24 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=2, voteGranted=false} 09:38:23,24 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior698#1811629171] 09:38:23,35 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate699] 09:38:23,35 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer700#1431091392] 09:38:23,38 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:38:23,38 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:38:23,38 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 3 09:38:23,39 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:38:23,39 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:38:23,39 PM [main] [INFO] Candidate - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 09:38:23,39 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 09:38:23,39 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior701#95555965] 09:38:23,50 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate702] 09:38:23,52 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:38:23,52 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:38:23,52 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 1001 09:38:23,53 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999}, my term is 1001 09:38:23,53 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:38:23,53 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1001, voteGranted=true} 09:38:23,53 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior703#185887942] 09:38:23,53 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate704] 09:38:23,54 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer705#646931559] 09:38:23,56 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:38:23,56 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:38:23,56 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:38:23,56 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior706#-463509312] 09:38:23,57 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate707] 09:38:23,59 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:38:23,60 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 09:38:23,60 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:38:23,60 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1} to peer peer3 09:38:23,60 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1} to peer peer2 09:38:23,462 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=false}, my term is 2 09:38:23,462 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=false}, current voteCount: 1 09:38:23,462 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 2 09:38:23,462 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 09:38:23,462 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 09:38:23,462 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 09:38:23,463 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 09:38:23,463 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 09:38:23,463 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 09:38:23,463 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 09:38:23,463 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior708#-937704518] 09:38:23,464 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate709] 09:38:23,465 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer710#-292422178] 09:38:23,465 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer711#1656182633] 09:38:23,465 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer712#1430533662] 09:38:23,465 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer713#-1605744958] 09:38:23,469 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:38:23,469 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 4 09:38:23,470 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 09:38:23,470 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 3 09:38:23,470 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer1 09:38:23,470 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer3 09:38:23,470 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer2 09:38:23,470 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer4 09:38:23,470 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=false}, my term is 3 09:38:23,470 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=false}, current voteCount: 1 09:38:23,470 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 3 09:38:23,470 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 09:38:23,470 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 3 09:38:23,470 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 2 09:38:23,471 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 09:38:23,471 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 09:38:23,471 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 09:38:23,471 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 09:38:23,471 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 09:38:23,471 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 09:38:23,471 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior714#17081536] 09:38:23,472 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate715] 09:38:23,472 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer716#315363264] 09:38:23,472 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer717#-1837631761] 09:38:23,472 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer718#624681805] 09:38:23,472 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer719#2105236566] 09:38:23,475 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:38:23,475 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:38:23,475 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:38:23,475 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior720#-1240959743] 09:38:23,476 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate721] 09:38:23,477 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:38:23,478 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:38:23,478 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:38:23,478 PM [main] [DEBUG] Candidate - candidate (Candidate): Received ElectionTimeout 09:38:23,478 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Election: Leader has following peers: [] 09:38:23,478 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 09:38:23,478 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior722#130184701] 09:38:23,479 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate723] 09:38:23,484 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:38:23,484 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:38:23,484 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:38:23,484 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:38:23,484 PM [main] [INFO] RaftActorBehavior - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 09:38:23,485 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior724#-1415172284] 09:38:23,495 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate725] 09:38:23,495 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer726#-1308756384] 09:38:23,498 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:38:23,498 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 1 09:38:23,499 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 09:38:23,499 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:38:23,499 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 09:38:23,499 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer2 09:38:23,500 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 2 09:38:23,500 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 09:38:23,500 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 09:38:23,500 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 09:38:23,500 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 09:38:23,500 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 09:38:23,500 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior727#2021297866] 09:38:23,500 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate728] 09:38:23,501 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer729#-1837304608] 09:38:23,501 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer730#109328522] 09:38:23,503 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:38:23,503 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 09:38:23,503 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 09:38:23,503 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior731#825339663] 09:38:23,504 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate732] [INFO] [11/06/2025 21:38:23.504] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 09:38:23,505 PM [test-pekko.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [11/06/2025 21:38:23.507] [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.64:17355) [INFO] [11/06/2025 21:38:23.506] [test-pekko.actor.internal-dispatcher-8] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.64:17355] - Exiting completed [INFO] [11/06/2025 21:38:23.506] [test-pekko.actor.internal-dispatcher-8] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.64:17355] - Shutting down... [INFO] [11/06/2025 21:38:23.506] [test-pekko.actor.internal-dispatcher-8] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.64:17355] - Successfully shut down 09:38:23,507 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.64:17355] - Exiting completed 09:38:23,507 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.64:17355] - Shutting down... 09:38:23,507 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.64:17355] - Successfully shut down [WARN] [11/06/2025 21:38:23.507] [test-pekko.actor.default-dispatcher-12] [pekko://test/system/deadLetterListener] received dead letter: UnhandledMessage(Leave(pekko://test@10.30.170.64:17355),Actor[pekko://test/deadLetters],Actor[pekko://test/system/cluster/core/daemon#-1940008881]) [INFO] [11/06/2025 21:38:23.507] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.170.64:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [11/06/2025 21:38:23.508] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.170.64:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 09:38:23,508 PM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 09:38:23,508 PM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [11/06/2025 21:38:23.509] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.170.64:17355/system/remoting-terminator] Remoting shut down. 09:38:23,509 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [11/06/2025 21:38:23.510] [test-pekko.actor.internal-dispatcher-4] [EventStream] shutting down: StandardOutLogger