[DEBUG] [01/22/2024 06:56:09.259] [main] [EventStream(akka://test)] logger log1-TestEventListener started 06:56:09,260 AM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [01/22/2024 06:56:09.260] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [01/22/2024 06:56:09.260] [main] [EventStream(akka://test)] Default Loggers started [INFO] [01/22/2024 06:56:09.283] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.69:25520] with UID [-6728309568044044520] [INFO] [01/22/2024 06:56:09.284] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.69:25520] - Starting up, Akka version [2.6.21] ... 06:56:09,285 AM [test-akka.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.69:25520] with UID [-6728309568044044520] 06:56:09,285 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.69:25520] - Starting up, Akka version [2.6.21] ... [INFO] [01/22/2024 06:56:09.290] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.69:25520] - Registered cluster JMX MBean [akka:type=Cluster] 06:56:09,291 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.69:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [01/22/2024 06:56:09.291] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.69:25520] - Started up successfully 06:56:09,292 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.69:25520] - Started up successfully 06:56:09,295 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.69:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 06:56:09,295 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.69:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [INFO] [01/22/2024 06:56:09.294] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.69:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [01/22/2024 06:56:09.294] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.69:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 06:56:09,327 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:56:09,327 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:56:09,327 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:56:09,328 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 06:56:09,328 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 06:56:09,328 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:56:09,328 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 06:56:09,328 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior174#603330291] 06:56:09,340 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate175] 06:56:09,341 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer176#-1331320416] 06:56:09,444 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:56:09,445 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 06:56:09,445 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:56:09,446 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 06:56:09,446 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 06:56:09,446 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 06:56:09,446 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 06:56:09,446 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior177#-1619363109] 06:56:09,457 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate178] 06:56:09,458 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer179#-1887384111] 06:56:09,560 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:56:09,560 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:56:09,560 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 06:56:09,561 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 06:56:09,561 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 06:56:09,561 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 06:56:09,561 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior180#1559945108] 06:56:09,573 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate181] 06:56:09,573 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer182#1727223712] 06:56:09,677 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:56:09,677 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:56:09,677 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:56:09,678 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 06:56:09,678 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=[]] 06:56:09,678 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 06:56:09,678 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:56:09,678 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 06:56:09,679 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior183#-785764871] 06:56:09,690 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate184] 06:56:09,691 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer185#-1968023134] 06:56:09,794 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:56:09,794 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 06:56:09,795 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 06:56:09,795 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:56:09,795 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 06:56:09,796 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 06:56:09,796 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 06:56:09,796 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 06:56:09,796 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 06:56:09,797 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 06:56:09,797 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:56:09,798 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:56:09,801 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:56:09,801 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 06:56:09,801 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior186#-1282249546] 06:56:09,812 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate187] 06:56:09,813 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer188#1083419832] 06:56:09,813 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer189#1333014170] 06:56:09,916 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:56:09,916 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:56:09,916 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:56:09,917 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 06:56:09,917 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 06:56:09,917 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 06:56:09,918 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior190#726620637] 06:56:09,930 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate191] 06:56:09,930 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer192#-562879262] 06:56:10,36 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:56:10,36 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:56:10,36 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 06:56:10,36 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 06:56:10,36 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]]] 06:56:10,36 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 06:56:10,36 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:56:10,36 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 06:56:10,36 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior193#-1373198912] 06:56:10,48 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate194] 06:56:10,154 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:56:10,154 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:56:10,154 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 06:56:10,155 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 06:56:10,155 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 06:56:10,155 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 06:56:10,156 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior195#-2044619228] 06:56:10,167 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate196] 06:56:10,167 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer197#1996348244] 06:56:10,271 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:56:10,271 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:56:10,271 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:56:10,271 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior198#1075796883] 06:56:10,283 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate199] 06:56:10,454 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 06:56:10,454 AM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 06:56:10,454 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 06:56:10,455 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 06:56:10,857 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 06:56:10,858 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 06:56:10,858 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 06:56:10,858 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 06:56:10,858 AM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 06:56:10,858 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:56:10,858 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:56:10,859 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:56:10,859 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:56:10,859 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:56:10,859 AM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 06:56:10,860 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior200#1396806686] 06:56:10,871 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate201] 06:56:10,871 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer202#1238980904] 06:56:10,871 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer203#899648200] 06:56:10,872 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer204#-2028688363] 06:56:10,872 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer205#-1977975425] 06:56:10,874 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:56:10,874 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 06:56:10,876 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 06:56:10,876 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 06:56:10,877 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 06:56:10,877 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 06:56:10,877 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 06:56:10,877 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 06:56:10,877 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 06:56:10,877 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 06:56:10,877 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 06:56:10,877 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 06:56:10,877 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 06:56:10,877 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 06:56:10,877 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 06:56:10,878 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 06:56:10,878 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 06:56:10,878 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 06:56:10,878 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 06:56:10,878 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:56:10,878 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 06:56:10,878 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior206#-1115602321] 06:56:10,889 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate207] 06:56:10,890 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer208#594069467] 06:56:10,890 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer209#153335582] 06:56:10,891 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer210#892642354] 06:56:10,892 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer211#-1393818848] 06:56:10,895 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:56:10,895 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:56:10,895 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:56:10,895 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior212#1198606741] 06:56:10,906 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate213] 06:56:11,10 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:56:11,10 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:56:11,10 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:56:11,10 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 06:56:11,10 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 06:56:11,10 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:56:11,10 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 06:56:11,10 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior214#-38127251] 06:56:11,21 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate215] 06:56:11,26 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:56:11,26 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:56:11,26 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:56:11,27 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 06:56:11,27 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 06:56:11,27 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior216#-1844965921] 06:56:11,38 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate217] 06:56:11,40 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer218#-685851722] 06:56:11,48 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:56:11,48 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 06:56:11,49 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 06:56:11,49 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:56:11,49 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 06:56:11,49 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 06:56:11,49 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 06:56:11,49 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 06:56:11,49 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 06:56:11,49 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:56:11,49 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:56:11,49 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:56:11,49 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 06:56:11,50 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior219#-238876732] 06:56:11,61 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate220] 06:56:11,61 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer221#1816361221] 06:56:11,61 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer222#-84849979] 06:56:11,64 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:56:11,64 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:56:11,64 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:56:11,65 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior223#1706639840] 06:56:11,75 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate224] 06:56:11,77 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:56:11,77 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:56:11,77 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:56:11,77 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 06:56:11,77 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 06:56:11,77 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 06:56:11,77 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior225#-1237450983] 06:56:11,88 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate226] 06:56:11,90 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:56:11,90 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:56:11,90 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:56:11,90 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 06:56:11,90 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 06:56:11,90 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 06:56:11,90 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior227#-778959035] 06:56:11,101 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate228] 06:56:11,103 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:56:11,103 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:56:11,103 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:56:11,103 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 06:56:11,103 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 06:56:11,104 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:56:11,104 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 06:56:11,104 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:56:11,104 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:56:11,104 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 06:56:11,104 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 06:56:11,104 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 06:56:11,104 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:56:11,104 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:56:11,104 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 06:56:11,104 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 06:56:11,104 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 06:56:11,104 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 06:56:11,104 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 06:56:11,104 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:56:11,104 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:56:11,105 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 06:56:11,105 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 06:56:11,105 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 06:56:11,105 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior229#-1485288012] 06:56:11,116 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate230] 06:56:11,117 AM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 06:56:11,117 AM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 06:56:11,117 AM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 06:56:11,117 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior231#-1043279723] 06:56:11,128 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate232] 06:56:11,130 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:56:11,130 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:56:11,130 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 06:56:11,130 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 06:56:11,130 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 06:56:11,130 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior233#-730273738] 06:56:11,141 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate234] 06:56:11,143 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:56:11,143 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:56:11,143 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 06:56:11,143 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 06:56:11,143 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 06:56:11,144 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 06:56:11,144 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior235#-485440223] 06:56:11,155 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate236] [INFO] [01/22/2024 06:56:11.156] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 06:56:11,156 AM [test-akka.actor.default-dispatcher-5] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 06:56:11,160 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.69:25520] - Exiting completed 06:56:11,160 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.69:25520] - Shutting down... 06:56:11,160 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.69:25520] - Successfully shut down [WARN] [01/22/2024 06:56:11.160] [test-akka.actor.default-dispatcher-11] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.171.69:25520) [INFO] [01/22/2024 06:56:11.159] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.69:25520] - Exiting completed [INFO] [01/22/2024 06:56:11.159] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.69:25520] - Shutting down... [INFO] [01/22/2024 06:56:11.160] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.69:25520] - Successfully shut down [INFO] [akkaDeadLetter][01/22/2024 06:56:11.160] [test-akka.actor.default-dispatcher-5] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#36007161] 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:56:11,166 AM [test-akka.actor.default-dispatcher-5] [INFO] LocalActorRef - Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#36007161] 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:56:11,167 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 06:56:11,167 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [01/22/2024 06:56:11.167] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.69:25520/system/remoting-terminator] Shutting down remote daemon. [INFO] [01/22/2024 06:56:11.167] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.69:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 06:56:11,171 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [01/22/2024 06:56:11.171] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.171.69:25520/system/remoting-terminator] Remoting shut down. [DEBUG] [01/22/2024 06:56:11.172] [test-akka.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger