[DEBUG] [04/21/2024 11:16:59.676] [main] [EventStream(akka://test)] logger log1-TestEventListener started 11:16:59,677 AM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [04/21/2024 11:16:59.678] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [04/21/2024 11:16:59.678] [main] [EventStream(akka://test)] Default Loggers started [INFO] [04/21/2024 11:16:59.726] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.21:25520] with UID [1448529707949158047] [INFO] [04/21/2024 11:16:59.728] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.21:25520] - Starting up, Akka version [2.6.21] ... 11:16:59,729 AM [test-akka.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.21:25520] with UID [1448529707949158047] 11:16:59,729 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.21:25520] - Starting up, Akka version [2.6.21] ... 11:16:59,747 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.21:25520] - Registered cluster JMX MBean [akka:type=Cluster] 11:16:59,747 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.21:25520] - Started up successfully 11:16:59,747 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.21:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 11:16:59,747 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.21:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [INFO] [04/21/2024 11:16:59.734] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.21:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [04/21/2024 11:16:59.734] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.21:25520] - Started up successfully [INFO] [04/21/2024 11:16:59.742] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.21:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [04/21/2024 11:16:59.742] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.21:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 11:16:59,780 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:16:59,795 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:16:59,796 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:16:59,801 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 11:16:59,801 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 11:16:59,801 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:16:59,801 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 11:16:59,801 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior170#1880431499] 11:16:59,813 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate171] 11:16:59,814 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer172#-1064047436] 11:16:59,919 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:16:59,920 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 11:16:59,920 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:16:59,920 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 11:16:59,921 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 11:16:59,921 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 11:16:59,921 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 11:16:59,921 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior173#1108925407] 11:16:59,932 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate174] 11:16:59,933 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer175#1189242090] 11:17:00,38 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:17:00,38 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:17:00,38 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 11:17:00,41 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 11:17:00,41 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 11:17:00,41 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 11:17:00,43 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior176#-1388945112] 11:17:00,55 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate177] 11:17:00,56 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer178#1734821012] 11:17:00,60 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:17:00,60 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:17:00,61 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:17:00,62 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 11:17:00,62 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=[]] 11:17:00,62 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 11:17:00,62 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:17:00,62 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 11:17:00,63 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior179#-294710677] 11:17:00,74 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate180] 11:17:00,74 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer181#-1199977605] 11:17:00,182 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:17:00,182 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 11:17:00,186 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 11:17:00,186 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:17:00,186 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 11:17:00,186 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 11:17:00,186 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 11:17:00,186 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 11:17:00,187 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 11:17:00,188 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 11:17:00,189 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:17:00,189 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:17:00,189 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:17:00,189 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 11:17:00,189 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior182#-1634096269] 11:17:00,201 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate183] 11:17:00,203 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer184#-1958191914] 11:17:00,204 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer185#846880190] 11:17:00,210 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:17:00,210 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:17:00,210 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:17:00,213 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 11:17:00,213 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 11:17:00,213 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 11:17:00,214 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior186#-198671774] 11:17:00,225 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate187] 11:17:00,225 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer188#-1256924562] 11:17:00,233 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:17:00,233 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:17:00,233 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 11:17:00,234 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 11:17:00,234 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]]] 11:17:00,234 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 11:17:00,234 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:17:00,234 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 11:17:00,235 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior189#463129158] 11:17:00,247 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate190] 11:17:00,251 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:17:00,251 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:17:00,251 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 11:17:00,252 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 11:17:00,252 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 11:17:00,252 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 11:17:00,253 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior191#2016105625] 11:17:00,264 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate192] 11:17:00,265 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer193#335373247] 11:17:00,267 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:17:00,267 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:17:00,267 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:17:00,268 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior194#91214228] 11:17:00,279 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate195] 11:17:00,443 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 11:17:00,445 AM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 11:17:00,445 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 11:17:00,445 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 11:17:00,850 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 11:17:00,851 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 11:17:00,851 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 11:17:00,851 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 11:17:00,851 AM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 11:17:00,851 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:17:00,852 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:17:00,852 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:17:00,852 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:17:00,853 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:17:00,853 AM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 11:17:00,853 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior196#1663066825] 11:17:00,865 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate197] 11:17:00,865 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer198#-2031292853] 11:17:00,866 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer199#-783365305] 11:17:00,866 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer200#-473754894] 11:17:00,867 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer201#110202750] 11:17:00,871 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:17:00,871 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 11:17:00,874 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 11:17:00,874 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 11:17:00,874 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 11:17:00,874 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 11:17:00,874 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 11:17:00,874 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 11:17:00,875 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 11:17:00,875 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 11:17:00,875 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 11:17:00,875 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 11:17:00,875 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 11:17:00,875 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 11:17:00,875 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 11:17:00,875 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:17:00,875 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:17:00,875 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:17:00,875 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:17:00,875 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:17:00,875 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 11:17:00,875 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior202#-1949162444] 11:17:00,887 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate203] 11:17:00,887 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer204#1034920747] 11:17:00,888 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer205#1487990536] 11:17:00,888 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer206#809666742] 11:17:00,888 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer207#-1156172174] 11:17:00,892 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:17:00,892 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:17:00,892 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:17:00,892 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior208#-586440833] 11:17:00,904 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate209] 11:17:01,8 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:17:01,8 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:17:01,8 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:17:01,8 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 11:17:01,8 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 11:17:01,8 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:17:01,8 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:17:01,8 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior210#366915761] 11:17:01,20 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate211] 11:17:01,125 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:17:01,125 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:17:01,125 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:17:01,126 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 11:17:01,126 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 11:17:01,126 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior212#1054173136] 11:17:01,138 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate213] 11:17:01,138 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer214#1637479735] 11:17:01,141 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:17:01,141 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 11:17:01,144 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 11:17:01,144 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:17:01,144 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 11:17:01,144 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 11:17:01,144 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 11:17:01,144 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 11:17:01,144 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 11:17:01,144 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:17:01,144 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:17:01,144 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:17:01,144 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:17:01,145 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior215#1895122965] 11:17:01,156 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate216] 11:17:01,156 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer217#620579270] 11:17:01,157 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer218#1821064071] 11:17:01,161 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:17:01,162 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:17:01,162 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:17:01,162 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior219#1383034091] 11:17:01,173 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate220] 11:17:01,178 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:17:01,178 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:17:01,178 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:17:01,178 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 11:17:01,178 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 11:17:01,178 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 11:17:01,178 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior221#-281528342] 11:17:01,189 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate222] 11:17:01,194 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:17:01,194 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:17:01,194 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:17:01,194 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 11:17:01,194 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 11:17:01,194 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 11:17:01,194 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior223#-1222083138] 11:17:01,205 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate224] 11:17:01,209 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:17:01,209 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:17:01,209 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:17:01,209 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 11:17:01,209 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 11:17:01,209 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:17:01,209 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 11:17:01,209 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:17:01,209 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:17:01,210 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 11:17:01,210 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 11:17:01,210 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 11:17:01,210 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:17:01,210 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:17:01,210 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 11:17:01,210 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 11:17:01,210 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 11:17:01,210 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 11:17:01,210 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 11:17:01,210 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:17:01,210 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:17:01,210 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 11:17:01,210 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 11:17:01,211 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 11:17:01,211 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior225#1387127673] 11:17:01,222 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate226] 11:17:01,326 AM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 11:17:01,326 AM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 11:17:01,326 AM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 11:17:01,326 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior227#570512910] 11:17:01,337 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate228] 11:17:01,340 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:17:01,340 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:17:01,340 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 11:17:01,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 11:17:01,340 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 11:17:01,341 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior229#2064167041] 11:17:01,352 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate230] 11:17:01,354 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:17:01,354 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:17:01,354 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 11:17:01,354 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 11:17:01,354 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 11:17:01,354 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 11:17:01,355 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior231#281099585] 11:17:01,366 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate232] [INFO] [04/21/2024 11:17:01.367] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 11:17:01,368 AM [test-akka.actor.default-dispatcher-11] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [04/21/2024 11:17:01.370] [test-akka.actor.default-dispatcher-11] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.170.21:25520) [INFO] [akkaDeadLetter][04/21/2024 11:17:01.370] [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#-782118743] 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'. 11:17:01,373 AM [test-akka.actor.default-dispatcher-6] [INFO] LocalActorRef - Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-782118743] 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'. [INFO] [04/21/2024 11:17:01.373] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.21:25520] - Exiting completed [INFO] [04/21/2024 11:17:01.373] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.21:25520] - Shutting down... 11:17:01,374 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.21:25520] - Exiting completed 11:17:01,374 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.21:25520] - Shutting down... 11:17:01,374 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.21:25520] - Successfully shut down [INFO] [04/21/2024 11:17:01.374] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.21:25520] - Successfully shut down 11:17:01,377 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 11:17:01,377 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [04/21/2024 11:17:01.377] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.170.21:25520/system/remoting-terminator] Shutting down remote daemon. [INFO] [04/21/2024 11:17:01.377] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.170.21:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 11:17:01,381 AM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [04/21/2024 11:17:01.381] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.170.21:25520/system/remoting-terminator] Remoting shut down.