[DEBUG] [03/11/2024 13:30:36.738] [main] [EventStream(akka://test)] logger log1-TestEventListener started 01:30:36,740 PM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [03/11/2024 13:30:36.741] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [03/11/2024 13:30:36.741] [main] [EventStream(akka://test)] Default Loggers started [INFO] [03/11/2024 13:30:36.773] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.175:25520] with UID [-1737954714428645185] 01:30:36,774 PM [test-akka.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.175:25520] with UID [-1737954714428645185] 01:30:36,775 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.175:25520] - Starting up, Akka version [2.6.21] ... 01:30:36,785 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.175:25520] - Registered cluster JMX MBean [akka:type=Cluster] 01:30:36,785 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.175:25520] - Started up successfully [INFO] [03/11/2024 13:30:36.774] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.175:25520] - Starting up, Akka version [2.6.21] ... [INFO] [03/11/2024 13:30:36.779] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.175:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [03/11/2024 13:30:36.779] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.175:25520] - Started up successfully 01:30:36,787 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.175:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 01:30:36,787 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.175:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [INFO] [03/11/2024 13:30:36.787] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.175:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [03/11/2024 13:30:36.787] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.175:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 01:30:36,899 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:30:36,899 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:30:36,899 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:30:36,900 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 01:30:36,901 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 01:30:36,901 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:30:36,901 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 01:30:36,901 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior172#-1419099252] 01:30:36,904 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate173] 01:30:36,905 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer174#-122026259] 01:30:36,907 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:30:36,908 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 01:30:36,908 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:30:36,908 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:30:36,909 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 01:30:36,909 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:30:36,909 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:30:36,909 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior175#-565938995] 01:30:36,920 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate176] 01:30:36,921 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer177#-1864143540] 01:30:36,925 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:30:36,925 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:30:36,925 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:30:36,926 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:30:36,926 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 01:30:36,926 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 01:30:36,926 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior178#408467038] 01:30:36,938 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate179] 01:30:36,938 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer180#-916336715] 01:30:36,942 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:30:36,942 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:30:36,942 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:30:36,943 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 01:30:36,943 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=[]] 01:30:36,943 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 01:30:36,944 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:30:36,944 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 01:30:36,944 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior181#-787973799] 01:30:36,955 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate182] 01:30:36,956 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer183#-783464566] 01:30:37,62 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:30:37,62 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 01:30:37,71 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 01:30:37,71 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:30:37,72 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:30:37,72 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 01:30:37,72 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 01:30:37,72 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:30:37,72 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 01:30:37,74 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 01:30:37,75 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:30:37,75 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:30:37,77 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:30:37,77 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 01:30:37,77 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior184#340265847] 01:30:37,88 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate185] 01:30:37,89 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer186#771723588] 01:30:37,90 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer187#-1483585837] 01:30:37,196 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:30:37,197 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:30:37,197 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:30:37,200 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 01:30:37,200 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 01:30:37,200 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 01:30:37,201 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior188#-1020534214] 01:30:37,213 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate189] 01:30:37,218 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer190#311878049] 01:30:37,222 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:30:37,222 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:30:37,222 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:30:37,222 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 01:30:37,222 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]]] 01:30:37,222 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 01:30:37,222 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:30:37,222 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 01:30:37,223 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior191#386321000] 01:30:37,234 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate192] 01:30:37,339 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:30:37,339 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:30:37,339 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:30:37,340 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:30:37,340 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 01:30:37,340 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 01:30:37,341 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior193#-316150122] 01:30:37,352 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate194] 01:30:37,353 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer195#1282464113] 01:30:37,460 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:30:37,461 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:30:37,461 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:30:37,461 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior196#-1111346286] 01:30:37,472 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate197] 01:30:37,547 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 01:30:37,548 PM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 01:30:37,549 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 01:30:37,549 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 01:30:37,952 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 01:30:37,952 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 01:30:37,952 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 01:30:37,952 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:30:37,953 PM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 01:30:37,953 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:30:37,953 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:30:37,954 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:30:37,954 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:30:37,954 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:30:37,954 PM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 01:30:37,955 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior198#1255003132] 01:30:37,966 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate199] 01:30:37,967 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer200#1308159330] 01:30:37,967 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer201#1798766427] 01:30:37,967 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer202#-628439197] 01:30:37,968 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer203#-771614058] 01:30:38,72 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:30:38,72 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 01:30:38,75 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 01:30:38,75 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:30:38,75 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 01:30:38,75 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 01:30:38,76 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 01:30:38,76 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 01:30:38,76 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 01:30:38,77 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 01:30:38,77 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 01:30:38,77 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:30:38,77 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 01:30:38,77 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 01:30:38,77 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 01:30:38,77 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:30:38,77 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:30:38,77 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:30:38,78 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:30:38,78 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:30:38,78 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 01:30:38,78 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior204#-1000654943] 01:30:38,89 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate205] 01:30:38,90 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer206#1529683812] 01:30:38,90 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer207#-1016283526] 01:30:38,90 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer208#-504820930] 01:30:38,91 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer209#1935825490] 01:30:38,195 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:30:38,195 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:30:38,195 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:30:38,195 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior210#1619476034] 01:30:38,207 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate211] 01:30:38,311 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:30:38,311 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:30:38,311 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:30:38,311 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 01:30:38,311 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 01:30:38,311 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:30:38,311 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:30:38,312 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior212#-1282684893] 01:30:38,323 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate213] 01:30:38,427 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:30:38,428 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:30:38,428 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:30:38,429 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 01:30:38,429 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 01:30:38,429 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior214#-1214433644] 01:30:38,441 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate215] 01:30:38,441 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer216#292349702] 01:30:38,549 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:30:38,549 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 01:30:38,551 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 01:30:38,551 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:30:38,552 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:30:38,552 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 01:30:38,552 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 01:30:38,552 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:30:38,552 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 01:30:38,552 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:30:38,553 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:30:38,553 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:30:38,553 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:30:38,553 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior217#-155955290] 01:30:38,565 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate218] 01:30:38,565 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer219#1689345337] 01:30:38,566 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer220#1564273953] 01:30:38,671 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:30:38,671 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:30:38,671 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:30:38,672 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior221#827116480] 01:30:38,683 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate222] 01:30:38,787 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:30:38,787 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:30:38,787 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:30:38,787 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 01:30:38,787 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 01:30:38,788 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 01:30:38,788 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior223#1644719646] 01:30:38,799 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate224] 01:30:38,903 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:30:38,903 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:30:38,903 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:30:38,903 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 01:30:38,903 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 01:30:38,904 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 01:30:38,904 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior225#1992487812] 01:30:38,915 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate226] 01:30:39,19 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:30:39,19 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:30:39,19 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:30:39,19 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 01:30:39,19 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 01:30:39,19 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:30:39,19 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:30:39,20 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:30:39,20 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:30:39,20 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 01:30:39,20 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 01:30:39,20 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:30:39,20 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:30:39,20 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:30:39,20 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 01:30:39,20 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 01:30:39,20 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 01:30:39,20 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 01:30:39,20 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:30:39,20 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:30:39,20 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:30:39,20 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 01:30:39,21 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 01:30:39,21 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:30:39,21 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior227#-802623832] 01:30:39,32 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate228] 01:30:39,136 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 01:30:39,136 PM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 01:30:39,136 PM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 01:30:39,136 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior229#-40506066] 01:30:39,148 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate230] 01:30:39,252 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:30:39,252 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:30:39,252 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:30:39,252 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 01:30:39,252 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 01:30:39,252 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior231#2098783560] 01:30:39,264 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate232] 01:30:39,369 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:30:39,369 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:30:39,369 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:30:39,369 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:30:39,369 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 01:30:39,369 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 01:30:39,369 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior233#-422685469] 01:30:39,381 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate234] 01:30:39,382 PM [test-akka.actor.default-dispatcher-12] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [03/11/2024 13:30:39.382] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [03/11/2024 13:30:39.383] [test-akka.actor.default-dispatcher-11] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.170.175:25520) [INFO] [03/11/2024 13:30:39.384] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.175:25520] - Exiting completed [INFO] [03/11/2024 13:30:39.384] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.175:25520] - Shutting down... [INFO] [03/11/2024 13:30:39.385] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.175:25520] - Successfully shut down 01:30:39,385 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.175:25520] - Exiting completed 01:30:39,385 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.175:25520] - Shutting down... 01:30:39,385 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.175:25520] - Successfully shut down [INFO] [03/11/2024 13:30:39.388] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.175:25520/system/remoting-terminator] Shutting down remote daemon. [INFO] [03/11/2024 13:30:39.388] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.175:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 01:30:39,389 PM [test-akka.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 01:30:39,389 PM [test-akka.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [akkaDeadLetter][03/11/2024 13:30:39.384] [test-akka.actor.default-dispatcher-11] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-1478736815] 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:30:39,391 PM [test-akka.actor.default-dispatcher-11] [INFO] LocalActorRef - Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-1478736815] 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] [03/11/2024 13:30:39.392] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.175:25520/system/remoting-terminator] Remoting shut down. 01:30:39,392 PM [test-akka.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down.