[DEBUG] [03/11/2024 14:51:10.577] [main] [EventStream(akka://test)] logger log1-TestEventListener started 02:51:10,582 PM [test-akka.actor.default-dispatcher-4] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [03/11/2024 14:51:10.583] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [03/11/2024 14:51:10.583] [main] [EventStream(akka://test)] Default Loggers started [INFO] [03/11/2024 14:51:10.625] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.251:25520] with UID [-3623725333801247220] 02:51:10,626 PM [test-akka.actor.default-dispatcher-4] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.251:25520] with UID [-3623725333801247220] 02:51:10,628 PM [test-akka.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [akka://test@10.30.171.251:25520] - Starting up, Akka version [2.6.21] ... [INFO] [03/11/2024 14:51:10.627] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.251:25520] - Starting up, Akka version [2.6.21] ... 02:51:10,635 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.251:25520] - Registered cluster JMX MBean [akka:type=Cluster] 02:51:10,636 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.251:25520] - Started up successfully [INFO] [03/11/2024 14:51:10.633] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.251:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [03/11/2024 14:51:10.633] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.251:25520] - Started up successfully 02:51:10,657 PM [test-akka.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [akka://test@10.30.171.251:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 02:51:10,657 PM [test-akka.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [akka://test@10.30.171.251:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [INFO] [03/11/2024 14:51:10.648] [test-akka.actor.internal-dispatcher-9] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.251:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [03/11/2024 14:51:10.648] [test-akka.actor.internal-dispatcher-9] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.251:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 02:51:10,723 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:51:10,742 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:51:10,742 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:51:10,744 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 02:51:10,744 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 5 in "AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than Candidate's term 2 - switching to Follower 02:51:10,744 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:51:10,744 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 02:51:10,744 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior170#-395428825] 02:51:10,756 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate171] 02:51:10,757 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer172#1306428731] 02:51:10,868 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:51:10,869 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 02:51:10,869 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:51:10,869 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 02:51:10,869 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 02:51:10,869 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 02:51:10,869 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 02:51:10,870 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior173#-1938765832] 02:51:10,881 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate174] 02:51:10,882 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer175#-32628532] 02:51:10,890 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:51:10,890 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:51:10,890 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 02:51:10,892 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 02:51:10,892 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 02:51:10,892 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 02:51:10,899 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior176#1250291968] 02:51:10,911 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate177] 02:51:10,912 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer178#1566055970] 02:51:11,16 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:51:11,16 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:51:11,16 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:51:11,17 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 02:51:11,18 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleAppendEntries: AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] 02:51:11,18 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 02:51:11,18 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:51:11,18 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 02:51:11,19 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior179#1140677495] 02:51:11,30 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate180] 02:51:11,31 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer181#884840016] 02:51:11,35 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:51:11,35 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 02:51:11,37 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 02:51:11,37 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:51:11,37 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 02:51:11,37 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 02:51:11,37 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 02:51:11,37 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 02:51:11,37 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 02:51:11,39 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 02:51:11,39 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:51:11,39 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:51:11,40 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:51:11,40 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 02:51:11,40 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior182#-394177428] 02:51:11,51 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate183] 02:51:11,52 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer184#215674571] 02:51:11,52 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer185#-1665261586] 02:51:11,55 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:51:11,55 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:51:11,55 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:51:11,56 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 02:51:11,56 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0] - currentTerm: 2, votedFor: candidate, lastIndex: 1, lastTerm: 1 02:51:11,56 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 02:51:11,57 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior186#-434682710] 02:51:11,68 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate187] 02:51:11,69 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer188#-853832494] 02:51:11,172 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:51:11,172 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:51:11,172 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 02:51:11,172 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]], my term is 2 02:51:11,172 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleAppendEntries: AppendEntries [leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 02:51:11,172 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 02:51:11,173 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:51:11,173 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 02:51:11,173 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior189#-381533879] 02:51:11,185 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate190] 02:51:11,190 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:51:11,190 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:51:11,190 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 02:51:11,192 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 02:51:11,192 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 02:51:11,192 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 02:51:11,192 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior191#-1664033067] 02:51:11,204 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate192] 02:51:11,204 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer193#1392465803] 02:51:11,208 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:51:11,208 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:51:11,208 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:51:11,208 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior194#-1481139019] 02:51:11,220 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate195] 02:51:11,347 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 02:51:11,350 PM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 02:51:11,350 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 02:51:11,350 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 02:51:11,753 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 02:51:11,754 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 02:51:11,754 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 02:51:11,754 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 02:51:11,755 PM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 02:51:11,755 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:51:11,755 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:51:11,756 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:51:11,756 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:51:11,756 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:51:11,756 PM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 02:51:11,757 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior196#1966435468] 02:51:11,768 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate197] 02:51:11,769 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer198#298445805] 02:51:11,769 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer199#-365723147] 02:51:11,770 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer200#149827487] 02:51:11,770 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer201#-1513555803] 02:51:11,774 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:51:11,774 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 02:51:11,779 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 02:51:11,779 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 02:51:11,779 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 02:51:11,779 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 02:51:11,779 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 02:51:11,780 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 02:51:11,782 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 02:51:11,782 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 02:51:11,782 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 02:51:11,782 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 02:51:11,782 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 02:51:11,782 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 02:51:11,782 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 02:51:11,783 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:51:11,783 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:51:11,783 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:51:11,783 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:51:11,783 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:51:11,783 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 02:51:11,783 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior202#-909772520] 02:51:11,794 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate203] 02:51:11,795 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer204#-1119106129] 02:51:11,795 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer205#-644842907] 02:51:11,796 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer206#1703733751] 02:51:11,797 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer207#-1630416363] 02:51:11,803 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:51:11,803 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:51:11,803 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:51:11,803 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior208#-2100205987] 02:51:11,814 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate209] 02:51:11,820 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:51:11,820 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:51:11,820 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:51:11,820 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 02:51:11,820 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 02:51:11,820 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:51:11,820 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 02:51:11,820 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior210#-1028273206] 02:51:11,831 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate211] 02:51:11,833 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:51:11,834 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:51:11,834 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:51:11,834 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 02:51:11,834 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 02:51:11,834 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior212#-1492619570] 02:51:11,845 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate213] 02:51:11,845 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer214#-652294276] 02:51:11,947 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:51:11,947 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 02:51:11,949 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 02:51:11,949 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:51:11,949 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 02:51:11,949 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 02:51:11,949 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 02:51:11,949 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 02:51:11,949 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 02:51:11,949 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:51:11,949 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:51:11,949 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:51:11,949 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 02:51:11,949 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior215#670744868] 02:51:11,960 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate216] 02:51:11,961 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer217#-6099259] 02:51:11,961 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer218#-1069069888] 02:51:11,965 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:51:11,965 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:51:11,965 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:51:11,966 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior219#-335519921] 02:51:11,976 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate220] 02:51:11,980 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:51:11,980 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:51:11,980 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:51:11,980 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 02:51:11,980 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 02:51:11,980 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 02:51:11,981 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior221#-367685614] 02:51:11,992 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate222] 02:51:11,995 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:51:11,995 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:51:11,995 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:51:11,995 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 02:51:11,995 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1] - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 02:51:11,995 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 02:51:11,995 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior223#1119752733] 02:51:12,6 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate224] 02:51:12,10 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:51:12,10 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:51:12,10 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:51:12,10 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 02:51:12,10 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than Candidate's term 2 - switching to Follower 02:51:12,11 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:51:12,11 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 02:51:12,11 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:51:12,11 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:51:12,11 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntriesReply [term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5], my term is 2 02:51:12,11 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "AppendEntriesReply [term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5]" message is greater than Candidate's term 2 - switching to Follower 02:51:12,11 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 02:51:12,11 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:51:12,11 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:51:12,11 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 02:51:12,11 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100]" message is greater than Candidate's term 2 - switching to Follower 02:51:12,11 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100] - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 02:51:12,11 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 02:51:12,11 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 02:51:12,12 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:51:12,12 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 02:51:12,12 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 02:51:12,12 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "RequestVoteReply [term=100, voteGranted=false]" message is greater than Candidate's term 2 - switching to Follower 02:51:12,12 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 02:51:12,12 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior225#1993987436] 02:51:12,23 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate226] 02:51:12,25 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 02:51:12,25 PM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 02:51:12,25 PM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 02:51:12,25 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior227#915741675] 02:51:12,36 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate228] 02:51:12,138 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:51:12,138 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:51:12,138 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 02:51:12,138 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=4, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 1001 02:51:12,138 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 02:51:12,139 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior229#413668571] 02:51:12,150 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate230] 02:51:12,252 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 02:51:12,253 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 02:51:12,253 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 02:51:12,253 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 02:51:12,253 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 02:51:12,253 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 02:51:12,253 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior231#-80518741] 02:51:12,264 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate232] 02:51:12,266 PM [test-akka.actor.default-dispatcher-4] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [03/11/2024 14:51:12.265] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 02:51:12,271 PM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.251:25520] - Exiting completed 02:51:12,271 PM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.251:25520] - Shutting down... 02:51:12,271 PM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.251:25520] - Successfully shut down [WARN] [03/11/2024 14:51:12.272] [test-akka.actor.default-dispatcher-11] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.171.251:25520) [INFO] [03/11/2024 14:51:12.269] [test-akka.actor.internal-dispatcher-9] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.251:25520] - Exiting completed [INFO] [03/11/2024 14:51:12.269] [test-akka.actor.internal-dispatcher-9] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.251:25520] - Shutting down... [INFO] [03/11/2024 14:51:12.269] [test-akka.actor.internal-dispatcher-9] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.251:25520] - Successfully shut down 02:51:12,272 PM [test-akka.actor.default-dispatcher-4] [INFO] LocalActorRef - Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-1233072942] 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] [akkaDeadLetter][03/11/2024 14:51:12.272] [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#-1233072942] 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'. 02:51:12,280 PM [test-akka.actor.default-dispatcher-4] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 02:51:12,280 PM [test-akka.actor.default-dispatcher-4] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [03/11/2024 14:51:12.277] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.251:25520/system/remoting-terminator] Shutting down remote daemon. [INFO] [03/11/2024 14:51:12.277] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.251:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports.