[DEBUG] [10/16/2024 18:22:10.582] [main] [EventStream(akka://test)] logger log1-TestEventListener started 06:22:10,582 PM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [10/16/2024 18:22:10.582] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [10/16/2024 18:22:10.582] [main] [EventStream(akka://test)] Default Loggers started [INFO] [10/16/2024 18:22:10.591] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.146:25520] with UID [5252141936862464405] 06:22:10,591 PM [test-akka.actor.default-dispatcher-8] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.146:25520] with UID [5252141936862464405] [INFO] [10/16/2024 18:22:10.591] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.146:25520] - Starting up, Akka version [2.6.21] ... 06:22:10,592 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.146:25520] - Starting up, Akka version [2.6.21] ... [INFO] [10/16/2024 18:22:10.593] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.146:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [10/16/2024 18:22:10.593] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.146:25520] - Started up successfully 06:22:10,593 PM [test-akka.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [akka://test@10.30.171.146:25520] - Registered cluster JMX MBean [akka:type=Cluster] 06:22:10,593 PM [test-akka.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [akka://test@10.30.171.146:25520] - Started up successfully [INFO] [10/16/2024 18:22:10.595] [test-akka.actor.internal-dispatcher-11] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.146:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 06:22:10,595 PM [test-akka.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [akka://test@10.30.171.146:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [10/16/2024 18:22:10.596] [test-akka.actor.internal-dispatcher-11] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.146:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 06:22:10,596 PM [test-akka.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [akka://test@10.30.171.146:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 06:22:10,601 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:10,602 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:10,602 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:10,602 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:22:10,602 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:22:10,602 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:22:10,602 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 06:22:10,602 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior456#604424079] 06:22:10,613 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate457] 06:22:10,613 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer458#-1184962235] 06:22:10,615 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:10,615 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 06:22:10,615 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:10,615 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 06:22:10,616 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 06:22:10,616 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 06:22:10,616 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 06:22:10,616 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior459#-697813297] 06:22:10,626 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate460] 06:22:10,626 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer461#1710638425] 06:22:10,628 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:10,628 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:10,628 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 06:22:10,628 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 06:22:10,628 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:22:10,628 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 06:22:10,628 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior462#-809854187] 06:22:10,639 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate463] 06:22:10,639 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer464#72623626] 06:22:10,640 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:10,640 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:10,640 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:10,641 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:22:10,641 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:22:10,641 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 06:22:10,641 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:22:10,641 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 06:22:10,641 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior465#-195387929] 06:22:10,652 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate466] 06:22:10,652 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer467#1008319679] 06:22:10,654 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:10,654 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 06:22:10,654 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 06:22:10,654 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:10,654 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 06:22:10,655 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 06:22:10,655 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 06:22:10,655 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 06:22:10,655 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 06:22:10,655 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 06:22:10,655 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:22:10,655 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:22:10,655 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:22:10,655 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 06:22:10,655 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior468#-170888551] 06:22:10,666 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate469] 06:22:10,666 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer470#-1562200687] 06:22:10,666 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer471#-1761447028] 06:22:10,668 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:10,668 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:10,668 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:10,669 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 06:22:10,669 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:22:10,669 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 06:22:10,669 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior472#-745228753] 06:22:10,680 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate473] 06:22:10,680 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer474#-465736046] 06:22:10,681 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:10,681 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:10,681 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 06:22:10,681 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:22:10,681 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:22:10,681 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 06:22:10,682 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:22:10,682 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 06:22:10,682 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior475#-1960881928] 06:22:10,692 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate476] 06:22:10,696 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:10,696 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:10,696 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 06:22:10,696 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 06:22:10,696 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:22:10,696 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 06:22:10,697 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior477#-2132717141] 06:22:10,707 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate478] 06:22:10,707 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer479#10195462] 06:22:10,710 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:10,710 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:10,710 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:10,710 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior480#-579275776] 06:22:10,721 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate481] 06:22:10,725 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 06:22:10,725 PM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 06:22:10,725 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 06:22:10,725 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 06:22:11,129 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 06:22:11,129 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 06:22:11,129 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 06:22:11,129 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 06:22:11,129 PM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 06:22:11,130 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:22:11,130 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:22:11,130 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:22:11,130 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:22:11,130 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:22:11,130 PM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 06:22:11,130 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior482#1959649153] 06:22:11,141 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate483] 06:22:11,141 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer484#-136426313] 06:22:11,142 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer485#1410475889] 06:22:11,142 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer486#10648027] 06:22:11,142 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer487#-219061873] 06:22:11,145 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:11,145 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 06:22:11,146 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 06:22:11,146 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 06:22:11,146 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 06:22:11,146 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 06:22:11,146 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 06:22:11,146 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 06:22:11,146 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 06:22:11,146 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 06:22:11,146 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 06:22:11,146 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 06:22:11,146 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 06:22:11,146 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 06:22:11,147 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 06:22:11,147 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 06:22:11,147 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 06:22:11,147 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 06:22:11,147 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 06:22:11,147 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:22:11,147 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 06:22:11,147 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior488#785508801] 06:22:11,158 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate489] 06:22:11,158 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer490#1612867224] 06:22:11,158 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer491#604677143] 06:22:11,158 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer492#306125036] 06:22:11,158 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer493#1507774733] 06:22:11,160 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:11,160 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:11,160 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:11,160 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior494#-1559296174] 06:22:11,171 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate495] 06:22:11,173 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:11,173 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:11,173 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:11,173 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 06:22:11,173 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 06:22:11,173 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:22:11,173 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 06:22:11,173 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior496#696733418] 06:22:11,184 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate497] 06:22:11,185 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:11,186 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:11,186 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:11,186 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:22:11,186 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 06:22:11,186 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior498#-294118263] 06:22:11,197 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate499] 06:22:11,197 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer500#-1597757768] 06:22:11,198 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:11,198 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 06:22:11,199 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 06:22:11,199 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:11,199 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 06:22:11,199 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 06:22:11,199 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 06:22:11,199 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 06:22:11,199 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 06:22:11,199 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:22:11,199 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:22:11,199 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:22:11,199 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 06:22:11,199 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior501#-768729863] 06:22:11,210 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate502] 06:22:11,210 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer503#397983178] 06:22:11,210 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer504#982325600] 06:22:11,212 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:11,213 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:11,213 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:11,213 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior505#-1601880192] 06:22:11,223 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate506] 06:22:11,225 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:11,225 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:11,225 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:11,226 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 06:22:11,226 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:22:11,226 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 06:22:11,226 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior507#-912576764] 06:22:11,236 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate508] 06:22:11,238 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:11,238 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:11,238 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:11,238 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 06:22:11,238 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:22:11,238 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 06:22:11,238 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior509#1774387322] 06:22:11,248 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate510] 06:22:11,250 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:11,250 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:11,250 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:11,251 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:22:11,251 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:22:11,251 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:22:11,251 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 06:22:11,251 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:11,251 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:11,251 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:22:11,251 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:22:11,251 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 06:22:11,251 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:11,251 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:11,251 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 06:22:11,251 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:22:11,251 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:22:11,251 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 06:22:11,251 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 06:22:11,251 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:11,251 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:11,251 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 06:22:11,251 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:22:11,252 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 06:22:11,252 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior511#858004304] 06:22:11,262 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate512] 06:22:11,263 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 06:22:11,263 PM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 06:22:11,263 PM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 06:22:11,264 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior513#600347425] 06:22:11,274 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate514] 06:22:11,276 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:11,276 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:11,276 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 06:22:11,276 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:22:11,276 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 06:22:11,276 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior515#336352320] 06:22:11,287 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate516] 06:22:11,289 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:11,289 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:11,289 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 06:22:11,289 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 06:22:11,289 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:22:11,289 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 06:22:11,289 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior517#-775374825] 06:22:11,299 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate518] [INFO] [10/16/2024 18:22:11.300] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 06:22:11,301 PM [test-akka.actor.default-dispatcher-8] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [10/16/2024 18:22:11.302] [test-akka.actor.default-dispatcher-8] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.171.146:25520) 06:22:11,302 PM [test-akka.actor.default-dispatcher-8] [INFO] LocalActorRef - akkaDeadLetter Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-132168] 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][10/16/2024 18:22:11.302] [test-akka.actor.default-dispatcher-7] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-132168] 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'. 06:22:11,303 PM [test-akka.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [akka://test@10.30.171.146:25520] - Exiting completed [INFO] [10/16/2024 18:22:11.302] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.146:25520] - Exiting completed 06:22:11,303 PM [test-akka.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [akka://test@10.30.171.146:25520] - Shutting down... [INFO] [10/16/2024 18:22:11.303] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.146:25520] - Shutting down... 06:22:11,303 PM [test-akka.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [akka://test@10.30.171.146:25520] - Successfully shut down [INFO] [10/16/2024 18:22:11.303] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.146:25520] - Successfully shut down [INFO] [10/16/2024 18:22:11.305] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.171.146:25520/system/remoting-terminator] Shutting down remote daemon. [INFO] [10/16/2024 18:22:11.305] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.171.146:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 06:22:11,305 PM [test-akka.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 06:22:11,305 PM [test-akka.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. 06:22:11,309 PM [test-akka.actor.default-dispatcher-8] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [10/16/2024 18:22:11.308] [test-akka.remote.default-remote-dispatcher-10] [akka://test@10.30.171.146:25520/system/remoting-terminator] Remoting shut down. [DEBUG] [10/16/2024 18:22:11.309] [test-akka.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger