[DEBUG] [03/25/2024 07:42:23.123] [main] [EventStream(akka://test)] logger log1-TestEventListener started 07:42:23,125 AM [test-akka.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [03/25/2024 07:42:23.126] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [03/25/2024 07:42:23.126] [main] [EventStream(akka://test)] Default Loggers started [INFO] [03/25/2024 07:42:23.153] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.89:25520] with UID [3160455677461272236] 07:42:23,154 AM [test-akka.actor.default-dispatcher-7] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.89:25520] with UID [3160455677461272236] [INFO] [03/25/2024 07:42:23.154] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.89:25520] - Starting up, Akka version [2.6.21] ... 07:42:23,155 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.89:25520] - Starting up, Akka version [2.6.21] ... [INFO] [03/25/2024 07:42:23.160] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.89:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [03/25/2024 07:42:23.160] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.89:25520] - Started up successfully 07:42:23,160 AM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.89:25520] - Registered cluster JMX MBean [akka:type=Cluster] 07:42:23,160 AM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.89:25520] - Started up successfully [INFO] [03/25/2024 07:42:23.161] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.89:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [03/25/2024 07:42:23.161] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.89:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 07:42:23,162 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.89:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 07:42:23,162 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.89:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 07:42:23,283 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 07:42:23,284 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 07:42:23,284 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 07:42:23,285 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 07:42:23,285 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 07:42:23,286 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:42:23,286 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 07:42:23,286 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior172#90115432] 07:42:23,298 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate173] 07:42:23,299 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer174#1262758975] 07:42:23,301 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 07:42:23,302 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 07:42:23,302 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 07:42:23,302 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 07:42:23,302 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 07:42:23,302 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 07:42:23,302 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 07:42:23,302 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior175#-1006899488] 07:42:23,313 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate176] 07:42:23,313 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer177#-1048461869] 07:42:23,416 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 07:42:23,417 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 07:42:23,417 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 07:42:23,418 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 07:42:23,418 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 07:42:23,418 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 07:42:23,418 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior178#13621584] 07:42:23,429 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate179] 07:42:23,430 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer180#-747335890] 07:42:23,436 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 07:42:23,436 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 07:42:23,436 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 07:42:23,437 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 07:42:23,437 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=[]] 07:42:23,437 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 07:42:23,437 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:42:23,437 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 07:42:23,438 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior181#-1121569561] 07:42:23,449 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate182] 07:42:23,449 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer183#-168463715] 07:42:23,452 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 07:42:23,452 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 07:42:23,453 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 07:42:23,453 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 07:42:23,453 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 07:42:23,453 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 07:42:23,454 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 07:42:23,454 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 07:42:23,454 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 07:42:23,455 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 07:42:23,455 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 07:42:23,456 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 07:42:23,457 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:42:23,457 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 07:42:23,458 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior184#604295484] 07:42:23,471 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate185] 07:42:23,472 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer186#-1250599084] 07:42:23,475 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer187#215023087] 07:42:23,481 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 07:42:23,481 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 07:42:23,481 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 07:42:23,483 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 07:42:23,483 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 07:42:23,483 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 07:42:23,483 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior188#157043835] 07:42:23,494 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate189] 07:42:23,497 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer190#-1654070024] 07:42:23,602 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 07:42:23,603 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 07:42:23,603 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 07:42:23,603 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 07:42:23,603 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]]] 07:42:23,603 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 07:42:23,603 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:42:23,603 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 07:42:23,604 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior191#341983669] 07:42:23,615 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate192] 07:42:23,720 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 07:42:23,720 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 07:42:23,720 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 07:42:23,722 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 07:42:23,722 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 07:42:23,722 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 07:42:23,722 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior193#-230767980] 07:42:23,734 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate194] 07:42:23,734 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer195#1179098495] 07:42:23,838 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 07:42:23,838 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 07:42:23,838 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 07:42:23,839 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior196#1742854316] 07:42:23,850 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate197] 07:42:24,50 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 07:42:24,52 AM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 07:42:24,52 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 07:42:24,52 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 07:42:24,455 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 07:42:24,455 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 07:42:24,456 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 07:42:24,456 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 07:42:24,456 AM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 07:42:24,456 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 07:42:24,456 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 07:42:24,457 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 07:42:24,457 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 07:42:24,457 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:42:24,457 AM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 07:42:24,457 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior198#665654720] 07:42:24,469 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate199] 07:42:24,469 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer200#1508946393] 07:42:24,470 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer201#304038004] 07:42:24,470 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer202#-1035672203] 07:42:24,470 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer203#1044226334] 07:42:24,574 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 07:42:24,574 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 07:42:24,578 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 07:42:24,578 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 07:42:24,578 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 07:42:24,578 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 07:42:24,578 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 07:42:24,578 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 07:42:24,579 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 07:42:24,579 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 07:42:24,579 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 07:42:24,579 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 07:42:24,579 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 07:42:24,579 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 07:42:24,579 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 07:42:24,579 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 07:42:24,580 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 07:42:24,580 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 07:42:24,580 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 07:42:24,580 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:42:24,580 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 07:42:24,580 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior204#-757883210] 07:42:24,591 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate205] 07:42:24,592 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer206#-1484847051] 07:42:24,592 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer207#-905243801] 07:42:24,593 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer208#627221938] 07:42:24,594 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer209#-1798499172] 07:42:24,597 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 07:42:24,597 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 07:42:24,597 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 07:42:24,597 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior210#593176635] 07:42:24,608 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate211] 07:42:24,611 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 07:42:24,611 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 07:42:24,611 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 07:42:24,611 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 07:42:24,612 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 07:42:24,612 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:42:24,612 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 07:42:24,612 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior212#-1061070571] 07:42:24,623 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate213] 07:42:24,625 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 07:42:24,625 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 07:42:24,625 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 07:42:24,626 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 07:42:24,626 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 07:42:24,626 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior214#-227534964] 07:42:24,638 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate215] 07:42:24,638 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer216#1225074034] 07:42:24,641 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 07:42:24,641 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 07:42:24,642 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 07:42:24,642 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 07:42:24,642 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 07:42:24,642 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 07:42:24,642 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 07:42:24,642 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 07:42:24,642 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 07:42:24,642 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 07:42:24,643 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 07:42:24,643 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:42:24,643 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 07:42:24,643 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior217#1994068819] 07:42:24,654 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate218] 07:42:24,654 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer219#-828822706] 07:42:24,654 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer220#-273223015] 07:42:24,658 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 07:42:24,658 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 07:42:24,658 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 07:42:24,659 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior221#1613566311] 07:42:24,669 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate222] 07:42:24,672 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 07:42:24,672 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 07:42:24,672 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 07:42:24,672 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 07:42:24,672 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 07:42:24,672 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 07:42:24,673 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior223#1634567818] 07:42:24,684 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate224] 07:42:24,686 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 07:42:24,686 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 07:42:24,686 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 07:42:24,686 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 07:42:24,686 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 07:42:24,686 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 07:42:24,686 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior225#-1002389637] 07:42:24,697 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate226] 07:42:24,699 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 07:42:24,699 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 07:42:24,699 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 07:42:24,699 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 07:42:24,699 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 07:42:24,700 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:42:24,700 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 07:42:24,700 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 07:42:24,700 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 07:42:24,700 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 07:42:24,700 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 07:42:24,700 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 07:42:24,700 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 07:42:24,700 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 07:42:24,700 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 07:42:24,700 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 07:42:24,700 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 07:42:24,700 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 07:42:24,700 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 07:42:24,701 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 07:42:24,701 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 07:42:24,701 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 07:42:24,701 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 07:42:24,701 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 07:42:24,701 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior227#-1892048007] 07:42:24,712 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate228] 07:42:24,715 AM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 07:42:24,715 AM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 07:42:24,715 AM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 07:42:24,715 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior229#-70392673] 07:42:24,726 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate230] 07:42:24,727 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 07:42:24,727 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 07:42:24,727 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 07:42:24,727 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 07:42:24,727 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 07:42:24,728 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior231#-1204110527] 07:42:24,738 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate232] 07:42:24,741 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 07:42:24,741 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 07:42:24,741 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 07:42:24,741 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 07:42:24,741 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 07:42:24,742 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 07:42:24,742 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior233#-172786671] 07:42:24,753 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate234] [INFO] [03/25/2024 07:42:24.754] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [03/25/2024 07:42:24.757] [test-akka.actor.default-dispatcher-5] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.171.89:25520) [INFO] [akkaDeadLetter][03/25/2024 07:42:24.756] [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#-120062780] 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'. 07:42:24,757 AM [test-akka.actor.default-dispatcher-5] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 07:42:24,757 AM [test-akka.actor.default-dispatcher-5] [INFO] LocalActorRef - Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-120062780] 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] [03/25/2024 07:42:24.757] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.89:25520] - Exiting completed 07:42:24,759 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.89:25520] - Exiting completed 07:42:24,760 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.89:25520] - Shutting down... 07:42:24,760 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.89:25520] - Successfully shut down [INFO] [03/25/2024 07:42:24.758] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.89:25520] - Shutting down... [INFO] [03/25/2024 07:42:24.758] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.89:25520] - Successfully shut down [INFO] [03/25/2024 07:42:24.762] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.171.89:25520/system/remoting-terminator] Shutting down remote daemon. 07:42:24,762 AM [test-akka.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 07:42:24,762 AM [test-akka.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [03/25/2024 07:42:24.762] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.171.89:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [03/25/2024 07:42:24.765] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.171.89:25520/system/remoting-terminator] Remoting shut down. 07:42:24,766 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down.