[DEBUG] [04/23/2024 18:47:25.887] [main] [EventStream(akka://test)] logger log1-TestEventListener started 06:47:25,887 PM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [04/23/2024 18:47:25.888] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [04/23/2024 18:47:25.888] [main] [EventStream(akka://test)] Default Loggers started [INFO] [04/23/2024 18:47:25.922] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.22:25520] with UID [2956031735927766319] [INFO] [04/23/2024 18:47:25.923] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.22:25520] - Starting up, Akka version [2.6.21] ... 06:47:25,924 PM [test-akka.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.22:25520] with UID [2956031735927766319] 06:47:25,924 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.22:25520] - Starting up, Akka version [2.6.21] ... 06:47:25,933 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.22:25520] - Registered cluster JMX MBean [akka:type=Cluster] 06:47:25,934 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.22:25520] - Started up successfully 06:47:25,934 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.22:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 06:47:25,934 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.22:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [INFO] [04/23/2024 18:47:25.928] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.22:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [04/23/2024 18:47:25.928] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.22:25520] - Started up successfully [INFO] [04/23/2024 18:47:25.932] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.22:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [04/23/2024 18:47:25.932] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.22:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 06:47:25,979 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:47:26,0 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:47:26,0 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:47:26,1 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 06:47:26,1 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 06:47:26,2 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:47:26,2 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 06:47:26,2 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior170#-863148406] 06:47:26,13 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate171] 06:47:26,14 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer172#1120689645] 06:47:26,17 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:47:26,17 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 06:47:26,17 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:47:26,18 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 06:47:26,18 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 06:47:26,18 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 06:47:26,18 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 06:47:26,18 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior173#1391861624] 06:47:26,29 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate174] 06:47:26,29 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer175#14687833] 06:47:26,32 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:47:26,32 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:47:26,32 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 06:47:26,33 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 06:47:26,33 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 06:47:26,33 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 06:47:26,34 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior176#-1844779125] 06:47:26,45 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate177] 06:47:26,45 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer178#-351993639] 06:47:26,48 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:47:26,48 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:47:26,48 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:47:26,49 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 06:47:26,49 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=[]] 06:47:26,49 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 06:47:26,49 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:47:26,49 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 06:47:26,49 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior179#1869055448] 06:47:26,60 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate180] 06:47:26,61 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer181#1326864719] 06:47:26,165 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:47:26,165 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 06:47:26,167 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 06:47:26,167 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:47:26,167 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 06:47:26,167 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 06:47:26,167 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 06:47:26,167 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 06:47:26,167 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 06:47:26,168 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 06:47:26,168 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:47:26,168 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:47:26,168 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:47:26,168 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 06:47:26,168 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior182#1208220830] 06:47:26,179 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate183] 06:47:26,180 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer184#-524145833] 06:47:26,180 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer185#1533168416] 06:47:26,283 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:47:26,283 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:47:26,283 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:47:26,284 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 06:47:26,284 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 06:47:26,284 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 06:47:26,284 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior186#-1130716554] 06:47:26,295 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate187] 06:47:26,295 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer188#-1878501936] 06:47:26,297 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:47:26,297 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:47:26,297 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 06:47:26,297 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 06:47:26,297 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]]] 06:47:26,297 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 06:47:26,298 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:47:26,298 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 06:47:26,298 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior189#1046101524] 06:47:26,308 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate190] 06:47:26,312 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:47:26,312 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:47:26,312 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 06:47:26,312 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 06:47:26,312 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 06:47:26,312 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 06:47:26,312 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior191#180406977] 06:47:26,323 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate192] 06:47:26,323 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer193#-1301387037] 06:47:26,328 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:47:26,328 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:47:26,328 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:47:26,328 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior194#1019176973] 06:47:26,339 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate195] 06:47:26,458 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 06:47:26,460 PM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 06:47:26,461 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 06:47:26,461 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 06:47:26,865 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 06:47:26,865 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 06:47:26,866 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 06:47:26,866 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 06:47:26,866 PM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 06:47:26,866 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:47:26,867 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:47:26,867 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:47:26,867 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:47:26,867 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:47:26,868 PM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 06:47:26,868 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior196#-1412689111] 06:47:26,879 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate197] 06:47:26,880 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer198#49658979] 06:47:26,880 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer199#1303484219] 06:47:26,881 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer200#-1088992095] 06:47:26,881 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer201#-712330490] 06:47:26,885 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:47:26,885 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 06:47:26,889 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 06:47:26,890 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 06:47:26,890 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 06:47:26,890 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 06:47:26,890 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 06:47:26,890 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 06:47:26,890 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 06:47:26,890 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 06:47:26,890 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 06:47:26,890 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 06:47:26,890 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 06:47:26,890 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 06:47:26,891 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 06:47:26,891 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 06:47:26,891 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 06:47:26,891 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 06:47:26,891 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 06:47:26,891 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:47:26,891 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 06:47:26,891 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior202#1119905724] 06:47:26,902 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate203] 06:47:26,903 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer204#1125533749] 06:47:26,903 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer205#1846708179] 06:47:26,904 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer206#-764579583] 06:47:26,904 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer207#-242228926] 06:47:27,9 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:47:27,10 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:47:27,10 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:47:27,10 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior208#123337141] 06:47:27,21 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate209] 06:47:27,25 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:47:27,25 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:47:27,25 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:47:27,25 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 06:47:27,25 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 06:47:27,25 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:47:27,25 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 06:47:27,25 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior210#228454440] 06:47:27,37 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate211] 06:47:27,141 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:47:27,141 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:47:27,141 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:47:27,143 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 06:47:27,143 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 06:47:27,143 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior212#1479134054] 06:47:27,155 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate213] 06:47:27,155 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer214#-1128731191] 06:47:27,259 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:47:27,259 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 06:47:27,260 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 06:47:27,260 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:47:27,261 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 06:47:27,261 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 06:47:27,261 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 06:47:27,261 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 06:47:27,261 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 06:47:27,261 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:47:27,261 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:47:27,262 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:47:27,262 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 06:47:27,262 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior215#1451347957] 06:47:27,273 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate216] 06:47:27,275 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer217#1320124086] 06:47:27,275 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer218#-476175874] 06:47:27,280 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:47:27,281 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:47:27,281 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:47:27,281 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior219#-84653096] 06:47:27,293 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate220] 06:47:27,297 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:47:27,297 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:47:27,297 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:47:27,297 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 06:47:27,297 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 06:47:27,297 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 06:47:27,297 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior221#648870507] 06:47:27,308 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate222] 06:47:27,311 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:47:27,311 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:47:27,311 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:47:27,311 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 06:47:27,311 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 06:47:27,311 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 06:47:27,311 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior223#2019332917] 06:47:27,322 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate224] 06:47:27,324 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:47:27,324 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:47:27,324 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:47:27,324 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 06:47:27,324 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 06:47:27,324 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:47:27,324 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 06:47:27,324 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:47:27,324 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:47:27,324 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 06:47:27,324 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 06:47:27,324 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 06:47:27,324 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:47:27,324 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:47:27,324 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 06:47:27,324 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 06:47:27,324 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 06:47:27,324 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 06:47:27,325 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 06:47:27,325 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:47:27,325 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:47:27,325 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 06:47:27,325 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 06:47:27,325 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 06:47:27,325 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior225#-1974777245] 06:47:27,336 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate226] 06:47:27,338 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 06:47:27,339 PM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 06:47:27,339 PM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 06:47:27,339 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior227#678768763] 06:47:27,350 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate228] 06:47:27,352 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:47:27,352 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:47:27,352 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 06:47:27,352 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 06:47:27,352 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 06:47:27,352 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior229#-1263608890] 06:47:27,364 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate230] 06:47:27,467 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:47:27,468 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:47:27,468 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 06:47:27,468 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 06:47:27,468 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 06:47:27,468 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 06:47:27,468 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior231#-682536641] 06:47:27,479 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate232] 06:47:27,481 PM [test-akka.actor.default-dispatcher-5] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [04/23/2024 18:47:27.480] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [04/23/2024 18:47:27.482] [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.22:25520) 06:47:27,483 PM [test-akka.actor.default-dispatcher-11] [INFO] LocalActorRef - Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-1616866455] 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][04/23/2024 18:47:27.483] [test-akka.actor.default-dispatcher-5] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-1616866455] 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/23/2024 18:47:27.484] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.22:25520] - Exiting completed [INFO] [04/23/2024 18:47:27.484] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.22:25520] - Shutting down... [INFO] [04/23/2024 18:47:27.484] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.22:25520] - Successfully shut down 06:47:27,486 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.22:25520] - Exiting completed 06:47:27,486 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.22:25520] - Shutting down... 06:47:27,486 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.22:25520] - Successfully shut down [INFO] [04/23/2024 18:47:27.488] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.171.22:25520/system/remoting-terminator] Shutting down remote daemon. 06:47:27,488 PM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [04/23/2024 18:47:27.488] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.171.22:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 06:47:27,488 PM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [04/23/2024 18:47:27.493] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.171.22:25520/system/remoting-terminator] Remoting shut down. 06:47:27,493 PM [test-akka.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [04/23/2024 18:47:27.493] [test-akka.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger