[DEBUG] [03/25/2024 01:13:25.721] [main] [EventStream(akka://test)] logger log1-TestEventListener started 01:13:25,724 AM [test-akka.actor.default-dispatcher-4] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [03/25/2024 01:13:25.725] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [03/25/2024 01:13:25.725] [main] [EventStream(akka://test)] Default Loggers started [INFO] [03/25/2024 01:13:25.769] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.190:25520] with UID [4730551569972743308] [INFO] [03/25/2024 01:13:25.771] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.190:25520] - Starting up, Akka version [2.6.21] ... 01:13:25,771 AM [test-akka.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.190:25520] with UID [4730551569972743308] 01:13:25,771 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.190:25520] - Starting up, Akka version [2.6.21] ... [INFO] [03/25/2024 01:13:25.776] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.190:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [03/25/2024 01:13:25.776] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.190:25520] - Started up successfully 01:13:25,782 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.190:25520] - Registered cluster JMX MBean [akka:type=Cluster] 01:13:25,782 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.190:25520] - Started up successfully [INFO] [03/25/2024 01:13:25.782] [test-akka.actor.internal-dispatcher-8] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.190: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 01:13:25.793] [test-akka.actor.internal-dispatcher-8] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.190:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 01:13:25,801 AM [test-akka.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [akka://test@10.30.171.190:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 01:13:25,801 AM [test-akka.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [akka://test@10.30.171.190:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 01:13:25,822 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:25,844 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:25,844 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:25,846 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:13:25,846 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:13:25,846 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:13:25,846 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 01:13:25,846 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior170#127910022] 01:13:25,858 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate171] 01:13:25,858 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer172#-508851672] 01:13:25,963 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:25,965 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 01:13:25,965 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:25,965 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:13:25,966 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 01:13:25,966 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:13:25,966 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:13:25,966 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior173#1069874594] 01:13:25,977 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate174] 01:13:25,978 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer175#-1984888063] 01:13:26,86 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:26,86 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:26,86 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:13:26,89 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:13:26,89 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:13:26,89 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 01:13:26,89 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior176#-121772867] 01:13:26,101 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate177] 01:13:26,101 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer178#1293343490] 01:13:26,205 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:26,205 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:26,205 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:26,206 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:13:26,207 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:13:26,207 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 01:13:26,207 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:13:26,207 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 01:13:26,207 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior179#-583445007] 01:13:26,219 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate180] 01:13:26,219 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer181#1732061748] 01:13:26,223 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:26,223 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 01:13:26,224 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 01:13:26,224 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:26,224 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:13:26,224 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 01:13:26,224 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 01:13:26,224 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:13:26,224 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 01:13:26,228 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 01:13:26,229 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:13:26,229 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:13:26,229 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:13:26,229 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 01:13:26,229 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior182#-468577575] 01:13:26,241 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate183] 01:13:26,241 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer184#-1816985600] 01:13:26,242 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer185#-744832818] 01:13:26,346 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:26,346 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:26,346 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:26,347 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 01:13:26,347 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:13:26,347 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 01:13:26,347 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior186#250647570] 01:13:26,359 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate187] 01:13:26,359 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer188#-1337907538] 01:13:26,463 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:26,463 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:26,463 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:13:26,463 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:13:26,464 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:13:26,464 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 01:13:26,464 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:13:26,464 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 01:13:26,464 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior189#-975871268] 01:13:26,476 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate190] 01:13:26,479 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:26,479 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:26,479 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:13:26,481 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:13:26,481 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:13:26,481 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 01:13:26,481 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior191#-1170467647] 01:13:26,492 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate192] 01:13:26,493 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer193#-1333872721] 01:13:26,495 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:26,495 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:26,495 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:26,495 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior194#-2143509135] 01:13:26,506 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate195] 01:13:26,776 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 01:13:26,779 AM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 01:13:26,779 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 01:13:26,780 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 01:13:27,183 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 01:13:27,184 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 01:13:27,184 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 01:13:27,185 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:13:27,185 AM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 01:13:27,185 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:13:27,186 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:13:27,186 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:13:27,186 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:13:27,187 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:13:27,187 AM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 01:13:27,187 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior196#-61189999] 01:13:27,199 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate197] 01:13:27,199 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer198#595362722] 01:13:27,199 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer199#50833497] 01:13:27,200 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer200#-1164392100] 01:13:27,200 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer201#-1348302692] 01:13:27,203 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:27,203 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 01:13:27,207 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 01:13:27,207 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:13:27,207 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 01:13:27,207 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 01:13:27,207 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 01:13:27,207 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 01:13:27,208 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 01:13:27,208 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 01:13:27,208 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 01:13:27,208 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:13:27,208 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 01:13:27,208 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 01:13:27,208 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 01:13:27,208 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:13:27,208 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:13:27,208 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:13:27,208 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:13:27,209 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:13:27,209 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 01:13:27,209 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior202#540285168] 01:13:27,220 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate203] 01:13:27,220 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer204#945734905] 01:13:27,221 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer205#514496636] 01:13:27,221 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer206#-1342646331] 01:13:27,222 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer207#-2115456791] 01:13:27,326 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:27,326 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:27,326 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:27,326 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior208#440343828] 01:13:27,338 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate209] 01:13:27,341 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:27,341 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:27,341 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:27,341 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 01:13:27,341 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 01:13:27,341 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:13:27,341 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:13:27,341 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior210#1611213451] 01:13:27,352 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate211] 01:13:27,355 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:27,355 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:27,355 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:27,358 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:13:27,358 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 01:13:27,359 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior212#1545946689] 01:13:27,370 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate213] 01:13:27,370 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer214#809596142] 01:13:27,373 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:27,373 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 01:13:27,374 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 01:13:27,374 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:27,374 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:13:27,374 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 01:13:27,374 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 01:13:27,375 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:13:27,375 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 01:13:27,375 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:13:27,375 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:13:27,375 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:13:27,375 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:13:27,375 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior215#-798744299] 01:13:27,387 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate216] 01:13:27,387 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer217#-1987814659] 01:13:27,387 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer218#65364208] 01:13:27,391 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:27,391 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:27,391 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:27,392 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior219#651805581] 01:13:27,403 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate220] 01:13:27,406 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:27,406 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:27,406 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:27,406 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 01:13:27,406 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:13:27,406 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 01:13:27,406 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior221#-494473872] 01:13:27,417 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate222] 01:13:27,419 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:27,419 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:27,419 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:27,419 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 01:13:27,419 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:13:27,419 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 01:13:27,420 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior223#-1932936907] 01:13:27,430 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate224] 01:13:27,433 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:27,433 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:27,433 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:27,433 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:13:27,433 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:13:27,433 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:13:27,434 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:13:27,434 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:27,434 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:27,434 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:13:27,434 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:13:27,434 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:13:27,434 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:27,434 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:27,434 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 01:13:27,434 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:13:27,434 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:13:27,434 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 01:13:27,434 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:13:27,434 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:27,434 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:13:27,434 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 01:13:27,435 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:13:27,435 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:13:27,435 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior225#259161995] 01:13:27,446 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate226] 01:13:27,449 AM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 01:13:27,449 AM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 01:13:27,449 AM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 01:13:27,449 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior227#308030230] 01:13:27,460 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate228] 01:13:27,464 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:27,464 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:27,464 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:13:27,464 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:13:27,464 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 01:13:27,464 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior229#-215219110] 01:13:27,475 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate230] 01:13:27,478 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:13:27,478 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:13:27,478 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:13:27,478 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:13:27,478 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:13:27,478 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 01:13:27,478 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior231#-305280957] 01:13:27,489 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate232] [INFO] [03/25/2024 01:13:27.490] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 01:13:27,491 AM [test-akka.actor.default-dispatcher-5] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [03/25/2024 01:13:27.494] [test-akka.actor.default-dispatcher-12] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.171.190:25520) [INFO] [03/25/2024 01:13:27.494] [test-akka.actor.internal-dispatcher-8] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.190:25520] - Exiting completed [INFO] [03/25/2024 01:13:27.494] [test-akka.actor.internal-dispatcher-8] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.190:25520] - Shutting down... [INFO] [03/25/2024 01:13:27.494] [test-akka.actor.internal-dispatcher-8] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.190:25520] - Successfully shut down 01:13:27,495 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.190:25520] - Exiting completed 01:13:27,495 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.190:25520] - Shutting down... 01:13:27,495 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.190:25520] - Successfully shut down [INFO] [akkaDeadLetter][03/25/2024 01:13:27.495] [test-akka.actor.default-dispatcher-12] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-915829429] 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:13:27,501 AM [test-akka.actor.default-dispatcher-12] [INFO] LocalActorRef - Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-915829429] 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:13:27,503 AM [test-akka.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [03/25/2024 01:13:27.503] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.171.190:25520/system/remoting-terminator] Shutting down remote daemon. [INFO] [03/25/2024 01:13:27.503] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.171.190:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 01:13:27,503 AM [test-akka.actor.default-dispatcher-13] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [03/25/2024 01:13:27.509] [test-akka.remote.default-remote-dispatcher-6] [akka://test@10.30.171.190:25520/system/remoting-terminator] Remoting shut down. 01:13:27,509 AM [test-akka.actor.default-dispatcher-13] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [03/25/2024 01:13:27.509] [test-akka.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger