[DEBUG] [08/01/2025 16:06:36.876] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 04:06:36,877 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [08/01/2025 16:06:36.877] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [08/01/2025 16:06:36.877] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [08/01/2025 16:06:36.892] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.119:17355] with UID [-8910940990953472979] [INFO] [08/01/2025 16:06:36.893] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.119:17355] - Starting up, Pekko version [1.1.4] ... 04:06:36,893 PM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.119:17355] with UID [-8910940990953472979] 04:06:36,894 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.119:17355] - Starting up, Pekko version [1.1.4] ... [INFO] [08/01/2025 16:06:36.896] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.119:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [08/01/2025 16:06:36.896] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.119:17355] - Started up successfully 04:06:36,896 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.119:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 04:06:36,896 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.119:17355] - Started up successfully [INFO] [08/01/2025 16:06:36.908] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.119:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [08/01/2025 16:06:36.908] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.119:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 04:06:36,912 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.119:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 04:06:36,912 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.119:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 04:06:36,926 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:36,926 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:06:36,926 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:06:36,926 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999}, my term is 1 04:06:36,926 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:06:36,926 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 04:06:36,927 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior361#371770080] 04:06:36,929 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate362] 04:06:36,933 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:36,933 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:06:36,933 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:06:36,933 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1}, my term is 1 04:06:36,933 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:06:36,933 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 04:06:36,933 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior363#-1737581641] 04:06:36,934 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate364] 04:06:36,938 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:36,938 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:06:36,938 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:06:36,938 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:06:36,938 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:06:36,938 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:06:36,938 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 04:06:36,938 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:06:36,938 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:06:36,938 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:06:36,938 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:06:36,938 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 04:06:36,938 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:06:36,938 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:06:36,938 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}, my term is 2 04:06:36,938 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:06:36,938 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:06:36,938 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 04:06:36,938 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 04:06:36,938 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:06:36,938 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:06:36,938 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=100, voteGranted=false}, my term is 2 04:06:36,938 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:06:36,938 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 04:06:36,938 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior365#-324397923] 04:06:36,939 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate366] 04:06:36,941 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:36,941 PM [main] [DEBUG] Candidate - test (Candidate): Election: Candidate has following voting peers: [] 04:06:36,941 PM [main] [INFO] Candidate - test (Candidate): Starting new election term 2 04:06:36,941 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior367#1505944598] 04:06:36,941 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate368] 04:06:36,943 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:36,943 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:06:36,943 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 1001 04:06:36,943 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:06:36,943 PM [main] [INFO] RaftActorBehavior - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 04:06:36,943 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior369#778974705] 04:06:36,944 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate370] 04:06:36,946 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:36,946 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:06:36,946 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 1001 04:06:36,946 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999}, my term is 1001 04:06:36,946 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:06:36,946 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1001, voteGranted=false} 04:06:36,946 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior371#868589592] 04:06:36,946 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate372] 04:06:36,948 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:36,948 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:06:36,948 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:06:36,949 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:06:36,949 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:06:36,949 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:06:36,949 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 04:06:36,949 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior373#-1770036713] 04:06:36,950 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate374] 04:06:36,950 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer375#-282499100] 04:06:36,952 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:36,954 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 04:06:36,954 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:06:36,954 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 04:06:36,954 PM [main] [DEBUG] Candidate - candidate (Candidate): Received ElectionTimeout 04:06:36,954 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 3 04:06:36,954 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 04:06:36,954 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior376#-1139484305] 04:06:36,955 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate377] 04:06:36,955 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer378#-679659638] 04:06:36,957 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:36,957 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:06:36,957 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 1001 04:06:36,958 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999}, my term is 1001 04:06:36,958 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:06:36,958 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1001, voteGranted=false} 04:06:36,958 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior379#-1974686435] 04:06:36,960 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate380] 04:06:36,960 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer381#-1069743289] 04:06:36,962 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:36,962 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:06:36,962 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:06:36,962 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:06:36,962 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:06:36,962 PM [main] [INFO] Candidate - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 04:06:36,963 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:06:36,963 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 04:06:36,963 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior382#1752249172] 04:06:36,964 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate383] 04:06:36,964 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer384#1419523931] 04:06:36,966 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:36,966 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to -1 04:06:36,967 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 04:06:36,967 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:06:36,967 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 04:06:36,967 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer2 04:06:36,967 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 2 04:06:36,967 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 04:06:36,967 PM [main] [INFO] Candidate - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 04:06:36,967 PM [main] [DEBUG] AbstractLeader - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 04:06:36,967 PM [main] [DEBUG] AbstractLeader - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:06:36,967 PM [main] [DEBUG] AbstractLeader - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:06:36,968 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:06:36,968 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 04:06:36,968 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior385#1027286726] 04:06:36,968 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate386] 04:06:36,968 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer387#917879669] 04:06:36,968 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer388#-504259064] 04:06:36,988 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:36,989 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:06:36,989 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:06:36,992 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0}, my term is 2 04:06:36,992 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:06:36,992 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=2, voteGranted=false} 04:06:36,993 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior389#1287744401] 04:06:36,995 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate390] 04:06:36,995 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer391#2018664974] 04:06:37,1 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:37,1 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:06:37,1 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 3 04:06:37,1 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:06:37,1 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:06:37,1 PM [main] [INFO] Candidate - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 04:06:37,1 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:06:37,1 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 04:06:37,1 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior392#905660099] 04:06:37,2 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate393] 04:06:37,4 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:37,4 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:06:37,4 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 1001 04:06:37,5 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVote{term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999}, my term is 1001 04:06:37,5 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:06:37,5 PM [main] [DEBUG] RaftActorBehavior - candidate (Candidate): requestVote returning: RequestVoteReply{term=1001, voteGranted=true} 04:06:37,5 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior394#2015908559] 04:06:37,5 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate395] 04:06:37,5 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer396#-1980564806] 04:06:37,7 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:37,7 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:06:37,7 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:06:37,7 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior397#2094264519] 04:06:37,8 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate398] 04:06:37,9 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:37,10 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 04:06:37,10 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:06:37,10 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1} to peer peer3 04:06:37,10 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1} to peer peer2 04:06:37,413 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=false}, my term is 2 04:06:37,413 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=false}, current voteCount: 1 04:06:37,413 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 2 04:06:37,413 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 04:06:37,413 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 04:06:37,413 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:06:37,413 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:06:37,413 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:06:37,413 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:06:37,413 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:06:37,413 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 04:06:37,414 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior399#415044012] 04:06:37,415 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate400] 04:06:37,415 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer401#717867858] 04:06:37,416 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer402#-947182816] 04:06:37,416 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer403#2077563010] 04:06:37,416 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer404#-425485949] 04:06:37,420 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:37,420 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 4 04:06:37,422 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 04:06:37,422 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 3 04:06:37,422 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer1 04:06:37,422 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer3 04:06:37,422 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer2 04:06:37,422 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer4 04:06:37,422 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=false}, my term is 3 04:06:37,422 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=false}, current voteCount: 1 04:06:37,422 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 3 04:06:37,422 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 04:06:37,422 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 3 04:06:37,422 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 2 04:06:37,422 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 04:06:37,422 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 04:06:37,423 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 04:06:37,423 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 04:06:37,423 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 04:06:37,423 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:06:37,423 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 04:06:37,423 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior405#1315259165] 04:06:37,424 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate406] 04:06:37,424 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer407#1845141549] 04:06:37,424 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer408#229592594] 04:06:37,424 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer409#-1505232920] 04:06:37,424 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer410#478618042] 04:06:37,427 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:37,427 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:06:37,427 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:06:37,427 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior411#575353235] 04:06:37,428 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate412] 04:06:37,431 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:37,431 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:06:37,431 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:06:37,431 PM [main] [DEBUG] Candidate - candidate (Candidate): Received ElectionTimeout 04:06:37,431 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Election: Leader has following peers: [] 04:06:37,431 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:06:37,431 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 04:06:37,431 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior413#-2109551792] 04:06:37,431 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate414] 04:06:37,434 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:37,434 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:06:37,434 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:06:37,434 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:06:37,434 PM [main] [INFO] RaftActorBehavior - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 04:06:37,435 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior415#-1565557894] 04:06:37,435 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate416] 04:06:37,435 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer417#-792850332] 04:06:37,438 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:37,438 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 1 04:06:37,439 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 04:06:37,439 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:06:37,439 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 04:06:37,439 PM [main] [DEBUG] Candidate - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer2 04:06:37,439 PM [main] [DEBUG] Candidate - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 2 04:06:37,439 PM [main] [DEBUG] Candidate - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 04:06:37,439 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 04:06:37,439 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:06:37,439 PM [main] [DEBUG] AbstractLeader - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:06:37,439 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:06:37,439 PM [main] [INFO] RaftActorBehavior - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 04:06:37,439 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior418#462486261] 04:06:37,440 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate419] 04:06:37,440 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer420#1490015702] 04:06:37,440 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer421#-585712507] 04:06:37,442 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:37,442 PM [main] [DEBUG] Candidate - candidate (Candidate): Election: Candidate has following voting peers: [] 04:06:37,442 PM [main] [INFO] Candidate - candidate (Candidate): Starting new election term 2 04:06:37,442 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior422#1073564772] 04:06:37,443 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate423] 04:06:37,444 PM [test-pekko.actor.default-dispatcher-5] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [08/01/2025 16:06:37.444] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [08/01/2025 16:06:37.445] [test-pekko.actor.default-dispatcher-12] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.119:17355) [INFO] [08/01/2025 16:06:37.445] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.119:17355] - Exiting completed 04:06:37,445 PM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.119:17355] - Exiting completed [INFO] [08/01/2025 16:06:37.445] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.119:17355] - Shutting down... 04:06:37,445 PM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.119:17355] - Shutting down... [INFO] [pekkoDeadLetter][08/01/2025 16:06:37.445] [test-pekko.actor.default-dispatcher-5] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#531237137] 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:06:37,446 PM [test-pekko.actor.default-dispatcher-5] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#531237137] 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] [08/01/2025 16:06:37.446] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.119:17355] - Successfully shut down 04:06:37,446 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.119:17355] - Successfully shut down [INFO] [08/01/2025 16:06:37.447] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.171.119:17355/system/remoting-terminator] Shutting down remote daemon. 04:06:37,447 PM [test-pekko.actor.default-dispatcher-13] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [08/01/2025 16:06:37.447] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.171.119:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 04:06:37,447 PM [test-pekko.actor.default-dispatcher-13] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [08/01/2025 16:06:37.449] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.171.119:17355/system/remoting-terminator] Remoting shut down. [DEBUG] [08/01/2025 16:06:37.450] [test-pekko.actor.internal-dispatcher-4] [EventStream] shutting down: StandardOutLogger 04:06:37,450 PM [test-pekko.actor.default-dispatcher-13] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down.