[DEBUG] [11/06/2025 21:30:24.098] [main] [EventStream(akka://test)] logger log1-TestEventListener started 09:30:24,99 PM [test-akka.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [11/06/2025 21:30:24.099] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [11/06/2025 21:30:24.099] [main] [EventStream(akka://test)] Default Loggers started [INFO] [11/06/2025 21:30:24.115] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.10:25520] with UID [-2276659274300126523] [INFO] [11/06/2025 21:30:24.116] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.10:25520] - Starting up, Akka version [2.6.21] ... [INFO] [11/06/2025 21:30:24.119] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.10:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [11/06/2025 21:30:24.119] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.10:25520] - Started up successfully [INFO] [11/06/2025 21:30:24.119] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.10:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [11/06/2025 21:30:24.119] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.10:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 09:30:24,120 PM [test-akka.actor.default-dispatcher-8] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.10:25520] with UID [-2276659274300126523] 09:30:24,120 PM [test-akka.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [akka://test@10.30.170.10:25520] - Starting up, Akka version [2.6.21] ... 09:30:24,120 PM [test-akka.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [akka://test@10.30.170.10:25520] - Registered cluster JMX MBean [akka:type=Cluster] 09:30:24,120 PM [test-akka.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [akka://test@10.30.170.10:25520] - Started up successfully 09:30:24,120 PM [test-akka.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [akka://test@10.30.170.10:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 09:30:24,120 PM [test-akka.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [akka://test@10.30.170.10:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 09:30:24,130 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:30:24,130 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:30:24,130 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:30:24,131 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 09:30:24,131 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 09:30:24,131 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:30:24,131 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 09:30:24,131 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior676#-1395158317] 09:30:24,132 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate677] 09:30:24,132 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer678#-1534524829] 09:30:24,133 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:30:24,133 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 09:30:24,133 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:30:24,133 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 09:30:24,133 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 09:30:24,133 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 09:30:24,133 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 09:30:24,133 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior679#-1241294263] 09:30:24,133 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate680] 09:30:24,133 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer681#1846590236] 09:30:24,134 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:30:24,134 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:30:24,134 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 09:30:24,134 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 09:30:24,134 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 09:30:24,134 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 09:30:24,135 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior682#-176944754] 09:30:24,135 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate683] 09:30:24,135 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer684#599338209] 09:30:24,136 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:30:24,136 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:30:24,136 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:30:24,136 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 09:30:24,136 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=[]] 09:30:24,136 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 09:30:24,136 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:30:24,136 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 09:30:24,136 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior685#-1226524439] 09:30:24,137 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate686] 09:30:24,137 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer687#762144171] 09:30:24,137 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:30:24,137 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 09:30:24,138 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 09:30:24,138 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:30:24,138 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 09:30:24,138 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 09:30:24,138 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 09:30:24,138 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 09:30:24,138 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 09:30:24,138 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 09:30:24,138 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 09:30:24,138 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 09:30:24,138 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:30:24,138 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 09:30:24,138 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior688#1777701166] 09:30:24,139 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate689] 09:30:24,139 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer690#-1120961925] 09:30:24,139 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer691#-1782229303] 09:30:24,140 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:30:24,140 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:30:24,140 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:30:24,140 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 09:30:24,140 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 09:30:24,140 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 09:30:24,140 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior692#194054026] 09:30:24,140 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate693] 09:30:24,140 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer694#1083969393] 09:30:24,141 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:30:24,141 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:30:24,141 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 09:30:24,141 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 09:30:24,141 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]]] 09:30:24,141 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 09:30:24,141 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:30:24,141 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 09:30:24,141 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior695#599956717] 09:30:24,142 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate696] 09:30:24,143 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:30:24,143 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:30:24,143 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 09:30:24,143 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 09:30:24,143 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 09:30:24,143 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 09:30:24,143 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior697#931453070] 09:30:24,143 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate698] 09:30:24,143 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer699#24480065] 09:30:24,144 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:30:24,144 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:30:24,144 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:30:24,144 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior700#351861734] 09:30:24,145 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate701] 09:30:24,147 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 09:30:24,147 PM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 09:30:24,147 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 09:30:24,147 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 09:30:24,550 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 09:30:24,550 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 09:30:24,550 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 09:30:24,550 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 09:30:24,550 PM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 09:30:24,550 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 09:30:24,551 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 09:30:24,551 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 09:30:24,551 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 09:30:24,551 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:30:24,551 PM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 09:30:24,551 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior702#1038332603] 09:30:24,562 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate703] 09:30:24,562 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer704#-1686008972] 09:30:24,563 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer705#371721937] 09:30:24,563 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer706#-1512535532] 09:30:24,564 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer707#1760126200] 09:30:24,667 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:30:24,667 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 09:30:24,669 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 09:30:24,669 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 09:30:24,669 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 09:30:24,669 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 09:30:24,669 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 09:30:24,669 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 09:30:24,669 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 09:30:24,669 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 09:30:24,669 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 09:30:24,669 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 09:30:24,669 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 09:30:24,669 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 09:30:24,669 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 09:30:24,670 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 09:30:24,670 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 09:30:24,670 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 09:30:24,670 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 09:30:24,670 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:30:24,670 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 09:30:24,670 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior708#2056074625] 09:30:24,681 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate709] 09:30:24,681 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer710#1168160686] 09:30:24,681 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer711#-1582754786] 09:30:24,682 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer712#736477487] 09:30:24,682 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer713#-1640672779] 09:30:24,684 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:30:24,684 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:30:24,684 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:30:24,684 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior714#-1078042715] 09:30:24,695 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate715] 09:30:24,798 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:30:24,798 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:30:24,798 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:30:24,798 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 09:30:24,798 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 09:30:24,798 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:30:24,798 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 09:30:24,798 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior716#862685344] 09:30:24,809 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate717] 09:30:24,913 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:30:24,913 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:30:24,913 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:30:24,914 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 09:30:24,914 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 09:30:24,914 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior718#1806813046] 09:30:24,926 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate719] 09:30:24,926 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer720#1693317336] 09:30:24,928 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:30:24,928 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 09:30:24,929 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 09:30:24,929 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:30:24,929 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 09:30:24,929 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 09:30:24,929 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 09:30:24,929 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 09:30:24,929 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 09:30:24,929 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 09:30:24,929 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 09:30:24,929 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:30:24,929 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 09:30:24,929 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior721#309973734] 09:30:24,940 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate722] 09:30:24,940 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer723#112187875] 09:30:24,940 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer724#5208] 09:30:24,942 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:30:24,942 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:30:24,942 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:30:24,942 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior725#1428250996] 09:30:24,953 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate726] 09:30:24,955 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:30:24,955 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:30:24,955 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:30:24,955 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 09:30:24,955 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 09:30:24,955 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 09:30:24,955 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior727#-195543803] 09:30:24,965 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate728] 09:30:24,967 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:30:24,967 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:30:24,967 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:30:24,968 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 09:30:24,968 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 09:30:24,968 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 09:30:24,968 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior729#-362123610] 09:30:24,978 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate730] 09:30:24,980 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:30:24,980 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:30:24,980 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:30:24,980 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 09:30:24,980 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 09:30:24,980 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:30:24,980 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 09:30:24,980 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:30:24,980 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:30:24,980 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 09:30:24,980 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 09:30:24,980 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 09:30:24,980 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:30:24,980 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:30:24,980 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 09:30:24,980 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 09:30:24,981 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 09:30:24,981 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 09:30:24,981 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 09:30:24,981 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:30:24,981 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 09:30:24,981 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 09:30:24,981 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 09:30:24,981 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 09:30:24,981 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior731#1300980434] 09:30:24,991 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate732] 09:30:24,993 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 09:30:24,993 PM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 09:30:24,993 PM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 09:30:24,994 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior733#1295668782] 09:30:25,5 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate734] 09:30:25,6 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:30:25,6 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:30:25,6 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 09:30:25,6 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 09:30:25,6 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 09:30:25,6 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior735#998706236] 09:30:25,17 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate736] 09:30:25,18 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 09:30:25,18 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 09:30:25,18 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 09:30:25,18 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 09:30:25,18 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 09:30:25,18 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 09:30:25,18 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior737#-656879934] 09:30:25,29 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate738] [INFO] [11/06/2025 21:30:25.030] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 09:30:25,30 PM [test-akka.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [11/06/2025 21:30:25.032] [test-akka.actor.default-dispatcher-6] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.170.10:25520) [INFO] [akkaDeadLetter][11/06/2025 21:30:25.032] [test-akka.actor.default-dispatcher-8] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#862126148] was unhandled. [1] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 09:30:25,32 PM [test-akka.actor.default-dispatcher-6] [INFO] LocalActorRef - akkaDeadLetter Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#862126148] was unhandled. [1] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 09:30:25,33 PM [test-akka.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [akka://test@10.30.170.10:25520] - Exiting completed [INFO] [11/06/2025 21:30:25.032] [test-akka.actor.internal-dispatcher-5] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.10:25520] - Exiting completed 09:30:25,33 PM [test-akka.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [akka://test@10.30.170.10:25520] - Shutting down... [INFO] [11/06/2025 21:30:25.033] [test-akka.actor.internal-dispatcher-5] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.10:25520] - Shutting down... 09:30:25,33 PM [test-akka.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [akka://test@10.30.170.10:25520] - Successfully shut down [INFO] [11/06/2025 21:30:25.033] [test-akka.actor.internal-dispatcher-5] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.10:25520] - Successfully shut down [INFO] [11/06/2025 21:30:25.035] [test-akka.remote.default-remote-dispatcher-11] [akka://test@10.30.170.10:25520/system/remoting-terminator] Shutting down remote daemon. 09:30:25,35 PM [test-akka.actor.default-dispatcher-8] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [11/06/2025 21:30:25.035] [test-akka.remote.default-remote-dispatcher-11] [akka://test@10.30.170.10:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 09:30:25,35 PM [test-akka.actor.default-dispatcher-8] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [11/06/2025 21:30:25.037] [test-akka.remote.default-remote-dispatcher-11] [akka://test@10.30.170.10:25520/system/remoting-terminator] Remoting shut down. 09:30:25,38 PM [test-akka.actor.default-dispatcher-8] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [11/06/2025 21:30:25.038] [test-akka.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger