[DEBUG] [10/17/2024 10:41:12.536] [main] [EventStream(akka://test)] logger log1-TestEventListener started 10:41:12,536 AM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [10/17/2024 10:41:12.536] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [10/17/2024 10:41:12.536] [main] [EventStream(akka://test)] Default Loggers started [INFO] [10/17/2024 10:41:12.546] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.164:25520] with UID [3026002350951054994] 10:41:12,546 AM [test-akka.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.164:25520] with UID [3026002350951054994] [INFO] [10/17/2024 10:41:12.547] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.164:25520] - Starting up, Akka version [2.6.21] ... 10:41:12,547 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.164:25520] - Starting up, Akka version [2.6.21] ... [INFO] [10/17/2024 10:41:12.549] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.164:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [10/17/2024 10:41:12.549] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.164:25520] - Started up successfully [INFO] [10/17/2024 10:41:12.550] [test-akka.actor.internal-dispatcher-10] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.164:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [10/17/2024 10:41:12.550] [test-akka.actor.internal-dispatcher-10] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.164:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 10:41:12,551 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.164:25520] - Registered cluster JMX MBean [akka:type=Cluster] 10:41:12,551 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.164:25520] - Started up successfully 10:41:12,551 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.164:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 10:41:12,551 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.164:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 10:41:12,661 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:41:12,661 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:41:12,662 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:41:12,662 AM [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 10:41:12,662 AM [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 10:41:12,663 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:41:12,663 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 10:41:12,663 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior456#-1259114298] 10:41:12,674 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate457] 10:41:12,674 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer458#-1874985691] 10:41:12,676 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:41:12,677 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 10:41:12,677 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:41:12,677 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 10:41:12,677 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 10:41:12,677 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 10:41:12,677 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 10:41:12,677 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior459#1817483566] 10:41:12,688 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate460] 10:41:12,688 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer461#1118313845] 10:41:12,690 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:41:12,690 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:41:12,690 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 10:41:12,691 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 10:41:12,691 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 10:41:12,691 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 10:41:12,691 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior462#601715711] 10:41:12,702 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate463] 10:41:12,702 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer464#-1896926955] 10:41:12,704 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:41:12,704 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:41:12,704 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:41:12,704 AM [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 10:41:12,704 AM [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=[]] 10:41:12,704 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 10:41:12,705 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:41:12,705 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 10:41:12,705 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior465#-1609094614] 10:41:12,716 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate466] 10:41:12,716 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer467#-913519276] 10:41:12,717 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:41:12,717 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 10:41:12,718 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 10:41:12,718 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:41:12,718 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 10:41:12,718 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 10:41:12,718 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 10:41:12,718 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 10:41:12,718 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 10:41:12,718 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 10:41:12,718 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:41:12,718 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:41:12,719 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:41:12,719 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 10:41:12,719 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior468#637065007] 10:41:12,729 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate469] 10:41:12,730 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer470#-905675245] 10:41:12,730 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer471#-501979325] 10:41:12,732 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:41:12,732 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:41:12,732 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:41:12,732 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 10:41:12,733 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0] - currentTerm: 2, votedFor: candidate, lastIndex: 1, lastTerm: 1 10:41:12,733 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 10:41:12,733 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior472#973397853] 10:41:12,743 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate473] 10:41:12,744 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer474#412402982] 10:41:12,745 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:41:12,745 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:41:12,745 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 10:41:12,745 AM [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 10:41:12,745 AM [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]]] 10:41:12,745 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 10:41:12,745 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:41:12,745 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 10:41:12,745 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior475#1344473190] 10:41:12,756 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate476] 10:41:12,759 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:41:12,760 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:41:12,760 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 10:41:12,761 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 10:41:12,761 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 10:41:12,761 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 10:41:12,761 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior477#42668277] 10:41:12,772 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate478] 10:41:12,772 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer479#-1319994311] 10:41:12,773 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:41:12,773 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:41:12,773 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:41:12,774 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior480#-2040968200] 10:41:12,784 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate481] 10:41:12,789 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 10:41:12,789 AM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 10:41:12,789 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 10:41:12,790 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 10:41:13,192 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 10:41:13,192 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 10:41:13,192 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 10:41:13,192 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 10:41:13,192 AM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 10:41:13,192 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:41:13,193 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:41:13,193 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:41:13,193 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:41:13,193 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:41:13,193 AM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 10:41:13,193 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior482#-2109783373] 10:41:13,204 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate483] 10:41:13,204 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer484#186252452] 10:41:13,204 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer485#2140282838] 10:41:13,204 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer486#-1798448333] 10:41:13,205 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer487#-1224266613] 10:41:13,207 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:41:13,207 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 10:41:13,209 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 10:41:13,209 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 10:41:13,209 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 10:41:13,209 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 10:41:13,209 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 10:41:13,209 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 10:41:13,209 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 10:41:13,209 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 10:41:13,209 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 10:41:13,209 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 10:41:13,209 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 10:41:13,209 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 10:41:13,209 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 10:41:13,209 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 10:41:13,209 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 10:41:13,209 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 10:41:13,209 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 10:41:13,209 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:41:13,209 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 10:41:13,209 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior488#254030865] 10:41:13,220 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate489] 10:41:13,220 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer490#-215532456] 10:41:13,220 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer491#-544500401] 10:41:13,220 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer492#-1827519503] 10:41:13,220 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer493#25990965] 10:41:13,222 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:41:13,222 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:41:13,222 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:41:13,222 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior494#1359734335] 10:41:13,232 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate495] 10:41:13,234 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:41:13,234 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:41:13,234 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:41:13,234 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 10:41:13,234 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 10:41:13,234 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:41:13,234 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 10:41:13,234 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior496#593461948] 10:41:13,245 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate497] 10:41:13,246 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:41:13,247 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:41:13,247 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:41:13,247 AM [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 10:41:13,247 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 10:41:13,247 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior498#-2081627796] 10:41:13,258 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate499] 10:41:13,258 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer500#-1718342028] 10:41:13,260 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:41:13,260 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 10:41:13,261 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 10:41:13,261 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:41:13,261 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 10:41:13,261 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 10:41:13,261 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 10:41:13,261 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 10:41:13,262 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 10:41:13,262 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:41:13,262 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:41:13,262 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:41:13,262 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 10:41:13,262 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior501#-1233806535] 10:41:13,273 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate502] 10:41:13,273 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer503#-2126346920] 10:41:13,273 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer504#-1994925598] 10:41:13,275 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:41:13,275 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:41:13,275 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:41:13,275 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior505#-2106048350] 10:41:13,286 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate506] 10:41:13,288 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:41:13,288 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:41:13,288 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:41:13,288 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 10:41:13,288 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 10:41:13,288 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 10:41:13,289 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior507#-982874681] 10:41:13,299 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate508] 10:41:13,301 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:41:13,301 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:41:13,301 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:41:13,301 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 10:41:13,301 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1] - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 10:41:13,302 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 10:41:13,302 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior509#947141160] 10:41:13,312 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate510] 10:41:13,314 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:41:13,314 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:41:13,314 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:41:13,314 AM [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 10:41:13,314 AM [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 10:41:13,314 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:41:13,315 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 10:41:13,315 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:41:13,315 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:41:13,315 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntriesReply [term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5], my term is 2 10:41:13,315 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "AppendEntriesReply [term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5]" message is greater than Candidate's term 2 - switching to Follower 10:41:13,315 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 10:41:13,315 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:41:13,315 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:41:13,315 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 10:41:13,315 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100]" message is greater than Candidate's term 2 - switching to Follower 10:41:13,315 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100] - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 10:41:13,315 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 10:41:13,315 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 10:41:13,315 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:41:13,315 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:41:13,315 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 10:41:13,315 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "RequestVoteReply [term=100, voteGranted=false]" message is greater than Candidate's term 2 - switching to Follower 10:41:13,315 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 10:41:13,315 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior511#-2145318906] 10:41:13,326 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate512] 10:41:13,327 AM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 10:41:13,327 AM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 10:41:13,327 AM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 10:41:13,327 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior513#1621113977] 10:41:13,338 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate514] 10:41:13,339 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:41:13,339 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:41:13,340 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 10:41:13,340 AM [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 10:41:13,340 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 10:41:13,340 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior515#-12047245] 10:41:13,350 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate516] 10:41:13,352 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:41:13,352 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:41:13,352 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 10:41:13,352 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 10:41:13,352 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 10:41:13,352 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 10:41:13,353 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior517#-202728495] 10:41:13,363 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate518] [INFO] [10/17/2024 10:41:13.364] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 10:41:13,364 AM [test-akka.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [10/17/2024 10:41:13.366] [test-akka.actor.default-dispatcher-6] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.171.164:25520) [INFO] [akkaDeadLetter][10/17/2024 10:41:13.366] [test-akka.actor.default-dispatcher-11] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-512479686] 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'. 10:41:13,366 AM [test-akka.actor.default-dispatcher-11] [INFO] LocalActorRef - akkaDeadLetter Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-512479686] 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'. 10:41:13,366 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.164:25520] - Exiting completed 10:41:13,366 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.164:25520] - Shutting down... [INFO] [10/17/2024 10:41:13.366] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.164:25520] - Exiting completed [INFO] [10/17/2024 10:41:13.366] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.164:25520] - Shutting down... 10:41:13,367 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.164:25520] - Successfully shut down [INFO] [10/17/2024 10:41:13.367] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.164:25520] - Successfully shut down [INFO] [10/17/2024 10:41:13.368] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.164:25520/system/remoting-terminator] Shutting down remote daemon. 10:41:13,368 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [10/17/2024 10:41:13.368] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.164:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 10:41:13,368 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. 10:41:13,370 AM [test-akka.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [10/17/2024 10:41:13.370] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.164:25520/system/remoting-terminator] Remoting shut down. [DEBUG] [10/17/2024 10:41:13.370] [test-akka.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger