[DEBUG] [08/31/2024 17:05:26.673] [main] [EventStream(akka://test)] logger log1-TestEventListener started 05:05:26,674 PM [test-akka.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [08/31/2024 17:05:26.674] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [08/31/2024 17:05:26.674] [main] [EventStream(akka://test)] Default Loggers started [INFO] [08/31/2024 17:05:26.704] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.233:25520] with UID [5159971520020539318] 05:05:26,704 PM [test-akka.actor.default-dispatcher-7] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.233:25520] with UID [5159971520020539318] 05:05:26,705 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.233:25520] - Starting up, Akka version [2.6.21] ... [INFO] [08/31/2024 17:05:26.705] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.233:25520] - Starting up, Akka version [2.6.21] ... [INFO] [08/31/2024 17:05:26.707] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.233:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [08/31/2024 17:05:26.707] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.233:25520] - Started up successfully [INFO] [08/31/2024 17:05:26.709] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.233:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [08/31/2024 17:05:26.709] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.233:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 05:05:26,713 PM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.233:25520] - Registered cluster JMX MBean [akka:type=Cluster] 05:05:26,714 PM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.233:25520] - Started up successfully 05:05:26,714 PM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.233:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 05:05:26,714 PM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.233:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 05:05:26,834 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:05:26,834 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:05:26,834 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:05:26,836 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 05:05:26,836 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 05:05:26,836 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:05:26,836 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 05:05:26,836 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior416#-770291383] 05:05:26,848 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate417] 05:05:26,848 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer418#-1623424844] 05:05:26,951 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:05:26,952 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 05:05:26,953 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:05:26,953 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 05:05:26,953 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 05:05:26,953 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 05:05:26,953 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 05:05:26,953 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior419#-824394749] 05:05:26,964 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate420] 05:05:26,964 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer421#1165041271] 05:05:27,67 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:05:27,67 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:05:27,67 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 05:05:27,68 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 05:05:27,68 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 05:05:27,68 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 05:05:27,68 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior422#-886724082] 05:05:27,79 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate423] 05:05:27,79 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer424#-1649751447] 05:05:27,182 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:05:27,182 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:05:27,182 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:05:27,183 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 05:05:27,183 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=[]] 05:05:27,183 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 05:05:27,183 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:05:27,183 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 05:05:27,184 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior425#-794332478] 05:05:27,195 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate426] 05:05:27,195 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer427#-2088009642] 05:05:27,303 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:05:27,303 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 05:05:27,304 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 05:05:27,304 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:05:27,304 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 05:05:27,304 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 05:05:27,304 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 05:05:27,304 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 05:05:27,305 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 05:05:27,305 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 05:05:27,305 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 05:05:27,305 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 05:05:27,305 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:05:27,305 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 05:05:27,305 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior428#1847259415] 05:05:27,316 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate429] 05:05:27,316 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer430#1109809095] 05:05:27,316 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer431#-255619039] 05:05:27,319 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:05:27,319 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:05:27,319 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:05:27,319 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 05:05:27,319 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 05:05:27,319 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 05:05:27,319 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior432#1923095762] 05:05:27,330 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate433] 05:05:27,330 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer434#345914878] 05:05:27,332 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:05:27,332 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:05:27,332 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 05:05:27,332 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 05:05:27,333 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]]] 05:05:27,333 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 05:05:27,333 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:05:27,333 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 05:05:27,333 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior435#1834968190] 05:05:27,344 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate436] 05:05:27,345 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:05:27,346 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:05:27,346 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 05:05:27,346 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 05:05:27,346 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 05:05:27,346 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 05:05:27,346 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior437#605461838] 05:05:27,357 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate438] 05:05:27,357 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer439#2020918208] 05:05:27,359 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:05:27,359 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:05:27,359 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:05:27,359 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior440#-1057049699] 05:05:27,370 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate441] 05:05:27,375 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 05:05:27,375 PM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 05:05:27,375 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 05:05:27,375 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 05:05:27,778 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 05:05:27,778 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 05:05:27,778 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 05:05:27,778 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 05:05:27,779 PM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 05:05:27,779 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 05:05:27,779 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 05:05:27,779 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 05:05:27,779 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 05:05:27,779 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:05:27,779 PM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 05:05:27,779 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior442#244085270] 05:05:27,791 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate443] 05:05:27,791 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer444#1780962126] 05:05:27,791 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer445#1042220187] 05:05:27,792 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer446#1197123783] 05:05:27,792 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer447#-1908287606] 05:05:27,794 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:05:27,794 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 05:05:27,795 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 05:05:27,795 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 05:05:27,795 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 05:05:27,795 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 05:05:27,795 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 05:05:27,795 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 05:05:27,796 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 05:05:27,796 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 05:05:27,796 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 05:05:27,796 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 05:05:27,796 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 05:05:27,796 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 05:05:27,796 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 05:05:27,796 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 05:05:27,796 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 05:05:27,796 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 05:05:27,796 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 05:05:27,796 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:05:27,796 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 05:05:27,796 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior448#254502351] 05:05:27,807 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate449] 05:05:27,807 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer450#880488596] 05:05:27,807 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer451#252050569] 05:05:27,807 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer452#583044621] 05:05:27,808 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer453#-1816243240] 05:05:27,810 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:05:27,810 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:05:27,810 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:05:27,810 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior454#-1605908243] 05:05:27,821 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate455] 05:05:27,822 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:05:27,822 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:05:27,822 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:05:27,822 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 05:05:27,823 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 05:05:27,823 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:05:27,823 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 05:05:27,823 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior456#-893918076] 05:05:27,833 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate457] 05:05:27,835 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:05:27,835 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:05:27,835 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:05:27,836 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 05:05:27,836 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 05:05:27,843 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior458#-1784060431] 05:05:27,853 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate459] 05:05:27,854 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer460#-702404556] 05:05:27,856 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:05:27,856 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 05:05:27,857 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 05:05:27,857 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:05:27,857 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 05:05:27,857 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 05:05:27,857 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 05:05:27,857 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 05:05:27,857 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 05:05:27,857 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 05:05:27,857 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 05:05:27,857 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:05:27,857 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 05:05:27,857 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior461#1623011947] 05:05:27,868 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate462] 05:05:27,868 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer463#-980562305] 05:05:27,868 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer464#1082841299] 05:05:27,970 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:05:27,971 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:05:27,971 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:05:27,971 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior465#181838149] 05:05:27,982 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate466] 05:05:27,984 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:05:27,984 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:05:27,984 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:05:27,984 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 05:05:27,984 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 05:05:27,984 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 05:05:27,984 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior467#-1625552410] 05:05:27,995 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate468] 05:05:27,996 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:05:27,996 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:05:27,996 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:05:27,996 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 05:05:27,996 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 05:05:27,996 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 05:05:27,996 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior469#1442004949] 05:05:28,7 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate470] 05:05:28,8 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:05:28,8 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:05:28,8 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:05:28,8 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 05:05:28,8 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 05:05:28,8 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:05:28,8 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 05:05:28,9 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:05:28,9 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:05:28,9 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 05:05:28,9 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 05:05:28,9 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 05:05:28,9 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:05:28,9 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:05:28,9 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 05:05:28,9 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 05:05:28,9 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 05:05:28,9 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 05:05:28,9 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 05:05:28,9 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:05:28,9 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 05:05:28,9 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 05:05:28,9 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 05:05:28,9 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 05:05:28,9 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior471#-1145424074] 05:05:28,20 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate472] 05:05:28,122 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 05:05:28,122 PM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 05:05:28,122 PM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 05:05:28,122 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior473#1819818932] 05:05:28,133 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate474] 05:05:28,135 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:05:28,135 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:05:28,135 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 05:05:28,135 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 05:05:28,135 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 05:05:28,135 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior475#-674034687] 05:05:28,145 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate476] 05:05:28,148 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 05:05:28,148 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 05:05:28,148 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 05:05:28,148 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 05:05:28,148 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 05:05:28,148 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 05:05:28,148 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior477#-306249991] 05:05:28,159 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate478] [INFO] [08/31/2024 17:05:28.160] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 05:05:28,160 PM [test-akka.actor.default-dispatcher-7] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [08/31/2024 17:05:28.162] [test-akka.actor.default-dispatcher-7] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.171.233:25520) [INFO] [08/31/2024 17:05:28.162] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.233:25520] - Exiting completed 05:05:28,162 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.233:25520] - Exiting completed 05:05:28,162 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.233:25520] - Shutting down... [INFO] [akkaDeadLetter][08/31/2024 17:05:28.162] [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#1971309490] was unhandled. [1] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. [INFO] [08/31/2024 17:05:28.162] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.233:25520] - Shutting down... [INFO] [08/31/2024 17:05:28.162] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.233:25520] - Successfully shut down 05:05:28,163 PM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.233:25520] - Successfully shut down 05:05:28,165 PM [test-akka.actor.default-dispatcher-12] [INFO] LocalActorRef - akkaDeadLetter Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#1971309490] 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'. 05:05:28,165 PM [test-akka.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 05:05:28,165 PM [test-akka.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [08/31/2024 17:05:28.165] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.233:25520/system/remoting-terminator] Shutting down remote daemon. [INFO] [08/31/2024 17:05:28.165] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.233:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [08/31/2024 17:05:28.168] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.233:25520/system/remoting-terminator] Remoting shut down. 05:05:28,168 PM [test-akka.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [08/31/2024 17:05:28.168] [test-akka.actor.internal-dispatcher-4] [EventStream] shutting down: StandardOutLogger