[DEBUG] [11/06/2025 17:35:38.056] [main] [EventStream(akka://test)] logger log1-TestEventListener started 05:35:38,56 PM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [11/06/2025 17:35:38.056] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [11/06/2025 17:35:38.056] [main] [EventStream(akka://test)] Default Loggers started [INFO] [11/06/2025 17:35:38.066] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.63:25520] with UID [1028858779901011894] [INFO] [11/06/2025 17:35:38.066] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.63:25520] - Starting up, Akka version [2.6.21] ... 05:35:38,67 PM [test-akka.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.63:25520] with UID [1028858779901011894] 05:35:38,67 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.63:25520] - Starting up, Akka version [2.6.21] ... 05:35:38,70 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.63:25520] - Registered cluster JMX MBean [akka:type=Cluster] 05:35:38,70 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.63:25520] - Started up successfully 05:35:38,70 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.63:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 05:35:38,70 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.63:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [INFO] [11/06/2025 17:35:38.069] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.63:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [11/06/2025 17:35:38.069] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.63:25520] - Started up successfully [INFO] [11/06/2025 17:35:38.070] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.63: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 17:35:38.070] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.63:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 05:35:38,79 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:35:38,79 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:35:38,79 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:35:38,79 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 05:35:38,79 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 05:35:38,79 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:35:38,79 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 05:35:38,80 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior676#-443880900] 05:35:38,90 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate677] 05:35:38,90 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer678#144583591] 05:35:38,92 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:35:38,92 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 05:35:38,92 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:35:38,92 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 05:35:38,92 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 05:35:38,92 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 05:35:38,92 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 05:35:38,92 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior679#867664319] 05:35:38,103 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate680] 05:35:38,103 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer681#-1642846279] 05:35:38,105 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:35:38,105 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:35:38,105 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 05:35:38,105 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 05:35:38,105 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 05:35:38,105 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 05:35:38,105 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior682#630784264] 05:35:38,116 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate683] 05:35:38,116 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer684#-528056354] 05:35:38,118 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:35:38,118 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:35:38,118 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:35:38,118 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 05:35:38,118 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=[]] 05:35:38,118 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 05:35:38,119 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:35:38,119 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 05:35:38,119 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior685#2020075771] 05:35:38,130 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate686] 05:35:38,130 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer687#1086392392] 05:35:38,132 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:35:38,132 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 05:35:38,134 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 05:35:38,134 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:35:38,134 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 05:35:38,134 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 05:35:38,134 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 05:35:38,134 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 05:35:38,134 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 05:35:38,134 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 05:35:38,134 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 05:35:38,134 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 05:35:38,134 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:35:38,134 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 05:35:38,134 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior688#647166894] 05:35:38,145 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate689] 05:35:38,145 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer690#-853369182] 05:35:38,145 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer691#1926790900] 05:35:38,247 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:35:38,247 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:35:38,247 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:35:38,248 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 05:35:38,248 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 05:35:38,248 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 05:35:38,248 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior692#51422880] 05:35:38,259 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate693] 05:35:38,259 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer694#515791208] 05:35:38,361 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:35:38,361 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:35:38,361 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 05:35:38,361 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 05:35:38,361 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]]] 05:35:38,361 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 05:35:38,362 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:35:38,362 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 05:35:38,362 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior695#644002260] 05:35:38,373 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate696] 05:35:38,475 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:35:38,475 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:35:38,475 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 05:35:38,476 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 05:35:38,476 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 05:35:38,476 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 05:35:38,476 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior697#1163758530] 05:35:38,487 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate698] 05:35:38,487 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer699#-1019707307] 05:35:38,589 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:35:38,589 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:35:38,589 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:35:38,589 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior700#946007933] 05:35:38,600 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate701] 05:35:38,705 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 05:35:38,705 PM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 05:35:38,705 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 05:35:38,705 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 05:35:39,108 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 05:35:39,108 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 05:35:39,108 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 05:35:39,108 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 05:35:39,108 PM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 05:35:39,108 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 05:35:39,108 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 05:35:39,109 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 05:35:39,109 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 05:35:39,109 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:35:39,109 PM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 05:35:39,109 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior702#-847604299] 05:35:39,120 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate703] 05:35:39,120 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer704#-1170984611] 05:35:39,120 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer705#-1694606506] 05:35:39,120 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer706#835356276] 05:35:39,120 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer707#-246519748] 05:35:39,122 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:35:39,122 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 05:35:39,124 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 05:35:39,124 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 05:35:39,124 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 05:35:39,124 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 05:35:39,124 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 05:35:39,124 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 05:35:39,124 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 05:35:39,124 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 05:35:39,124 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 05:35:39,124 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 05:35:39,124 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 05:35:39,124 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 05:35:39,124 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 05:35:39,124 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 05:35:39,124 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 05:35:39,124 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 05:35:39,124 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 05:35:39,125 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:35:39,125 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 05:35:39,125 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior708#-1052577459] 05:35:39,125 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate709] 05:35:39,125 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer710#-858427716] 05:35:39,125 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer711#1097557693] 05:35:39,126 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer712#530482235] 05:35:39,126 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer713#-1426831302] 05:35:39,127 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:35:39,127 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:35:39,127 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:35:39,128 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior714#156328202] 05:35:39,128 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate715] 05:35:39,129 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:35:39,129 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:35:39,129 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:35:39,129 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 05:35:39,129 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 05:35:39,129 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:35:39,129 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 05:35:39,129 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior716#-1733918406] 05:35:39,129 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate717] 05:35:39,130 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:35:39,130 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:35:39,130 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:35:39,130 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 05:35:39,130 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 05:35:39,131 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior718#1708786046] 05:35:39,131 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate719] 05:35:39,131 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer720#-457576550] 05:35:39,132 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:35:39,132 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 05:35:39,132 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 05:35:39,132 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:35:39,132 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 05:35:39,132 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 05:35:39,132 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 05:35:39,132 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 05:35:39,132 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 05:35:39,132 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 05:35:39,132 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 05:35:39,132 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:35:39,132 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 05:35:39,132 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior721#-45928558] 05:35:39,133 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate722] 05:35:39,133 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer723#-1024949608] 05:35:39,133 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer724#-664156141] 05:35:39,134 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:35:39,134 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:35:39,134 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:35:39,134 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior725#397426282] 05:35:39,134 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate726] 05:35:39,135 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:35:39,135 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:35:39,135 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:35:39,135 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 05:35:39,135 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 05:35:39,135 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 05:35:39,135 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior727#-1648668381] 05:35:39,135 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate728] 05:35:39,136 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:35:39,136 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:35:39,136 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:35:39,136 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 05:35:39,136 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 05:35:39,136 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 05:35:39,136 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior729#1346863033] 05:35:39,137 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate730] 05:35:39,137 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:35:39,137 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:35:39,137 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:35:39,137 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 05:35:39,137 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 05:35:39,137 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:35:39,137 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 05:35:39,137 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:35:39,137 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:35:39,137 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 05:35:39,137 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 05:35:39,138 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 05:35:39,138 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:35:39,138 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:35:39,138 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 05:35:39,138 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 05:35:39,138 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 05:35:39,138 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 05:35:39,138 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 05:35:39,138 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:35:39,138 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:35:39,138 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 05:35:39,138 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 05:35:39,138 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 05:35:39,138 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior731#906254572] 05:35:39,138 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate732] 05:35:39,139 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 05:35:39,139 PM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 05:35:39,139 PM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 05:35:39,139 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior733#-869625453] 05:35:39,139 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate734] 05:35:39,140 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:35:39,140 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:35:39,140 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 05:35:39,140 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 05:35:39,140 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 05:35:39,140 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior735#-704803649] 05:35:39,140 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate736] 05:35:39,141 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:35:39,141 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:35:39,141 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 05:35:39,141 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 05:35:39,141 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 05:35:39,141 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 05:35:39,141 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior737#-2071568131] 05:35:39,142 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate738] [INFO] [11/06/2025 17:35:39.142] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 05:35:39,142 PM [test-akka.actor.default-dispatcher-12] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [11/06/2025 17:35:39.143] [test-akka.actor.default-dispatcher-12] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.171.63:25520) [INFO] [akkaDeadLetter][11/06/2025 17:35:39.143] [test-akka.actor.default-dispatcher-6] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#1826292631] 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'. 05:35:39,143 PM [test-akka.actor.default-dispatcher-6] [INFO] LocalActorRef - akkaDeadLetter Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#1826292631] 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'. 05:35:39,143 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.63:25520] - Exiting completed 05:35:39,143 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.63:25520] - Shutting down... [INFO] [11/06/2025 17:35:39.143] [test-akka.actor.internal-dispatcher-10] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.63:25520] - Exiting completed [INFO] [11/06/2025 17:35:39.143] [test-akka.actor.internal-dispatcher-10] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.63:25520] - Shutting down... [INFO] [11/06/2025 17:35:39.143] [test-akka.actor.internal-dispatcher-10] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.63:25520] - Successfully shut down 05:35:39,143 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.63:25520] - Successfully shut down 05:35:39,145 PM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [11/06/2025 17:35:39.145] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.171.63:25520/system/remoting-terminator] Shutting down remote daemon. [INFO] [11/06/2025 17:35:39.145] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.171.63:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 05:35:39,145 PM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [11/06/2025 17:35:39.147] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.171.63:25520/system/remoting-terminator] Remoting shut down. 05:35:39,147 PM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [11/06/2025 17:35:39.147] [test-akka.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger