[DEBUG] [10/16/2024 20:28:32.600] [main] [EventStream(akka://test)] logger log1-TestEventListener started 08:28:32,601 PM [test-akka.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [10/16/2024 20:28:32.601] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [10/16/2024 20:28:32.601] [main] [EventStream(akka://test)] Default Loggers started [INFO] [10/16/2024 20:28:32.612] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.153:25520] with UID [-241052057756128213] [INFO] [10/16/2024 20:28:32.613] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.153:25520] - Starting up, Akka version [2.6.21] ... 08:28:32,613 PM [test-akka.actor.default-dispatcher-7] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.153:25520] with UID [-241052057756128213] 08:28:32,613 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.153:25520] - Starting up, Akka version [2.6.21] ... [INFO] [10/16/2024 20:28:32.615] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.153:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [10/16/2024 20:28:32.615] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.153:25520] - Started up successfully 08:28:32,615 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.153:25520] - Registered cluster JMX MBean [akka:type=Cluster] 08:28:32,615 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.153:25520] - Started up successfully [INFO] [10/16/2024 20:28:32.616] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.153: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 20:28:32.616] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.153:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 08:28:32,616 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.153:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 08:28:32,616 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.153:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 08:28:32,627 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:28:32,627 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:28:32,627 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:28:32,628 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 08:28:32,628 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 08:28:32,628 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:28:32,628 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 08:28:32,628 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior456#1626162062] 08:28:32,639 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate457] 08:28:32,639 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer458#-572012888] 08:28:32,640 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:28:32,641 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 08:28:32,641 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:28:32,641 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 08:28:32,641 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 08:28:32,641 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 08:28:32,641 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 08:28:32,641 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior459#709126196] 08:28:32,652 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate460] 08:28:32,652 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer461#-764545289] 08:28:32,654 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:28:32,654 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:28:32,654 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 08:28:32,654 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 08:28:32,654 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 08:28:32,654 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 08:28:32,655 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior462#1281617816] 08:28:32,665 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate463] 08:28:32,665 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer464#-979966672] 08:28:32,767 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:28:32,767 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:28:32,767 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:28:32,768 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 08:28:32,768 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=[]] 08:28:32,768 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 08:28:32,768 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:28:32,768 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 08:28:32,768 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior465#-812566155] 08:28:32,779 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate466] 08:28:32,779 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer467#-201071523] 08:28:32,782 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:28:32,782 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 08:28:32,782 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 08:28:32,782 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:28:32,782 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 08:28:32,783 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 08:28:32,783 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 08:28:32,783 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 08:28:32,783 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 08:28:32,783 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 08:28:32,783 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:28:32,783 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:28:32,783 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:28:32,783 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 08:28:32,783 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior468#-478886143] 08:28:32,794 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate469] 08:28:32,794 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer470#-497329600] 08:28:32,794 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer471#199601297] 08:28:32,796 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:28:32,796 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:28:32,796 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:28:32,796 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 08:28:32,796 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 08:28:32,796 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 08:28:32,796 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior472#-1293722712] 08:28:32,807 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate473] 08:28:32,807 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer474#1646501687] 08:28:32,809 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:28:32,809 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:28:32,809 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 08:28:32,809 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 08:28:32,809 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]]] 08:28:32,809 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 08:28:32,809 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:28:32,809 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 08:28:32,809 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior475#906398758] 08:28:32,820 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate476] 08:28:32,823 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:28:32,823 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:28:32,823 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 08:28:32,824 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 08:28:32,824 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 08:28:32,824 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 08:28:32,824 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior477#-2125162899] 08:28:32,835 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate478] 08:28:32,835 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer479#2129185463] 08:28:32,836 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:28:32,836 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:28:32,836 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:28:32,836 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior480#3444859] 08:28:32,847 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate481] 08:28:32,853 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 08:28:32,853 PM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 08:28:32,853 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 08:28:32,853 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 08:28:33,255 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 08:28:33,255 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 08:28:33,255 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 08:28:33,255 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 08:28:33,255 PM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 08:28:33,255 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:28:33,256 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:28:33,256 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:28:33,256 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:28:33,256 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:28:33,256 PM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 08:28:33,256 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior482#-1517604222] 08:28:33,267 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate483] 08:28:33,267 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer484#-720548269] 08:28:33,268 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer485#-1091881110] 08:28:33,268 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer486#-1896597299] 08:28:33,268 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer487#890941498] 08:28:33,270 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:28:33,270 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 08:28:33,272 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 08:28:33,272 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 08:28:33,272 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 08:28:33,272 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 08:28:33,272 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 08:28:33,272 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 08:28:33,272 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 08:28:33,272 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 08:28:33,272 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 08:28:33,272 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 08:28:33,272 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 08:28:33,272 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 08:28:33,273 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 08:28:33,273 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 08:28:33,273 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 08:28:33,273 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 08:28:33,273 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 08:28:33,273 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:28:33,273 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 08:28:33,273 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior488#1806035914] 08:28:33,284 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate489] 08:28:33,284 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer490#-559163929] 08:28:33,284 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer491#704396138] 08:28:33,284 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer492#-1457266835] 08:28:33,284 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer493#-741816446] 08:28:33,286 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:28:33,286 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:28:33,286 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:28:33,286 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior494#1346987874] 08:28:33,297 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate495] 08:28:33,298 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:28:33,298 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:28:33,298 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:28:33,298 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 08:28:33,298 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 08:28:33,298 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:28:33,298 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 08:28:33,299 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior496#1682372452] 08:28:33,309 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate497] 08:28:33,311 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:28:33,311 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:28:33,311 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:28:33,311 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 08:28:33,311 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 08:28:33,311 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior498#-764625002] 08:28:33,322 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate499] 08:28:33,322 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer500#2009664603] 08:28:33,324 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:28:33,324 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 08:28:33,325 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 08:28:33,325 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:28:33,325 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 08:28:33,325 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 08:28:33,325 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 08:28:33,325 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 08:28:33,325 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 08:28:33,325 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:28:33,326 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:28:33,326 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:28:33,326 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 08:28:33,326 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior501#-556961500] 08:28:33,336 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate502] 08:28:33,336 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer503#1092103399] 08:28:33,337 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer504#-477466941] 08:28:33,338 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:28:33,338 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:28:33,338 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:28:33,338 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior505#1167196593] 08:28:33,348 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate506] 08:28:33,351 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:28:33,351 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:28:33,351 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:28:33,351 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 08:28:33,351 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 08:28:33,351 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 08:28:33,351 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior507#-515367684] 08:28:33,362 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate508] 08:28:33,364 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:28:33,364 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:28:33,364 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:28:33,364 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 08:28:33,364 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 08:28:33,364 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 08:28:33,364 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior509#-792156354] 08:28:33,374 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate510] 08:28:33,376 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:28:33,377 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:28:33,377 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:28:33,377 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 08:28:33,377 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 08:28:33,377 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:28:33,377 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 08:28:33,377 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:28:33,377 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:28:33,377 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 08:28:33,377 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 08:28:33,377 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 08:28:33,377 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:28:33,377 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:28:33,377 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 08:28:33,377 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 08:28:33,377 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 08:28:33,377 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 08:28:33,377 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 08:28:33,377 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:28:33,377 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:28:33,377 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 08:28:33,377 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 08:28:33,377 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 08:28:33,377 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior511#1907058352] 08:28:33,388 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate512] 08:28:33,390 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 08:28:33,390 PM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 08:28:33,390 PM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 08:28:33,390 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior513#147353781] 08:28:33,401 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate514] 08:28:33,402 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:28:33,402 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:28:33,402 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 08:28:33,402 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 08:28:33,402 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 08:28:33,402 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior515#551577256] 08:28:33,413 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate516] 08:28:33,415 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:28:33,415 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:28:33,415 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 08:28:33,415 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 08:28:33,415 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 08:28:33,415 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 08:28:33,415 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior517#-1965309205] 08:28:33,425 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate518] [INFO] [10/16/2024 20:28:33.426] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 08:28:33,426 PM [test-akka.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [10/16/2024 20:28:33.427] [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.153:25520) [INFO] [akkaDeadLetter][10/16/2024 20:28:33.427] [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#1125996897] 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'. 08:28:33,428 PM [test-akka.actor.default-dispatcher-6] [INFO] LocalActorRef - akkaDeadLetter Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#1125996897] 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] [10/16/2024 20:28:33.429] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.153:25520] - Exiting completed [INFO] [10/16/2024 20:28:33.429] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.153:25520] - Shutting down... 08:28:33,429 PM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.153:25520] - Exiting completed 08:28:33,429 PM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.153:25520] - Shutting down... [INFO] [10/16/2024 20:28:33.429] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.153:25520] - Successfully shut down 08:28:33,433 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.153:25520] - Successfully shut down [INFO] [10/16/2024 20:28:33.433] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.153:25520/system/remoting-terminator] Shutting down remote daemon. 08:28:33,433 PM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 08:28:33,433 PM [test-akka.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [10/16/2024 20:28:33.433] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.153:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [10/16/2024 20:28:33.435] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.153:25520/system/remoting-terminator] Remoting shut down. 08:28:33,435 PM [test-akka.actor.default-dispatcher-13] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [10/16/2024 20:28:33.435] [test-akka.actor.internal-dispatcher-4] [EventStream] shutting down: StandardOutLogger