[DEBUG] [11/03/2025 14:13:13.967] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 02:13:13,968 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [11/03/2025 14:13:13.968] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [11/03/2025 14:13:13.968] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [11/03/2025 14:13:13.979] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.251:17355] with UID [1040201716201096461] [INFO] [11/03/2025 14:13:13.980] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.251:17355] - Starting up, Pekko version [1.0.3] ... 02:13:13,981 PM [test-pekko.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.251:17355] with UID [1040201716201096461] 02:13:13,981 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.251:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [11/03/2025 14:13:13.983] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.251:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [11/03/2025 14:13:13.983] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.251:17355] - Started up successfully 02:13:13,984 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.251:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 02:13:13,984 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.251:17355] - Started up successfully [INFO] [11/03/2025 14:13:13.992] [test-pekko.actor.internal-dispatcher-8] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.251:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 02:13:13,993 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.251:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [11/03/2025 14:13:13.992] [test-pekko.actor.internal-dispatcher-8] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.251:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 02:13:13,993 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.251:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 02:13:14,101 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:13:14,101 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:13:14,101 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:13:14,102 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 02:13:14,103 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 5 in "AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than Candidate's term 2 - switching to Follower 02:13:14,103 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:13:14,103 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 02:13:14,103 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior676#1256073023] 02:13:14,114 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate677] 02:13:14,114 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer678#1807568793] 02:13:14,217 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:13:14,218 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 02:13:14,218 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:13:14,218 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 02:13:14,218 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 02:13:14,218 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 02:13:14,218 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 02:13:14,218 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior679#-1086910671] 02:13:14,219 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate680] 02:13:14,219 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer681#-1551363540] 02:13:14,221 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:13:14,221 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:13:14,221 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 02:13:14,222 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 02:13:14,222 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 02:13:14,222 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 02:13:14,222 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior682#-974511611] 02:13:14,223 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate683] 02:13:14,223 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer684#-1285359533] 02:13:14,225 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:13:14,225 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:13:14,225 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:13:14,225 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 02:13:14,225 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleAppendEntries: AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] 02:13:14,225 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 02:13:14,225 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:13:14,225 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 02:13:14,226 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior685#-1185149438] 02:13:14,227 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate686] 02:13:14,227 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer687#-2078176014] 02:13:14,228 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:13:14,228 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 02:13:14,229 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 02:13:14,229 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:13:14,229 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 02:13:14,229 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 02:13:14,229 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 02:13:14,229 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 02:13:14,229 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 02:13:14,229 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 02:13:14,229 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:13:14,229 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:13:14,229 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:13:14,229 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 02:13:14,229 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior688#-965880213] 02:13:14,230 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate689] 02:13:14,230 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer690#-287016498] 02:13:14,230 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer691#-848039801] 02:13:14,231 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:13:14,231 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:13:14,231 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:13:14,231 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 02:13:14,231 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 02:13:14,231 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 02:13:14,231 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior692#234463775] 02:13:14,232 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate693] 02:13:14,232 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer694#349314557] 02:13:14,233 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:13:14,233 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:13:14,233 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 02:13:14,233 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]], my term is 2 02:13:14,233 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleAppendEntries: AppendEntries [leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 02:13:14,233 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 02:13:14,233 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:13:14,233 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 02:13:14,233 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior695#-1074215903] 02:13:14,234 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate696] 02:13:14,235 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:13:14,235 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:13:14,235 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 02:13:14,235 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 02:13:14,235 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 02:13:14,235 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 02:13:14,235 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior697#-1808361003] 02:13:14,235 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate698] 02:13:14,235 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer699#-981816614] 02:13:14,236 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:13:14,236 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:13:14,236 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:13:14,237 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior700#945811340] 02:13:14,237 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate701] 02:13:14,239 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 02:13:14,240 PM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 02:13:14,240 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 02:13:14,240 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 02:13:14,642 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 02:13:14,642 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 02:13:14,642 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 02:13:14,643 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 02:13:14,643 PM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 02:13:14,643 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:13:14,643 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:13:14,643 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:13:14,643 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:13:14,644 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:13:14,644 PM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 02:13:14,644 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior702#1765302461] 02:13:14,645 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate703] 02:13:14,645 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer704#-2128147225] 02:13:14,645 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer705#1610865128] 02:13:14,645 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer706#-1851375563] 02:13:14,646 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer707#1935837683] 02:13:14,648 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:13:14,648 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 02:13:14,650 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 02:13:14,650 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 02:13:14,650 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 02:13:14,650 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 02:13:14,650 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 02:13:14,650 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 02:13:14,650 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 02:13:14,650 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 02:13:14,650 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 02:13:14,650 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 02:13:14,650 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 02:13:14,650 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 02:13:14,650 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 02:13:14,650 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:13:14,650 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:13:14,650 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:13:14,650 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:13:14,651 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:13:14,651 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 02:13:14,651 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior708#651026080] 02:13:14,652 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate709] 02:13:14,652 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer710#-856084958] 02:13:14,652 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer711#1882626082] 02:13:14,652 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer712#804686020] 02:13:14,652 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer713#-1286968768] 02:13:14,653 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:13:14,654 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:13:14,654 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:13:14,654 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior714#-807419392] 02:13:14,654 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate715] 02:13:14,655 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:13:14,655 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:13:14,655 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:13:14,655 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 02:13:14,655 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 02:13:14,655 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:13:14,655 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 02:13:14,655 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior716#-643522408] 02:13:14,656 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate717] 02:13:14,657 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:13:14,657 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:13:14,657 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:13:14,657 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 02:13:14,657 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 02:13:14,657 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior718#2099342751] 02:13:14,658 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate719] 02:13:14,658 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer720#-1165389225] 02:13:14,659 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:13:14,659 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 02:13:14,659 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 02:13:14,659 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:13:14,659 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 02:13:14,659 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 02:13:14,659 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 02:13:14,659 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 02:13:14,659 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 02:13:14,660 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:13:14,660 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:13:14,660 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:13:14,660 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 02:13:14,660 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior721#-1988743549] 02:13:14,660 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate722] 02:13:14,660 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer723#1806969724] 02:13:14,660 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/peer724#208325724] 02:13:14,661 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:13:14,661 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:13:14,661 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:13:14,661 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior725#790764323] 02:13:14,662 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate726] 02:13:14,663 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:13:14,663 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:13:14,663 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:13:14,663 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 02:13:14,663 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 02:13:14,663 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 02:13:14,663 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior727#-1775809672] 02:13:14,663 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate728] 02:13:14,664 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:13:14,664 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:13:14,664 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:13:14,664 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 02:13:14,664 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 02:13:14,664 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 02:13:14,664 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior729#-1473175401] 02:13:14,665 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate730] 02:13:14,665 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:13:14,666 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:13:14,666 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:13:14,666 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 02:13:14,666 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than Candidate's term 2 - switching to Follower 02:13:14,666 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:13:14,666 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 02:13:14,666 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:13:14,666 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:13:14,666 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 02:13:14,666 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 02:13:14,666 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 02:13:14,666 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:13:14,666 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:13:14,666 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 02:13:14,666 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 02:13:14,666 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 02:13:14,666 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 02:13:14,666 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 02:13:14,666 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:13:14,666 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:13:14,666 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 02:13:14,666 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 02:13:14,666 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 02:13:14,666 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior731#1032134092] 02:13:14,666 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate732] 02:13:14,667 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 02:13:14,667 PM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 02:13:14,667 PM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 02:13:14,667 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior733#-557812856] 02:13:14,668 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate734] 02:13:14,669 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:13:14,669 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:13:14,669 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 02:13:14,669 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=4, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 1001 02:13:14,669 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 02:13:14,669 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior735#-324058022] 02:13:14,669 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate736] 02:13:14,670 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:13:14,670 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:13:14,670 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 02:13:14,670 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 02:13:14,670 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 02:13:14,670 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 02:13:14,670 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior737#1333616883] 02:13:14,670 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/candidate738] 02:13:14,671 PM [test-pekko.actor.default-dispatcher-11] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [11/03/2025 14:13:14.671] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [11/03/2025 14:13:14.672] [test-pekko.actor.default-dispatcher-5] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.251:17355) [INFO] [11/03/2025 14:13:14.672] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.251:17355] - Exiting completed 02:13:14,672 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.251:17355] - Exiting completed 02:13:14,672 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.251:17355] - Shutting down... 02:13:14,672 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.251:17355] - Successfully shut down [INFO] [11/03/2025 14:13:14.672] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.251:17355] - Shutting down... 02:13:14,672 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#2057002298] 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] [11/03/2025 14:13:14.672] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.251:17355] - Successfully shut down [INFO] [pekkoDeadLetter][11/03/2025 14:13:14.672] [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#2057002298] 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] [11/03/2025 14:13:14.673] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.170.251:17355/system/remoting-terminator] Shutting down remote daemon. 02:13:14,673 PM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 02:13:14,673 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [11/03/2025 14:13:14.673] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.170.251:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 02:13:14,674 PM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [11/03/2025 14:13:14.674] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.170.251:17355/system/remoting-terminator] Remoting shut down.