[DEBUG] [02/13/2024 01:11:34.633] [main] [EventStream(akka://test)] logger log1-TestEventListener started 01:11:34,635 AM [test-akka.actor.default-dispatcher-7] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [02/13/2024 01:11:34.635] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [02/13/2024 01:11:34.635] [main] [EventStream(akka://test)] Default Loggers started 01:11:34,676 AM [test-akka.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.39:25520] with UID [7026671673641585396] 01:11:34,677 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.39:25520] - Starting up, Akka version [2.6.21] ... [INFO] [02/13/2024 01:11:34.675] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.39:25520] with UID [7026671673641585396] [INFO] [02/13/2024 01:11:34.677] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.39:25520] - Starting up, Akka version [2.6.21] ... [INFO] [02/13/2024 01:11:34.685] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.39:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [02/13/2024 01:11:34.685] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.39:25520] - Started up successfully 01:11:34,686 AM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.39:25520] - Registered cluster JMX MBean [akka:type=Cluster] 01:11:34,686 AM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.39:25520] - Started up successfully [INFO] [02/13/2024 01:11:34.693] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.39:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [02/13/2024 01:11:34.693] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.39:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 01:11:34,693 AM [test-akka.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [akka://test@10.30.171.39:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 01:11:34,693 AM [test-akka.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [akka://test@10.30.171.39:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 01:11:34,764 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:34,783 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:34,783 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:34,784 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 01:11:34,784 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 5 in "AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than Candidate's term 2 - switching to Follower 01:11:34,785 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:11:34,785 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 01:11:34,785 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior170#-520535650] 01:11:34,797 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate171] 01:11:34,797 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer172#-2082688142] 01:11:34,801 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:34,802 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 01:11:34,802 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:34,802 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:11:34,802 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 01:11:34,802 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:11:34,803 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:11:34,803 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior173#694353885] 01:11:34,814 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate174] 01:11:34,815 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer175#1622345257] 01:11:34,919 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:34,919 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:34,919 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:11:34,921 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:11:34,921 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 01:11:34,921 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 01:11:34,921 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior176#-732723343] 01:11:34,933 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate177] 01:11:34,934 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer178#-4662622] 01:11:35,37 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:35,38 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:35,38 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:35,39 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 01:11:35,40 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleAppendEntries: AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] 01:11:35,40 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 01:11:35,40 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:11:35,40 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 01:11:35,40 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior179#-775580625] 01:11:35,52 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate180] 01:11:35,53 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer181#-93613110] 01:11:35,158 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:35,158 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 01:11:35,161 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 01:11:35,161 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:35,161 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:11:35,161 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 01:11:35,161 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 01:11:35,161 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:11:35,161 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 01:11:35,164 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 01:11:35,164 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:11:35,164 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:11:35,164 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:11:35,164 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 01:11:35,164 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior182#-346606559] 01:11:35,176 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate183] 01:11:35,176 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer184#-1084843244] 01:11:35,177 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer185#1688602801] 01:11:35,281 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:35,282 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:35,282 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:35,283 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 01:11:35,283 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0] - currentTerm: 2, votedFor: candidate, lastIndex: 1, lastTerm: 1 01:11:35,283 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 01:11:35,284 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior186#-798769005] 01:11:35,295 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate187] 01:11:35,296 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer188#-595174706] 01:11:35,300 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:35,300 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:35,300 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:11:35,300 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]], my term is 2 01:11:35,300 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleAppendEntries: AppendEntries [leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 01:11:35,300 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 01:11:35,300 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:11:35,300 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 01:11:35,300 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior189#1393458646] 01:11:35,312 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate190] 01:11:35,319 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:35,319 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:35,319 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:11:35,320 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:11:35,320 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 01:11:35,320 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 01:11:35,320 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior191#-1242979318] 01:11:35,332 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate192] 01:11:35,332 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer193#-527912483] 01:11:35,335 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:35,335 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:35,335 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:35,336 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior194#-889621985] 01:11:35,347 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate195] 01:11:35,585 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 01:11:35,587 AM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 01:11:35,588 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 01:11:35,588 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 01:11:35,993 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 01:11:35,994 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 01:11:35,994 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 01:11:35,994 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:11:35,994 AM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 01:11:35,995 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:11:35,995 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:11:35,995 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:11:35,996 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:11:35,996 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:11:35,996 AM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 01:11:35,996 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior196#-1648894623] 01:11:36,8 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate197] 01:11:36,8 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer198#-2038893245] 01:11:36,9 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer199#-1356149345] 01:11:36,10 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer200#-1525517856] 01:11:36,10 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer201#1364046398] 01:11:36,114 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:36,114 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 01:11:36,119 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 01:11:36,119 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:11:36,119 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 01:11:36,119 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 01:11:36,119 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 01:11:36,119 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 01:11:36,120 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 01:11:36,120 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 01:11:36,120 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 01:11:36,120 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:11:36,120 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 01:11:36,120 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 01:11:36,120 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 01:11:36,121 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:11:36,121 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:11:36,121 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:11:36,121 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:11:36,121 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:11:36,121 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 01:11:36,121 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior202#2100442548] 01:11:36,132 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate203] 01:11:36,133 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer204#680927161] 01:11:36,134 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer205#1927516490] 01:11:36,136 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer206#-940968723] 01:11:36,138 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer207#369990811] 01:11:36,141 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:36,141 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:36,141 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:36,142 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior208#1611630321] 01:11:36,153 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate209] 01:11:36,158 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:36,158 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:36,158 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:36,158 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 01:11:36,158 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 01:11:36,158 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:11:36,159 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:11:36,159 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior210#-507165567] 01:11:36,170 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate211] 01:11:36,173 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:36,173 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:36,173 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:36,174 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 01:11:36,174 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 01:11:36,174 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior212#1559133820] 01:11:36,187 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate213] 01:11:36,187 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer214#-1978386062] 01:11:36,190 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:36,190 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 01:11:36,192 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 01:11:36,192 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:36,192 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:11:36,192 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 01:11:36,192 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 01:11:36,192 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:11:36,192 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 01:11:36,192 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:11:36,192 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:11:36,193 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:11:36,193 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:11:36,193 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior215#729557010] 01:11:36,204 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate216] 01:11:36,205 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer217#842750186] 01:11:36,205 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer218#-1755598223] 01:11:36,209 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:36,209 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:36,209 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:36,210 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior219#-978181164] 01:11:36,221 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate220] 01:11:36,224 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:36,224 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:36,224 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:36,224 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 01:11:36,224 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 01:11:36,224 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 01:11:36,224 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior221#-1123097166] 01:11:36,235 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate222] 01:11:36,237 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:36,237 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:36,237 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:36,237 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 01:11:36,237 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1] - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 01:11:36,237 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 01:11:36,238 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior223#-800783518] 01:11:36,249 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate224] 01:11:36,256 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:36,256 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:36,256 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:36,256 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 01:11:36,256 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than Candidate's term 2 - switching to Follower 01:11:36,256 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:11:36,256 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:11:36,256 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:36,256 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:36,256 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntriesReply [term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5], my term is 2 01:11:36,256 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "AppendEntriesReply [term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5]" message is greater than Candidate's term 2 - switching to Follower 01:11:36,257 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:11:36,257 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:36,257 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:36,257 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 01:11:36,257 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100]" message is greater than Candidate's term 2 - switching to Follower 01:11:36,257 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100] - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 01:11:36,257 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 01:11:36,257 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:11:36,257 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:36,257 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:11:36,257 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 01:11:36,257 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "RequestVoteReply [term=100, voteGranted=false]" message is greater than Candidate's term 2 - switching to Follower 01:11:36,257 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:11:36,257 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior225#1808647869] 01:11:36,269 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate226] 01:11:36,271 AM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 01:11:36,271 AM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 01:11:36,271 AM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 01:11:36,271 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior227#815812105] 01:11:36,282 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate228] 01:11:36,285 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:36,285 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:36,285 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:11:36,285 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=4, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 1001 01:11:36,285 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 01:11:36,285 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior229#-1468584140] 01:11:36,296 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate230] 01:11:36,304 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:11:36,304 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:11:36,304 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:11:36,304 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:11:36,304 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 01:11:36,304 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 01:11:36,304 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior231#1676358074] 01:11:36,315 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate232] [INFO] [02/13/2024 01:11:36.316] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 01:11:36,317 AM [test-akka.actor.default-dispatcher-12] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [02/13/2024 01:11:36.319] [test-akka.actor.default-dispatcher-12] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.171.39:25520) [INFO] [akkaDeadLetter][02/13/2024 01:11:36.319] [test-akka.actor.default-dispatcher-7] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#2020207433] 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'. 01:11:36,320 AM [test-akka.actor.default-dispatcher-7] [INFO] LocalActorRef - Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#2020207433] 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'. 01:11:36,323 AM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.39:25520] - Exiting completed [INFO] [02/13/2024 01:11:36.322] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.39:25520] - Exiting completed 01:11:36,323 AM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.39:25520] - Shutting down... [INFO] [02/13/2024 01:11:36.323] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.39:25520] - Shutting down... 01:11:36,324 AM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.39:25520] - Successfully shut down [INFO] [02/13/2024 01:11:36.323] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.39:25520] - Successfully shut down 01:11:36,328 AM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 01:11:36,328 AM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [02/13/2024 01:11:36.328] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.39:25520/system/remoting-terminator] Shutting down remote daemon. [INFO] [02/13/2024 01:11:36.328] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.39:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [02/13/2024 01:11:36.332] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.39:25520/system/remoting-terminator] Remoting shut down. 01:11:36,333 AM [test-akka.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [02/13/2024 01:11:36.333] [test-akka.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger