[DEBUG] [03/09/2024 01:11:57.488] [main] [EventStream(akka://test)] logger log1-TestEventListener started 01:11:57,490 AM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [03/09/2024 01:11:57.491] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [03/09/2024 01:11:57.491] [main] [EventStream(akka://test)] Default Loggers started 01:11:57,538 AM [test-akka.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.255:25520] with UID [7095987069815688456] [INFO] [03/09/2024 01:11:57.537] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.255:25520] with UID [7095987069815688456] [INFO] [03/09/2024 01:11:57.539] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.255:25520] - Starting up, Akka version [2.6.21] ... 01:11:57,540 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.255:25520] - Starting up, Akka version [2.6.21] ... 01:11:57,548 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.255:25520] - Registered cluster JMX MBean [akka:type=Cluster] 01:11:57,548 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.255:25520] - Started up successfully 01:11:57,548 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.255:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 01:11:57,548 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.255:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [INFO] [03/09/2024 01:11:57.545] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.255:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [03/09/2024 01:11:57.545] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.255:25520] - Started up successfully [INFO] [03/09/2024 01:11:57.547] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.255:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [03/09/2024 01:11:57.547] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.255:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 01:11:57,593 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:57,611 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:57,611 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:57,613 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 01:11:57,613 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 01:11:57,613 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:11:57,613 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 01:11:57,613 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior170#-211600630] 01:11:57,625 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate171] 01:11:57,625 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer172#-734844108] 01:11:57,629 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:57,630 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 01:11:57,630 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:57,630 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:11:57,631 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 01:11:57,631 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:11:57,631 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:11:57,631 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior173#990388940] 01:11:57,642 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate174] 01:11:57,642 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer175#1343099038] 01:11:57,745 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:57,745 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:57,745 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:11:57,746 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:11:57,746 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 01:11:57,746 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 01:11:57,747 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior176#-1166164676] 01:11:57,758 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate177] 01:11:57,759 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer178#387000335] 01:11:57,863 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:57,863 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:57,863 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:57,864 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 01:11:57,864 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=[]] 01:11:57,864 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 01:11:57,865 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:11:57,865 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 01:11:57,865 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior179#-792863512] 01:11:57,877 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate180] 01:11:57,877 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer181#-734320126] 01:11:57,882 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:57,882 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 01:11:57,884 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 01:11:57,884 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:57,884 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:11:57,884 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 01:11:57,884 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 01:11:57,884 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:11:57,884 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 01:11:57,886 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 01:11:57,886 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:11:57,886 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:11:57,887 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:11:57,887 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 01:11:57,887 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior182#-1462405948] 01:11:57,898 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate183] 01:11:57,898 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer184#1790469416] 01:11:57,899 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer185#-499831882] 01:11:57,902 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:57,902 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:57,902 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:57,909 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 01:11:57,909 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 01:11:57,909 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 01:11:57,909 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior186#-259652213] 01:11:57,920 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate187] 01:11:57,921 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer188#1645044970] 01:11:57,925 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:57,925 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:57,925 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:11:57,925 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 01:11:57,925 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]]] 01:11:57,925 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 01:11:57,925 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:11:57,925 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 01:11:57,925 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior189#-1415075771] 01:11:57,937 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate190] 01:11:57,941 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:57,941 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:57,941 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:11:57,942 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:11:57,942 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 01:11:57,942 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 01:11:57,942 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior191#-1005308236] 01:11:57,953 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate192] 01:11:57,953 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer193#1719566094] 01:11:57,957 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:57,957 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:57,957 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:57,957 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior194#-283989086] 01:11:57,969 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate195] 01:11:58,97 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 01:11:58,99 AM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 01:11:58,100 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 01:11:58,100 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 01:11:58,504 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 01:11:58,504 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 01:11:58,504 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 01:11:58,505 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:11:58,505 AM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 01:11:58,505 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:11:58,505 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:11:58,506 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:11:58,506 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:11:58,506 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:11:58,506 AM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 01:11:58,507 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior196#-1776227268] 01:11:58,518 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate197] 01:11:58,519 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer198#1961571338] 01:11:58,519 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer199#-1831084658] 01:11:58,520 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer200#659267189] 01:11:58,520 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer201#2124067120] 01:11:58,525 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:58,526 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 01:11:58,530 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 01:11:58,530 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:11:58,530 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 01:11:58,530 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 01:11:58,530 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 01:11:58,530 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 01:11:58,530 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 01:11:58,530 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 01:11:58,530 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 01:11:58,530 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:11:58,530 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 01:11:58,530 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 01:11:58,531 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 01:11:58,531 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:11:58,531 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:11:58,531 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:11:58,531 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:11:58,531 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:11:58,531 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 01:11:58,531 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior202#-1838354604] 01:11:58,542 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate203] 01:11:58,543 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer204#2121691357] 01:11:58,543 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer205#356000843] 01:11:58,543 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer206#-668743816] 01:11:58,544 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer207#2064339314] 01:11:58,548 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:58,548 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:58,548 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:58,548 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior208#1865822656] 01:11:58,560 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate209] 01:11:58,563 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:58,563 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:58,563 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:58,563 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 01:11:58,564 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 01:11:58,564 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:11:58,564 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:11:58,564 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior210#-945751822] 01:11:58,575 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate211] 01:11:58,582 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:58,583 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:58,583 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:58,584 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 01:11:58,584 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 01:11:58,584 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior212#1772305467] 01:11:58,596 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate213] 01:11:58,596 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer214#-869628054] 01:11:58,701 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:58,701 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 01:11:58,703 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 01:11:58,703 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:58,703 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:11:58,703 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 01:11:58,703 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 01:11:58,704 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:11:58,704 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 01:11:58,704 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:11:58,704 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:11:58,704 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:11:58,704 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:11:58,704 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior215#-1620441073] 01:11:58,716 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate216] 01:11:58,716 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer217#-1125450020] 01:11:58,716 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer218#-314937742] 01:11:58,740 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:58,740 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:58,740 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:58,741 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior219#-53669930] 01:11:58,752 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate220] 01:11:58,757 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:58,757 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:58,757 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:58,758 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 01:11:58,758 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 01:11:58,758 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 01:11:58,758 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior221#1425924039] 01:11:58,770 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate222] 01:11:58,779 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:58,779 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:58,779 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:58,779 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 01:11:58,779 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 01:11:58,779 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 01:11:58,779 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior223#1356617878] 01:11:58,791 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate224] 01:11:58,797 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:58,797 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:58,797 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:58,797 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 01:11:58,797 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 01:11:58,797 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:11:58,797 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:11:58,798 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:58,798 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:58,798 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 01:11:58,798 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 01:11:58,798 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:11:58,798 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:58,798 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:58,798 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 01:11:58,798 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 01:11:58,798 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 01:11:58,798 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 01:11:58,798 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:11:58,798 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:58,798 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:58,798 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 01:11:58,798 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 01:11:58,799 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:11:58,799 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior225#-2143869297] 01:11:58,810 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate226] 01:11:58,915 AM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 01:11:58,915 AM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 01:11:58,915 AM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 01:11:58,915 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior227#508142488] 01:11:58,927 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate228] 01:11:59,31 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:59,32 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:59,32 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:11:59,32 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 01:11:59,32 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 01:11:59,32 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior229#1301280019] 01:11:59,44 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate230] 01:11:59,148 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:59,148 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:59,148 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:11:59,148 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:11:59,148 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 01:11:59,148 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 01:11:59,148 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior231#1013319136] 01:11:59,160 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate232] [INFO] [03/09/2024 01:11:59.161] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 01:11:59,162 AM [test-akka.actor.default-dispatcher-11] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [03/09/2024 01:11:59.163] [test-akka.actor.default-dispatcher-6] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.170.255:25520) [INFO] [03/09/2024 01:11:59.164] [test-akka.actor.internal-dispatcher-10] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.255:25520] - Exiting completed [INFO] [03/09/2024 01:11:59.164] [test-akka.actor.internal-dispatcher-10] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.255:25520] - Shutting down... [INFO] [03/09/2024 01:11:59.164] [test-akka.actor.internal-dispatcher-10] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.255:25520] - Successfully shut down 01:11:59,164 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.170.255:25520] - Exiting completed 01:11:59,164 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.170.255:25520] - Shutting down... 01:11:59,165 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.170.255:25520] - Successfully shut down [INFO] [akkaDeadLetter][03/09/2024 01:11:59.163] [test-akka.actor.default-dispatcher-6] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#52557110] 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'. 01:11:59,165 AM [test-akka.actor.default-dispatcher-5] [INFO] LocalActorRef - Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#52557110] 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'. 01:11:59,168 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 01:11:59,168 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [03/09/2024 01:11:59.167] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.255:25520/system/remoting-terminator] Shutting down remote daemon. [INFO] [03/09/2024 01:11:59.168] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.255:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [03/09/2024 01:11:59.171] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.255:25520/system/remoting-terminator] Remoting shut down. 01:11:59,172 AM [test-akka.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [03/09/2024 01:11:59.172] [test-akka.actor.internal-dispatcher-4] [EventStream] shutting down: StandardOutLogger