[DEBUG] [01/30/2025 06:57:04.095] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 06:57:04,96 AM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [01/30/2025 06:57:04.096] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [01/30/2025 06:57:04.096] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [01/30/2025 06:57:04.122] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.103:17355] with UID [3665664298388003429] 06:57:04,122 AM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.103:17355] with UID [3665664298388003429] [INFO] [01/30/2025 06:57:04.123] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.103:17355] - Starting up, Pekko version [1.0.3] ... 06:57:04,123 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.103:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [01/30/2025 06:57:04.124] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.103:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 06:57:04,124 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.103:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [01/30/2025 06:57:04.124] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.103:17355] - Started up successfully 06:57:04,124 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.103:17355] - Started up successfully [INFO] [01/30/2025 06:57:04.125] [test-pekko.actor.internal-dispatcher-8] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.103:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [01/30/2025 06:57:04.125] [test-pekko.actor.internal-dispatcher-8] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.103:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 06:57:04,125 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.103:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 06:57:04,125 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.103:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 06:57:04,136 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:57:04,136 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:57:04,136 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:57:04,136 AM [main] [DEBUG] MockRaftActorContext - 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 06:57:04,136 AM [main] [INFO] MockRaftActorContext - 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 06:57:04,136 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:57:04,136 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 06:57:04,137 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#-862752911] 06:57:04,148 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate457] 06:57:04,148 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer458#-1261412689] 06:57:04,149 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:57:04,150 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 06:57:04,150 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:57:04,150 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 06:57:04,150 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 06:57:04,150 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 06:57:04,150 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 06:57:04,150 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#-1566987729] 06:57:04,161 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate460] 06:57:04,161 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer461#-1266764006] 06:57:04,162 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:57:04,162 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:57:04,162 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 06:57:04,163 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote{term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999}, my term is 1001 06:57:04,163 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote{term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 06:57:04,163 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply{term=1001, voteGranted=false} 06:57:04,163 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#-2018281770] 06:57:04,164 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate463] 06:57:04,164 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer464#-1242585996] 06:57:04,165 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:57:04,165 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:57:04,165 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:57:04,166 AM [main] [DEBUG] MockRaftActorContext - 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 06:57:04,166 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleAppendEntries: AppendEntries{term=2, leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]} 06:57:04,166 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 06:57:04,166 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:57:04,166 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 06:57:04,167 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#-971505818] 06:57:04,167 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate466] 06:57:04,167 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer467#-892151580] 06:57:04,169 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:57:04,169 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 06:57:04,170 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 06:57:04,170 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:57:04,170 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 06:57:04,170 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer2 06:57:04,170 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 2 06:57:04,170 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 06:57:04,170 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 06:57:04,170 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 06:57:04,170 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:57:04,170 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:57:04,170 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:57:04,170 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 06:57:04,170 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#-1748321804] 06:57:04,171 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate469] 06:57:04,171 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer470#522666592] 06:57:04,171 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer471#1809673808] 06:57:04,173 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:57:04,173 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:57:04,173 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:57:04,173 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote{term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0}, my term is 2 06:57:04,173 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0} - currentTerm: 2, votedFor: candidate, lastIndex: 1, lastTerm: 1 06:57:04,173 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply{term=2, voteGranted=false} 06:57:04,173 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior472#1143935229] 06:57:04,173 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate473] 06:57:04,173 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer474#-1161040376] 06:57:04,174 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:57:04,174 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:57:04,174 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 06:57:04,174 AM [main] [DEBUG] MockRaftActorContext - 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 06:57:04,174 AM [main] [DEBUG] MockRaftActorContext - 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]]} 06:57:04,174 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 06:57:04,175 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:57:04,175 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 06:57:04,175 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior475#-1672158733] 06:57:04,175 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate476] 06:57:04,177 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:57:04,177 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:57:04,177 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 06:57:04,177 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote{term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999}, my term is 1001 06:57:04,177 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote{term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 06:57:04,177 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply{term=1001, voteGranted=true} 06:57:04,177 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#-927577556] 06:57:04,178 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate478] 06:57:04,178 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer479#-1405026169] 06:57:04,179 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:57:04,179 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:57:04,179 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:57:04,179 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#1554005231] 06:57:04,179 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate481] 06:57:04,181 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 06:57:04,181 AM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 06:57:04,181 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1} to peer peer3 06:57:04,181 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1} to peer peer2 06:57:04,584 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=false}, my term is 2 06:57:04,584 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=false}, current voteCount: 1 06:57:04,584 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 2 06:57:04,584 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 06:57:04,584 AM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 06:57:04,584 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:57:04,584 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:57:04,585 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:57:04,585 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:57:04,585 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:57:04,585 AM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 06:57:04,585 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior482#1161716402] 06:57:04,586 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate483] 06:57:04,587 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer484#785723688] 06:57:04,587 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer485#-418600966] 06:57:04,587 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer486#-586401491] 06:57:04,587 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer487#-1033355799] 06:57:04,589 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:57:04,590 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 06:57:04,591 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 06:57:04,591 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 06:57:04,591 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer1 06:57:04,591 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer3 06:57:04,591 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer2 06:57:04,591 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer4 06:57:04,592 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=false}, my term is 3 06:57:04,592 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=false}, current voteCount: 1 06:57:04,592 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 3 06:57:04,592 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 06:57:04,592 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 3 06:57:04,592 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 2 06:57:04,592 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 06:57:04,592 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 06:57:04,592 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 06:57:04,592 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 06:57:04,592 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 06:57:04,592 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:57:04,592 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 06:57:04,592 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior488#731236639] 06:57:04,593 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate489] 06:57:04,593 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer490#-637215870] 06:57:04,594 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer491#-635366524] 06:57:04,594 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer492#-468535698] 06:57:04,594 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer493#-1647901015] 06:57:04,595 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:57:04,595 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:57:04,595 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:57:04,595 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior494#1399182665] 06:57:04,595 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate495] 06:57:04,596 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:57:04,596 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:57:04,596 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:57:04,596 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 06:57:04,596 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 06:57:04,596 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:57:04,596 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 06:57:04,596 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior496#-272742713] 06:57:04,596 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate497] 06:57:04,597 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:57:04,597 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:57:04,597 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:57:04,598 AM [main] [DEBUG] MockRaftActorContext - 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 06:57:04,598 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 06:57:04,598 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#462608707] 06:57:04,598 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate499] 06:57:04,598 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer500#-1803297189] 06:57:04,599 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:57:04,599 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 06:57:04,599 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 06:57:04,599 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:57:04,599 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 06:57:04,599 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer2 06:57:04,599 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 2 06:57:04,599 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 06:57:04,600 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 06:57:04,600 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:57:04,600 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:57:04,600 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:57:04,600 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 06:57:04,600 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#1622484374] 06:57:04,600 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate502] 06:57:04,600 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer503#144737212] 06:57:04,600 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer504#1836468913] 06:57:04,601 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:57:04,601 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:57:04,601 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:57:04,601 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior505#-797852015] 06:57:04,602 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate506] 06:57:04,603 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:57:04,603 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:57:04,603 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:57:04,603 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999}, my term is 1 06:57:04,603 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 06:57:04,603 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 06:57:04,603 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#-1652850330] 06:57:04,603 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate508] 06:57:04,605 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:57:04,605 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:57:04,605 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:57:04,605 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1}, my term is 1 06:57:04,605 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 06:57:04,605 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 06:57:04,605 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior509#-633652131] 06:57:04,606 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate510] 06:57:04,607 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:57:04,607 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:57:04,607 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:57:04,607 AM [main] [DEBUG] MockRaftActorContext - 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 06:57:04,607 AM [main] [INFO] MockRaftActorContext - 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 06:57:04,607 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:57:04,607 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 06:57:04,607 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:57:04,607 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:57:04,607 AM [main] [DEBUG] MockRaftActorContext - 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 06:57:04,607 AM [main] [INFO] MockRaftActorContext - 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 06:57:04,607 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 06:57:04,607 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:57:04,607 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:57:04,607 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}, my term is 2 06:57:04,607 AM [main] [INFO] MockRaftActorContext - 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 06:57:04,607 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 06:57:04,607 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 06:57:04,607 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 06:57:04,607 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:57:04,607 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:57:04,607 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply{term=100, voteGranted=false}, my term is 2 06:57:04,607 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than Candidate's term 2 - switching to Follower 06:57:04,607 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 06:57:04,607 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior511#41518440] 06:57:04,607 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate512] 06:57:04,608 AM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 06:57:04,608 AM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 06:57:04,608 AM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 06:57:04,608 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#-75570849] 06:57:04,609 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate514] 06:57:04,609 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:57:04,609 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:57:04,609 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 06:57:04,609 AM [main] [DEBUG] MockRaftActorContext - 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 06:57:04,609 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 06:57:04,609 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior515#-572060025] 06:57:04,610 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate516] 06:57:04,611 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:57:04,611 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:57:04,611 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 06:57:04,611 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999}, my term is 1001 06:57:04,611 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 06:57:04,611 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply{term=1001, voteGranted=false} 06:57:04,611 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior517#-1135258724] 06:57:04,611 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate518] 06:57:04,612 AM [test-pekko.actor.default-dispatcher-5] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 06:57:04,613 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.103:17355] - Exiting completed 06:57:04,613 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.103:17355] - Shutting down... 06:57:04,613 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.103:17355] - Successfully shut down 06:57:04,614 AM [test-pekko.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 06:57:04,614 AM [test-pekko.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. 06:57:04,614 AM [test-pekko.actor.default-dispatcher-5] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#68080063] 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] [01/30/2025 06:57:04.612] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [01/30/2025 06:57:04.615] [test-pekko.actor.default-dispatcher-11] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.103:17355) [INFO] [01/30/2025 06:57:04.613] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.103:17355] - Exiting completed [INFO] [01/30/2025 06:57:04.613] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.103:17355] - Shutting down... [INFO] [01/30/2025 06:57:04.613] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.103:17355] - Successfully shut down [INFO] [01/30/2025 06:57:04.614] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.103:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [01/30/2025 06:57:04.614] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.103:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [pekkoDeadLetter][01/30/2025 06:57:04.612] [test-pekko.actor.default-dispatcher-6] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#68080063] 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'.