[DEBUG] [01/16/2024 15:55:47.527] [main] [EventStream(akka://test)] logger log1-TestEventListener started 03:55:47,528 PM [test-akka.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [01/16/2024 15:55:47.530] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [01/16/2024 15:55:47.530] [main] [EventStream(akka://test)] Default Loggers started [INFO] [01/16/2024 15:55:47.559] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.218:25520] with UID [-7298051126776884034] 03:55:47,560 PM [test-akka.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.218:25520] with UID [-7298051126776884034] [INFO] [01/16/2024 15:55:47.561] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.218:25520] - Starting up, Akka version [2.6.21] ... 03:55:47,561 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.218:25520] - Starting up, Akka version [2.6.21] ... [INFO] [01/16/2024 15:55:47.565] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.218:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [01/16/2024 15:55:47.565] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.218:25520] - Started up successfully 03:55:47,565 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.218:25520] - Registered cluster JMX MBean [akka:type=Cluster] 03:55:47,565 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.218:25520] - Started up successfully [INFO] [01/16/2024 15:55:47.568] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.218:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [01/16/2024 15:55:47.568] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.218:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 03:55:47,574 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.218:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 03:55:47,574 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.218:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 03:55:47,691 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:55:47,691 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:55:47,691 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:55:47,704 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 03:55:47,704 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 03:55:47,705 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 03:55:47,705 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 03:55:47,705 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior172#-1318620622] 03:55:47,718 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate173] 03:55:47,718 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer174#159571194] 03:55:47,822 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:55:47,823 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 03:55:47,823 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:55:47,823 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 03:55:47,824 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 03:55:47,824 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 03:55:47,824 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 03:55:47,824 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior175#2091163956] 03:55:47,842 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate176] 03:55:47,842 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer177#-378812594] 03:55:47,945 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:55:47,945 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:55:47,945 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 03:55:47,946 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 03:55:47,946 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 03:55:47,946 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 03:55:47,947 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior178#-1261146851] 03:55:47,958 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate179] 03:55:47,959 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer180#508421746] 03:55:47,963 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:55:47,963 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:55:47,963 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:55:47,963 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 03:55:47,963 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=[]] 03:55:47,963 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 03:55:47,964 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 03:55:47,964 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 03:55:47,964 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior181#341750589] 03:55:47,975 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate182] 03:55:47,976 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer183#2037626273] 03:55:48,79 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:55:48,79 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 03:55:48,81 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 03:55:48,81 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:55:48,81 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 03:55:48,81 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 03:55:48,82 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 03:55:48,82 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 03:55:48,82 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 03:55:48,84 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 03:55:48,84 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 03:55:48,84 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 03:55:48,86 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 03:55:48,87 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 03:55:48,87 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior184#181091712] 03:55:48,98 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate185] 03:55:48,98 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer186#1714800717] 03:55:48,99 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer187#-590877013] 03:55:48,202 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:55:48,202 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:55:48,202 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:55:48,204 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 03:55:48,204 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 03:55:48,204 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 03:55:48,204 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior188#1382029772] 03:55:48,216 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate189] 03:55:48,216 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer190#-716583652] 03:55:48,223 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:55:48,223 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:55:48,223 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 03:55:48,223 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 03:55:48,223 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]]] 03:55:48,223 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 03:55:48,223 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 03:55:48,223 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 03:55:48,224 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior191#1241546098] 03:55:48,235 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate192] 03:55:48,240 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:55:48,240 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:55:48,240 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 03:55:48,240 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 03:55:48,240 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 03:55:48,240 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 03:55:48,241 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior193#329733456] 03:55:48,252 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate194] 03:55:48,253 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer195#-454737016] 03:55:48,259 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:55:48,259 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:55:48,259 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:55:48,259 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior196#-267825442] 03:55:48,270 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate197] 03:55:48,338 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 03:55:48,339 PM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 03:55:48,339 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 03:55:48,339 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 03:55:48,742 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 03:55:48,742 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 03:55:48,743 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 03:55:48,743 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 03:55:48,743 PM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 03:55:48,743 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 03:55:48,743 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 03:55:48,744 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 03:55:48,744 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 03:55:48,744 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 03:55:48,744 PM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 03:55:48,744 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior198#-1550418518] 03:55:48,756 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate199] 03:55:48,757 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer200#-541021471] 03:55:48,757 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer201#-1662657720] 03:55:48,757 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer202#1458982695] 03:55:48,758 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer203#1285608340] 03:55:48,761 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:55:48,762 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 03:55:48,764 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 03:55:48,764 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 03:55:48,764 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 03:55:48,764 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 03:55:48,765 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 03:55:48,765 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 03:55:48,765 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 03:55:48,765 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 03:55:48,765 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 03:55:48,765 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 03:55:48,765 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 03:55:48,765 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 03:55:48,766 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 03:55:48,766 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 03:55:48,766 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 03:55:48,766 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 03:55:48,766 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 03:55:48,766 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 03:55:48,767 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 03:55:48,767 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior204#-2100840740] 03:55:48,778 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate205] 03:55:48,780 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer206#-872829871] 03:55:48,780 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer207#464418934] 03:55:48,782 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer208#491422636] 03:55:48,782 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer209#-1266726595] 03:55:48,785 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:55:48,785 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:55:48,786 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:55:48,786 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior210#808823879] 03:55:48,797 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate211] 03:55:48,803 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:55:48,803 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:55:48,803 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:55:48,803 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 03:55:48,803 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 03:55:48,803 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 03:55:48,803 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 03:55:48,803 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior212#270317714] 03:55:48,815 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate213] 03:55:48,819 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:55:48,819 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:55:48,819 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:55:48,820 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 03:55:48,820 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 03:55:48,820 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior214#493486781] 03:55:48,832 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate215] 03:55:48,832 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer216#687465914] 03:55:48,836 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:55:48,836 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 03:55:48,841 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 03:55:48,841 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:55:48,842 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 03:55:48,842 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 03:55:48,842 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 03:55:48,842 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 03:55:48,842 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 03:55:48,842 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 03:55:48,842 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 03:55:48,842 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 03:55:48,842 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 03:55:48,842 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior217#1856498111] 03:55:48,854 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate218] 03:55:48,858 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer219#-2133281962] 03:55:48,858 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer220#-1125178829] 03:55:48,964 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:55:48,964 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:55:48,964 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:55:48,964 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior221#1044215589] 03:55:48,976 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate222] 03:55:49,81 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:55:49,82 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:55:49,82 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:55:49,82 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 03:55:49,82 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 03:55:49,82 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 03:55:49,82 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior223#-1371973806] 03:55:49,94 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate224] 03:55:49,98 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:55:49,98 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:55:49,98 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:55:49,98 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 03:55:49,98 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 03:55:49,98 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 03:55:49,98 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior225#-174423637] 03:55:49,110 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate226] 03:55:49,112 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:55:49,112 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:55:49,112 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:55:49,113 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 03:55:49,113 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 03:55:49,113 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 03:55:49,113 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 03:55:49,113 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:55:49,113 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:55:49,113 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 03:55:49,113 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 03:55:49,113 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 03:55:49,113 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:55:49,113 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:55:49,113 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 03:55:49,113 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 03:55:49,113 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 03:55:49,114 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 03:55:49,114 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 03:55:49,114 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:55:49,114 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 03:55:49,114 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 03:55:49,114 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 03:55:49,114 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 03:55:49,114 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior227#246397498] 03:55:49,125 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate228] 03:55:49,128 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 03:55:49,128 PM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 03:55:49,128 PM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 03:55:49,128 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior229#-669242950] 03:55:49,139 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate230] 03:55:49,243 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:55:49,243 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:55:49,243 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 03:55:49,243 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 03:55:49,243 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 03:55:49,243 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior231#1676878462] 03:55:49,255 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate232] 03:55:49,359 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 03:55:49,359 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 03:55:49,359 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 03:55:49,359 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 03:55:49,359 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 03:55:49,359 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 03:55:49,359 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior233#1889587510] 03:55:49,371 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate234] 03:55:49,372 PM [test-akka.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [01/16/2024 15:55:49.372] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [01/16/2024 15:55:49.374] [test-akka.actor.default-dispatcher-5] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.171.218:25520) [INFO] [01/16/2024 15:55:49.376] [test-akka.actor.internal-dispatcher-10] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.218:25520] - Exiting completed [INFO] [01/16/2024 15:55:49.376] [test-akka.actor.internal-dispatcher-10] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.218:25520] - Shutting down... [INFO] [01/16/2024 15:55:49.376] [test-akka.actor.internal-dispatcher-10] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.218:25520] - Successfully shut down 03:55:49,376 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.218:25520] - Exiting completed 03:55:49,377 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.218:25520] - Shutting down... 03:55:49,377 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.218:25520] - Successfully shut down [INFO] [akkaDeadLetter][01/16/2024 15:55:49.374] [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#1837911623] 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'. 03:55:49,379 PM [test-akka.actor.default-dispatcher-11] [INFO] LocalActorRef - Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#1837911623] 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] [01/16/2024 15:55:49.379] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.218:25520/system/remoting-terminator] Shutting down remote daemon. 03:55:49,380 PM [test-akka.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [01/16/2024 15:55:49.380] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.218:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 03:55:49,381 PM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [01/16/2024 15:55:49.386] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.171.218:25520/system/remoting-terminator] Remoting shut down. 03:55:49,386 PM [test-akka.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [01/16/2024 15:55:49.387] [test-akka.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger