[DEBUG] [08/30/2024 18:33:38.137] [main] [EventStream(akka://test)] logger log1-TestEventListener started 06:33:38,138 PM [test-akka.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [08/30/2024 18:33:38.138] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [08/30/2024 18:33:38.138] [main] [EventStream(akka://test)] Default Loggers started [INFO] [08/30/2024 18:33:38.168] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.10:25520] with UID [-3369456645509297210] 06:33:38,169 PM [test-akka.actor.default-dispatcher-7] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.10:25520] with UID [-3369456645509297210] [INFO] [08/30/2024 18:33:38.169] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.10:25520] - Starting up, Akka version [2.6.21] ... 06:33:38,170 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.10:25520] - Starting up, Akka version [2.6.21] ... [INFO] [08/30/2024 18:33:38.173] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.10:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [08/30/2024 18:33:38.173] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.10:25520] - Started up successfully 06:33:38,174 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.10:25520] - Registered cluster JMX MBean [akka:type=Cluster] 06:33:38,174 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.10:25520] - Started up successfully [INFO] [08/30/2024 18:33:38.183] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.10:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [08/30/2024 18:33:38.183] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.10:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 06:33:38,183 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.10:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 06:33:38,184 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.10:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 06:33:38,289 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:33:38,289 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:33:38,289 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:33:38,290 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:33:38,290 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:33:38,291 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:33:38,291 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 06:33:38,291 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior416#-960427779] 06:33:38,302 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate417] 06:33:38,303 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer418#-1896787095] 06:33:38,405 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:33:38,406 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 06:33:38,406 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:33:38,406 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 06:33:38,407 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 06:33:38,407 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 06:33:38,407 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 06:33:38,407 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior419#1610345561] 06:33:38,418 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate420] 06:33:38,418 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer421#-744478737] 06:33:38,522 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:33:38,522 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:33:38,522 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 06:33:38,522 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 06:33:38,523 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:33:38,523 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 06:33:38,523 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior422#1477100591] 06:33:38,533 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate423] 06:33:38,534 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer424#-593305361] 06:33:38,636 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:33:38,636 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:33:38,636 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:33:38,638 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:33:38,638 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:33:38,638 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 06:33:38,638 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:33:38,638 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 06:33:38,639 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior425#-331758201] 06:33:38,651 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate426] 06:33:38,652 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer427#1644256746] 06:33:38,757 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:33:38,757 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 06:33:38,759 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 06:33:38,759 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:33:38,759 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 06:33:38,759 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 06:33:38,759 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 06:33:38,759 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 06:33:38,759 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 06:33:38,760 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 06:33:38,760 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:33:38,760 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:33:38,760 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:33:38,760 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 06:33:38,760 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior428#-1328354622] 06:33:38,771 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate429] 06:33:38,771 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer430#1213860827] 06:33:38,771 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer431#-756207470] 06:33:38,875 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:33:38,875 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:33:38,876 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:33:38,876 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 06:33:38,876 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:33:38,876 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 06:33:38,877 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior432#1831902614] 06:33:38,888 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate433] 06:33:38,888 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer434#-449520056] 06:33:38,991 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:33:38,991 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:33:38,991 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 06:33:38,991 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:33:38,991 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:33:38,991 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 06:33:38,991 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:33:38,991 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 06:33:38,992 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior435#-1622896787] 06:33:39,3 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate436] 06:33:39,107 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:33:39,107 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:33:39,107 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 06:33:39,108 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 06:33:39,108 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:33:39,108 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 06:33:39,108 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior437#1974032328] 06:33:39,119 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate438] 06:33:39,119 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer439#2140686196] 06:33:39,224 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:33:39,224 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:33:39,224 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:33:39,224 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior440#-1885329176] 06:33:39,235 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate441] 06:33:39,244 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 06:33:39,245 PM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 06:33:39,245 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 06:33:39,245 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 06:33:39,649 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 06:33:39,649 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 06:33:39,649 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 06:33:39,649 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 06:33:39,649 PM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 06:33:39,649 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:33:39,650 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:33:39,650 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:33:39,650 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:33:39,650 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:33:39,650 PM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 06:33:39,650 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior442#-1772857523] 06:33:39,661 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate443] 06:33:39,662 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer444#1606217486] 06:33:39,662 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer445#1917722158] 06:33:39,662 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer446#-903108368] 06:33:39,662 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer447#-1858412679] 06:33:39,665 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:33:39,665 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 06:33:39,668 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 06:33:39,668 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 06:33:39,668 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 06:33:39,668 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 06:33:39,668 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 06:33:39,668 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 06:33:39,669 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 06:33:39,669 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 06:33:39,669 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 06:33:39,669 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 06:33:39,669 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 06:33:39,669 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 06:33:39,669 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 06:33:39,669 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 06:33:39,669 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 06:33:39,669 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 06:33:39,669 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 06:33:39,669 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:33:39,669 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 06:33:39,669 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior448#340643452] 06:33:39,680 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate449] 06:33:39,681 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer450#188631689] 06:33:39,681 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer451#1291730356] 06:33:39,681 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer452#-1096153003] 06:33:39,681 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer453#1684832896] 06:33:39,684 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:33:39,684 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:33:39,684 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:33:39,684 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior454#-870386473] 06:33:39,696 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate455] 06:33:39,698 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:33:39,698 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:33:39,699 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:33:39,699 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 06:33:39,699 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 06:33:39,699 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:33:39,699 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 06:33:39,699 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior456#-951771510] 06:33:39,710 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate457] 06:33:39,714 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:33:39,714 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:33:39,714 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:33:39,715 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:33:39,715 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 06:33:39,715 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior458#567152535] 06:33:39,726 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate459] 06:33:39,726 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer460#1840720810] 06:33:39,729 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:33:39,729 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 06:33:39,729 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 06:33:39,730 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:33:39,730 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 06:33:39,730 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 06:33:39,730 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 06:33:39,730 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 06:33:39,730 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 06:33:39,730 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:33:39,730 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:33:39,730 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:33:39,730 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 06:33:39,730 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior461#-1344525039] 06:33:39,741 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate462] 06:33:39,741 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer463#2124830633] 06:33:39,742 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer464#-23518840] 06:33:39,745 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:33:39,745 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:33:39,745 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:33:39,745 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior465#884813642] 06:33:39,756 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate466] 06:33:39,758 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:33:39,758 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:33:39,758 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:33:39,758 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 06:33:39,758 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:33:39,758 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 06:33:39,759 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior467#1071498792] 06:33:39,770 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate468] 06:33:39,772 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:33:39,773 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:33:39,773 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:33:39,773 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 06:33:39,773 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:33:39,773 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 06:33:39,773 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior469#-2029917312] 06:33:39,784 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate470] 06:33:39,787 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:33:39,787 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:33:39,787 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:33:39,787 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:33:39,787 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:33:39,787 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:33:39,787 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 06:33:39,787 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:33:39,787 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:33:39,787 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:33:39,787 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:33:39,787 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 06:33:39,787 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:33:39,787 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:33:39,787 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 06:33:39,787 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:33:39,787 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:33:39,787 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 06:33:39,787 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 06:33:39,787 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:33:39,788 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:33:39,788 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 06:33:39,788 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:33:39,788 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 06:33:39,788 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior471#1220081845] 06:33:39,798 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate472] 06:33:39,801 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 06:33:39,801 PM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 06:33:39,801 PM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 06:33:39,801 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior473#-1591236245] 06:33:39,812 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate474] 06:33:39,815 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:33:39,815 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:33:39,815 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 06:33:39,815 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:33:39,815 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 06:33:39,815 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior475#355848309] 06:33:39,826 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate476] 06:33:39,834 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:33:39,835 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:33:39,835 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 06:33:39,835 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 06:33:39,835 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:33:39,835 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 06:33:39,835 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior477#1320553390] 06:33:39,846 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate478] [INFO] [08/30/2024 18:33:39.848] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 06:33:39,848 PM [test-akka.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [08/30/2024 18:33:39.849] [test-akka.actor.default-dispatcher-6] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.171.10:25520) [INFO] [08/30/2024 18:33:39.850] [test-akka.actor.internal-dispatcher-5] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.10:25520] - Exiting completed [INFO] [akkaDeadLetter][08/30/2024 18:33:39.849] [test-akka.actor.default-dispatcher-6] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#1729498300] 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:33:39,851 PM [test-akka.actor.default-dispatcher-7] [INFO] LocalActorRef - akkaDeadLetter Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#1729498300] 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:33:39,851 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.10:25520] - Exiting completed 06:33:39,851 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.10:25520] - Shutting down... 06:33:39,852 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.10:25520] - Successfully shut down [INFO] [08/30/2024 18:33:39.851] [test-akka.actor.internal-dispatcher-5] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.10:25520] - Shutting down... [INFO] [08/30/2024 18:33:39.851] [test-akka.actor.internal-dispatcher-5] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.10:25520] - Successfully shut down [INFO] [08/30/2024 18:33:39.854] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.10:25520/system/remoting-terminator] Shutting down remote daemon. 06:33:39,854 PM [test-akka.actor.default-dispatcher-13] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 06:33:39,854 PM [test-akka.actor.default-dispatcher-13] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [08/30/2024 18:33:39.854] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.10:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 06:33:39,861 PM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [08/30/2024 18:33:39.861] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.10:25520/system/remoting-terminator] Remoting shut down. [DEBUG] [08/30/2024 18:33:39.862] [test-akka.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger