[DEBUG] [10/16/2024 18:22:22.149] [main] [EventStream(akka://test)] logger log1-TestEventListener started 06:22:22,149 PM [test-akka.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [10/16/2024 18:22:22.150] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [10/16/2024 18:22:22.150] [main] [EventStream(akka://test)] Default Loggers started [INFO] [10/16/2024 18:22:22.161] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.100:25520] with UID [6069698465170884499] 06:22:22,161 PM [test-akka.actor.default-dispatcher-7] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.100:25520] with UID [6069698465170884499] [INFO] [10/16/2024 18:22:22.162] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.100:25520] - Starting up, Akka version [2.6.21] ... 06:22:22,162 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.100:25520] - Starting up, Akka version [2.6.21] ... [INFO] [10/16/2024 18:22:22.164] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.100:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [10/16/2024 18:22:22.164] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.100:25520] - Started up successfully 06:22:22,164 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.100:25520] - Registered cluster JMX MBean [akka:type=Cluster] 06:22:22,164 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.100:25520] - Started up successfully 06:22:22,167 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.100:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 06:22:22,167 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.100:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [INFO] [10/16/2024 18:22:22.166] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.100:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [10/16/2024 18:22:22.166] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.100:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 06:22:22,175 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:22,175 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:22,175 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:22,175 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 06:22:22,175 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 5 in "AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than Candidate's term 2 - switching to Follower 06:22:22,175 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:22:22,175 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 06:22:22,175 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior456#52169002] 06:22:22,186 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate457] 06:22:22,186 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer458#1794503957] 06:22:22,189 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:22,189 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 06:22:22,189 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:22,189 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 06:22:22,189 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 06:22:22,189 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 06:22:22,189 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 06:22:22,189 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior459#502354858] 06:22:22,200 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate460] 06:22:22,200 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer461#-202342830] 06:22:22,201 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:22,201 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:22,201 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 06:22:22,201 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 06:22:22,202 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 06:22:22,202 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 06:22:22,202 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior462#1374726244] 06:22:22,212 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate463] 06:22:22,212 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer464#231952853] 06:22:22,214 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:22,214 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:22,214 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:22,214 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 06:22:22,214 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleAppendEntries: AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] 06:22:22,214 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 06:22:22,214 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:22:22,214 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 06:22:22,215 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior465#120510971] 06:22:22,225 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate466] 06:22:22,225 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer467#1105972192] 06:22:22,227 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:22,227 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 06:22:22,227 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 06:22:22,227 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:22,227 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 06:22:22,228 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 06:22:22,228 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 06:22:22,228 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 06:22:22,228 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 06:22:22,228 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 06:22:22,228 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:22:22,228 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:22:22,228 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:22:22,228 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 06:22:22,228 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior468#-1864490109] 06:22:22,239 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate469] 06:22:22,239 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer470#-1201737882] 06:22:22,239 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer471#-335001188] 06:22:22,241 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:22,241 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:22,241 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:22,241 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 06:22:22,241 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0] - currentTerm: 2, votedFor: candidate, lastIndex: 1, lastTerm: 1 06:22:22,241 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 06:22:22,241 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior472#-1091053643] 06:22:22,252 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate473] 06:22:22,252 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer474#-621579371] 06:22:22,253 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:22,253 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:22,253 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 06:22:22,253 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]], my term is 2 06:22:22,253 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleAppendEntries: AppendEntries [leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 06:22:22,253 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 06:22:22,253 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:22:22,253 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 06:22:22,253 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior475#1207574283] 06:22:22,264 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate476] 06:22:22,267 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:22,267 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:22,267 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 06:22:22,268 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 06:22:22,268 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 06:22:22,268 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 06:22:22,268 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior477#-1661420109] 06:22:22,278 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate478] 06:22:22,278 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer479#1643332060] 06:22:22,279 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:22,280 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:22,280 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:22,280 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior480#1628270659] 06:22:22,290 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate481] 06:22:22,294 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 06:22:22,294 PM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 06:22:22,295 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 06:22:22,295 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 06:22:22,697 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 06:22:22,697 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 06:22:22,697 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 06:22:22,697 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 06:22:22,697 PM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 06:22:22,698 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:22:22,698 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:22:22,698 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:22:22,698 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:22:22,698 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:22:22,698 PM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 06:22:22,698 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior482#-1206042457] 06:22:22,709 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate483] 06:22:22,710 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer484#-1651718363] 06:22:22,710 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer485#198934620] 06:22:22,710 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer486#-749432258] 06:22:22,711 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer487#203813093] 06:22:22,713 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:22,713 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 06:22:22,714 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 06:22:22,714 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 06:22:22,714 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 06:22:22,714 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 06:22:22,714 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 06:22:22,714 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 06:22:22,714 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 06:22:22,714 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 06:22:22,715 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 06:22:22,715 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 06:22:22,715 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 06:22:22,715 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 06:22:22,715 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 06:22:22,715 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 06:22:22,715 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 06:22:22,715 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 06:22:22,715 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 06:22:22,715 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:22:22,715 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 06:22:22,715 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior488#1778544750] 06:22:22,725 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate489] 06:22:22,725 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer490#-778546872] 06:22:22,726 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer491#-758512138] 06:22:22,726 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer492#-1410046873] 06:22:22,726 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer493#756823296] 06:22:22,728 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:22,728 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:22,728 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:22,728 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior494#-260420317] 06:22:22,739 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate495] 06:22:22,740 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:22,740 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:22,740 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:22,740 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 06:22:22,741 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 06:22:22,741 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:22:22,741 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 06:22:22,741 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior496#860873234] 06:22:22,751 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate497] 06:22:22,753 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:22,753 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:22,753 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:22,753 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 06:22:22,753 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 06:22:22,753 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior498#-1526097313] 06:22:22,764 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate499] 06:22:22,764 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer500#1551790597] 06:22:22,766 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:22,766 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 06:22:22,766 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 06:22:22,766 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:22,766 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 06:22:22,766 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 06:22:22,767 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 06:22:22,767 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 06:22:22,767 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 06:22:22,767 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:22:22,767 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:22:22,767 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:22:22,767 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 06:22:22,767 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior501#-429687981] 06:22:22,778 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate502] 06:22:22,778 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer503#-521189315] 06:22:22,778 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer504#-2091610527] 06:22:22,779 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:22,779 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:22,779 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:22,779 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior505#-728428635] 06:22:22,790 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate506] 06:22:22,791 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:22,791 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:22,791 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:22,791 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 06:22:22,791 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 06:22:22,791 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 06:22:22,791 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior507#-2017452676] 06:22:22,802 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate508] 06:22:22,803 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:22,803 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:22,803 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:22,803 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 06:22:22,803 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1] - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 06:22:22,803 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 06:22:22,803 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior509#314227676] 06:22:22,814 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate510] 06:22:22,815 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:22,815 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:22,815 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:22,815 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 06:22:22,815 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than Candidate's term 2 - switching to Follower 06:22:22,815 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:22:22,815 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 06:22:22,815 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:22,815 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:22,815 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntriesReply [term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5], my term is 2 06:22:22,815 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "AppendEntriesReply [term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5]" message is greater than Candidate's term 2 - switching to Follower 06:22:22,815 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 06:22:22,816 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:22,816 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:22,816 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 06:22:22,816 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100]" message is greater than Candidate's term 2 - switching to Follower 06:22:22,816 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100] - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 06:22:22,816 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 06:22:22,816 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 06:22:22,816 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:22,816 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:22:22,816 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 06:22:22,816 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "RequestVoteReply [term=100, voteGranted=false]" message is greater than Candidate's term 2 - switching to Follower 06:22:22,816 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 06:22:22,816 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior511#-44122689] 06:22:22,827 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate512] 06:22:22,828 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 06:22:22,828 PM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 06:22:22,828 PM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 06:22:22,828 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior513#677912548] 06:22:22,829 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate514] 06:22:22,830 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:22,830 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:22,831 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 06:22:22,831 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=4, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 1001 06:22:22,831 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 06:22:22,831 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior515#2052338637] 06:22:22,831 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate516] 06:22:22,833 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:22:22,833 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:22:22,833 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 06:22:22,833 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 06:22:22,833 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 06:22:22,833 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 06:22:22,833 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior517#1255415949] 06:22:22,834 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate518] [INFO] [10/16/2024 18:22:22.834] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 06:22:22,834 PM [test-akka.actor.default-dispatcher-11] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [10/16/2024 18:22:22.837] [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.100:25520) [INFO] [10/16/2024 18:22:22.836] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.100:25520] - Exiting completed [INFO] [10/16/2024 18:22:22.836] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.100:25520] - Shutting down... [INFO] [10/16/2024 18:22:22.836] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.100:25520] - Successfully shut down 06:22:22,837 PM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.100:25520] - Exiting completed 06:22:22,837 PM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.100:25520] - Shutting down... 06:22:22,837 PM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.100:25520] - Successfully shut down 06:22:22,837 PM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 06:22:22,837 PM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [10/16/2024 18:22:22.837] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.100:25520/system/remoting-terminator] Shutting down remote daemon. [WARN] [10/16/2024 18:22:22.837] [test-akka.actor.default-dispatcher-11] [akka://test/system/deadLetterListener] received dead letter: UnhandledMessage(Leave(akka://test@10.30.171.100:25520),Actor[akka://test/deadLetters],Actor[akka://test/system/cluster/core/daemon#1242543920]) [INFO] [10/16/2024 18:22:22.837] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.100:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [10/16/2024 18:22:22.839] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.171.100:25520/system/remoting-terminator] Remoting shut down. 06:22:22,839 PM [test-akka.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down.