[DEBUG] [01/29/2025 16:49:53.198] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 04:49:53,199 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [01/29/2025 16:49:53.199] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [01/29/2025 16:49:53.199] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [01/29/2025 16:49:53.208] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.37:17355] with UID [-2463440104908361245] 04:49:53,209 PM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.37:17355] with UID [-2463440104908361245] 04:49:53,209 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.37:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [01/29/2025 16:49:53.209] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.37:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [01/29/2025 16:49:53.213] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.37:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [01/29/2025 16:49:53.213] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.37:17355] - Started up successfully 04:49:53,213 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.37:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 04:49:53,213 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.37:17355] - Started up successfully 04:49:53,219 PM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.37:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 04:49:53,219 PM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.37:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [01/29/2025 16:49:53.214] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.37:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [01/29/2025 16:49:53.214] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.37:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 04:49:53,224 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:49:53,224 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:49:53,224 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:49:53,225 PM [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 04:49:53,225 PM [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 04:49:53,225 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:49:53,225 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 04:49:53,225 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#1975463946] 04:49:53,239 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate457] 04:49:53,239 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer458#-1641350875] 04:49:53,241 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:49:53,241 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 04:49:53,241 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:49:53,241 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 04:49:53,241 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 04:49:53,241 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 04:49:53,241 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 04:49:53,241 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#-1411854766] 04:49:53,252 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate460] 04:49:53,252 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer461#1057035982] 04:49:53,253 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:49:53,253 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:49:53,253 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 04:49:53,254 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote{term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999}, my term is 1001 04:49:53,254 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote{term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 04:49:53,254 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply{term=1001, voteGranted=false} 04:49:53,254 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#1076233033] 04:49:53,264 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate463] 04:49:53,264 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer464#188380550] 04:49:53,265 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:49:53,265 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:49:53,265 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:49:53,266 PM [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 04:49:53,266 PM [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==[]} 04:49:53,266 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 04:49:53,266 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:49:53,266 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 04:49:53,266 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#1149570022] 04:49:53,277 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate466] 04:49:53,277 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer467#34009652] 04:49:53,278 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:49:53,278 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 04:49:53,278 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 04:49:53,278 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:49:53,279 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 04:49:53,279 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer2 04:49:53,279 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 2 04:49:53,279 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 04:49:53,279 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 04:49:53,279 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 04:49:53,279 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:49:53,279 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:49:53,279 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:49:53,279 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 04:49:53,279 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#-1843501150] 04:49:53,290 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate469] 04:49:53,290 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer470#-1515694454] 04:49:53,290 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer471#1610009012] 04:49:53,292 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:49:53,292 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:49:53,292 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:49:53,292 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote{term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0}, my term is 2 04:49:53,292 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0} - currentTerm: 2, votedFor: candidate, lastIndex: 1, lastTerm: 1 04:49:53,292 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply{term=2, voteGranted=false} 04:49:53,292 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior472#1466628871] 04:49:53,293 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate473] 04:49:53,293 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer474#-1659161600] 04:49:53,294 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:49:53,295 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:49:53,295 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 04:49:53,295 PM [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 04:49:53,295 PM [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]]} 04:49:53,295 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 04:49:53,295 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:49:53,295 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 04:49:53,295 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior475#1769908473] 04:49:53,306 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate476] 04:49:53,308 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:49:53,308 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:49:53,308 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 04:49:53,309 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote{term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999}, my term is 1001 04:49:53,309 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote{term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 04:49:53,309 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply{term=1001, voteGranted=true} 04:49:53,309 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#1745814147] 04:49:53,319 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate478] 04:49:53,319 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer479#-456758514] 04:49:53,321 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:49:53,321 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:49:53,321 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:49:53,321 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#-1780658424] 04:49:53,332 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate481] 04:49:53,335 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 04:49:53,335 PM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 04:49:53,335 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1} to peer peer3 04:49:53,335 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1} to peer peer2 04:49:53,737 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=false}, my term is 2 04:49:53,737 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=false}, current voteCount: 1 04:49:53,737 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 2 04:49:53,737 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 04:49:53,737 PM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 04:49:53,738 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:49:53,738 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:49:53,738 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:49:53,738 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 04:49:53,738 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:49:53,738 PM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 04:49:53,738 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior482#1252129359] 04:49:53,749 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate483] 04:49:53,750 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer484#747903814] 04:49:53,750 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer485#-259720443] 04:49:53,750 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer486#-1533268892] 04:49:53,750 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer487#-316772063] 04:49:53,752 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:49:53,752 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 04:49:53,754 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 04:49:53,754 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 04:49:53,754 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer1 04:49:53,754 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer3 04:49:53,754 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer2 04:49:53,754 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote{term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1} to peer peer4 04:49:53,754 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=false}, my term is 3 04:49:53,755 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=false}, current voteCount: 1 04:49:53,755 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 3 04:49:53,755 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 04:49:53,755 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 3 04:49:53,755 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 2 04:49:53,755 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 04:49:53,755 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 04:49:53,755 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 04:49:53,756 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 04:49:53,756 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 04:49:53,756 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:49:53,756 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 04:49:53,756 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior488#1597880044] 04:49:53,766 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate489] 04:49:53,767 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer490#1863519109] 04:49:53,767 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer491#860785179] 04:49:53,767 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer492#-1919828320] 04:49:53,767 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer493#-1597604929] 04:49:53,768 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:49:53,768 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:49:53,768 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:49:53,768 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior494#423488335] 04:49:53,779 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate495] 04:49:53,780 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:49:53,780 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:49:53,780 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:49:53,781 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 04:49:53,781 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 04:49:53,781 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:49:53,781 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 04:49:53,781 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior496#-484152518] 04:49:53,791 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate497] 04:49:53,793 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:49:53,793 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:49:53,793 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:49:53,793 PM [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 04:49:53,793 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 04:49:53,793 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#-1483870613] 04:49:53,804 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate499] 04:49:53,804 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer500#-2109318252] 04:49:53,808 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:49:53,808 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 04:49:53,809 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 04:49:53,809 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:49:53,809 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer1 04:49:53,809 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote{term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1} to peer peer2 04:49:53,809 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 2 04:49:53,809 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 04:49:53,809 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 04:49:53,809 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:49:53,809 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 04:49:53,809 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:49:53,809 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 04:49:53,809 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#1171340301] 04:49:53,820 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate502] 04:49:53,820 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer503#961123045] 04:49:53,820 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer504#985978268] 04:49:53,822 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:49:53,822 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:49:53,822 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:49:53,822 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior505#1766956145] 04:49:53,833 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate506] 04:49:53,835 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:49:53,835 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:49:53,835 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:49:53,836 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999}, my term is 1 04:49:53,836 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 04:49:53,836 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 04:49:53,836 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#816592739] 04:49:53,837 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate508] 04:49:53,839 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:49:53,839 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:49:53,839 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:49:53,839 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1}, my term is 1 04:49:53,839 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 04:49:53,839 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 04:49:53,839 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior509#399899263] 04:49:53,840 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate510] 04:49:53,841 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:49:53,841 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:49:53,841 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:49:53,841 PM [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 04:49:53,841 PM [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 04:49:53,841 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:49:53,841 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 04:49:53,841 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:49:53,841 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:49:53,841 PM [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 04:49:53,841 PM [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 04:49:53,841 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 04:49:53,841 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:49:53,841 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:49:53,841 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}, my term is 2 04:49:53,841 PM [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 04:49:53,841 PM [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 04:49:53,841 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 04:49:53,841 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 04:49:53,841 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:49:53,841 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 04:49:53,841 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply{term=100, voteGranted=false}, my term is 2 04:49:53,841 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than Candidate's term 2 - switching to Follower 04:49:53,841 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 04:49:53,841 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior511#552078442] 04:49:53,842 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate512] 04:49:53,843 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 04:49:53,843 PM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 04:49:53,843 PM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 04:49:53,843 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#1297640993] 04:49:53,844 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate514] 04:49:53,844 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:49:53,845 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:49:53,845 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 04:49:53,845 PM [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 04:49:53,845 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 04:49:53,845 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior515#1356664415] 04:49:53,845 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate516] 04:49:53,846 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 04:49:53,846 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 04:49:53,846 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 04:49:53,846 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999}, my term is 1001 04:49:53,846 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 04:49:53,846 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply{term=1001, voteGranted=false} 04:49:53,846 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior517#495456661] 04:49:53,847 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate518] [INFO] [01/29/2025 16:49:53.847] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 04:49:53,847 PM [test-pekko.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [01/29/2025 16:49:53.848] [test-pekko.actor.default-dispatcher-6] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.37:17355) [INFO] [pekkoDeadLetter][01/29/2025 16:49:53.849] [test-pekko.actor.default-dispatcher-11] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1466643122] 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:49:53,849 PM [test-pekko.actor.default-dispatcher-11] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1466643122] 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/29/2025 16:49:53.849] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.37:17355] - Exiting completed 04:49:53,850 PM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.37:17355] - Exiting completed [INFO] [01/29/2025 16:49:53.849] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.37:17355] - Shutting down... [INFO] [01/29/2025 16:49:53.850] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.37:17355] - Successfully shut down 04:49:53,850 PM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.37:17355] - Shutting down... 04:49:53,850 PM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.37:17355] - Successfully shut down [INFO] [01/29/2025 16:49:53.852] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.37:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [01/29/2025 16:49:53.852] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.37:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 04:49:53,852 PM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 04:49:53,852 PM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [01/29/2025 16:49:53.855] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.37:17355/system/remoting-terminator] Remoting shut down. 04:49:53,855 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [01/29/2025 16:49:53.856] [test-pekko.actor.internal-dispatcher-4] [EventStream] shutting down: StandardOutLogger