[DEBUG] [02/14/2024 01:12:10.847] [main] [EventStream(akka://test)] logger log1-TestEventListener started 01:12:10,850 AM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [02/14/2024 01:12:10.850] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [02/14/2024 01:12:10.850] [main] [EventStream(akka://test)] Default Loggers started [INFO] [02/14/2024 01:12:10.890] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.229:25520] with UID [4097778803167772534] 01:12:10,891 AM [test-akka.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.229:25520] with UID [4097778803167772534] [INFO] [02/14/2024 01:12:10.892] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.229:25520] - Starting up, Akka version [2.6.21] ... 01:12:10,895 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.229:25520] - Starting up, Akka version [2.6.21] ... [INFO] [02/14/2024 01:12:10.897] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.229:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [02/14/2024 01:12:10.897] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.229:25520] - Started up successfully 01:12:10,897 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.229:25520] - Registered cluster JMX MBean [akka:type=Cluster] 01:12:10,897 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.229:25520] - Started up successfully 01:12:10,909 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.229:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [02/14/2024 01:12:10.900] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.229:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 01:12:10,909 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.229:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [INFO] [02/14/2024 01:12:10.900] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.229:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 01:12:11,43 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:11,65 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:11,65 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:11,70 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:12:11,70 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:12:11,70 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:11,70 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 01:12:11,70 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior170#1355238437] 01:12:11,82 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate171] 01:12:11,82 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer172#-1091008317] 01:12:11,187 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:11,192 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 01:12:11,192 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:11,192 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:12:11,192 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 01:12:11,193 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:12:11,193 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:12:11,193 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior173#-1496999562] 01:12:11,204 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate174] 01:12:11,204 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer175#1849078036] 01:12:11,309 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:11,310 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:11,310 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:12:11,317 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:12:11,317 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:12:11,317 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 01:12:11,319 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior176#1893812009] 01:12:11,330 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate177] 01:12:11,333 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer178#606977551] 01:12:11,436 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:11,436 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:11,436 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:11,438 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:12:11,438 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:12:11,438 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 01:12:11,438 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:11,438 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 01:12:11,439 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior179#1083268054] 01:12:11,450 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate180] 01:12:11,450 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer181#-384919437] 01:12:11,558 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:11,558 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 01:12:11,561 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 01:12:11,561 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:11,562 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:12:11,562 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 01:12:11,562 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 01:12:11,562 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:12:11,562 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 01:12:11,564 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 01:12:11,564 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:12:11,565 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:12:11,565 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:11,565 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 01:12:11,565 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior182#-2064544634] 01:12:11,576 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate183] 01:12:11,576 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer184#1767878641] 01:12:11,577 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer185#1757465881] 01:12:11,681 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:11,682 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:11,682 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:11,683 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 01:12:11,683 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:12:11,683 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 01:12:11,683 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior186#2122896515] 01:12:11,695 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate187] 01:12:11,696 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer188#-1040570650] 01:12:11,702 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:11,702 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:11,702 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:12:11,703 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:12:11,703 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:12:11,703 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 01:12:11,703 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:11,703 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 01:12:11,704 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior189#1139761439] 01:12:11,715 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate190] 01:12:11,820 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:11,820 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:11,820 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:12:11,822 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:12:11,822 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:12:11,822 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 01:12:11,822 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior191#1561765967] 01:12:11,834 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate192] 01:12:11,834 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer193#1227736308] 01:12:11,939 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:11,939 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:11,939 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:11,939 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior194#-1766922080] 01:12:11,950 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate195] 01:12:12,106 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 01:12:12,109 AM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 01:12:12,109 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 01:12:12,110 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 01:12:12,519 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 01:12:12,519 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 01:12:12,519 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 01:12:12,520 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:12:12,520 AM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 01:12:12,520 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:12:12,521 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:12:12,521 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:12:12,521 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:12:12,521 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:12,522 AM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 01:12:12,522 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior196#-1345895152] 01:12:12,534 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate197] 01:12:12,534 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer198#-1886430973] 01:12:12,535 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer199#-289929065] 01:12:12,535 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer200#-2091837817] 01:12:12,535 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer201#-1011059926] 01:12:12,640 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:12,640 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 01:12:12,654 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 01:12:12,654 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:12:12,654 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 01:12:12,654 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 01:12:12,654 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 01:12:12,654 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 01:12:12,655 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 01:12:12,655 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 01:12:12,655 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 01:12:12,655 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:12:12,655 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 01:12:12,655 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 01:12:12,655 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 01:12:12,655 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:12:12,655 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:12:12,655 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:12:12,655 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:12:12,655 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:12,655 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 01:12:12,655 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior202#-1215572472] 01:12:12,667 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate203] 01:12:12,667 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer204#-4495058] 01:12:12,668 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer205#-1462898911] 01:12:12,669 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer206#-1195801835] 01:12:12,669 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer207#-368188400] 01:12:12,774 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:12,775 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:12,775 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:12,775 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior208#60622865] 01:12:12,786 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate209] 01:12:12,789 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:12,790 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:12,790 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:12,790 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 01:12:12,790 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 01:12:12,790 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:12,790 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:12:12,790 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior210#1866885025] 01:12:12,801 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate211] 01:12:12,903 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:12,904 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:12,904 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:12,905 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:12:12,905 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 01:12:12,906 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior212#-453267048] 01:12:12,917 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate213] 01:12:12,917 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer214#1936385752] 01:12:12,920 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:12,920 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 01:12:12,923 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 01:12:12,923 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:12,923 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:12:12,923 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 01:12:12,923 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 01:12:12,923 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:12:12,923 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 01:12:12,923 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:12:12,923 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:12:12,923 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:12,924 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:12:12,924 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior215#1024949011] 01:12:12,935 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate216] 01:12:12,935 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer217#-651097273] 01:12:12,936 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer218#933587662] 01:12:12,940 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:12,940 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:12,940 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:12,941 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior219#1738617056] 01:12:12,952 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate220] 01:12:12,954 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:12,954 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:12,954 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:12,955 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 01:12:12,955 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:12:12,955 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 01:12:12,955 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior221#431189531] 01:12:12,966 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate222] 01:12:13,69 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:13,69 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:13,69 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:13,69 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 01:12:13,69 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:12:13,69 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 01:12:13,69 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior223#1131260829] 01:12:13,80 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate224] 01:12:13,183 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:13,183 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:13,183 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:13,183 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:12:13,183 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:12:13,183 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:13,183 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:12:13,183 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:13,183 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:13,183 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:12:13,183 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:12:13,183 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:12:13,184 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:13,184 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:13,184 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 01:12:13,184 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:12:13,184 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:12:13,184 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 01:12:13,184 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:12:13,184 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:13,184 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:13,184 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 01:12:13,184 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:12:13,184 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:12:13,184 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior225#1888879367] 01:12:13,195 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate226] 01:12:13,297 AM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 01:12:13,297 AM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 01:12:13,297 AM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 01:12:13,297 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior227#1814234553] 01:12:13,308 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate228] 01:12:13,310 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:13,310 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:13,310 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:12:13,310 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:12:13,310 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 01:12:13,310 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior229#-1426763816] 01:12:13,321 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate230] 01:12:13,323 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:13,323 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:13,323 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:12:13,323 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:12:13,324 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:12:13,324 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 01:12:13,324 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior231#78889788] 01:12:13,335 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate232] [INFO] [02/14/2024 01:12:13.336] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 01:12:13,336 AM [test-akka.actor.default-dispatcher-5] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 01:12:13,339 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.229:25520] - Exiting completed 01:12:13,339 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.229:25520] - Shutting down... 01:12:13,339 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.229:25520] - Successfully shut down [WARN] [02/14/2024 01:12:13.339] [test-akka.actor.default-dispatcher-6] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.170.229:25520) [INFO] [02/14/2024 01:12:13.338] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.229:25520] - Exiting completed [INFO] [02/14/2024 01:12:13.338] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.229:25520] - Shutting down... [INFO] [02/14/2024 01:12:13.339] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.229:25520] - Successfully shut down [INFO] [akkaDeadLetter][02/14/2024 01:12:13.340] [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#1121128812] 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:12:13,340 AM [test-akka.actor.default-dispatcher-6] [INFO] LocalActorRef - Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#1121128812] 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] [02/14/2024 01:12:13.344] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.170.229:25520/system/remoting-terminator] Shutting down remote daemon. 01:12:13,344 AM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [02/14/2024 01:12:13.344] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.170.229:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 01:12:13,344 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. 01:12:13,351 AM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [02/14/2024 01:12:13.351] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.229:25520/system/remoting-terminator] Remoting shut down. [DEBUG] [02/14/2024 01:12:13.351] [test-akka.actor.internal-dispatcher-4] [EventStream] shutting down: StandardOutLogger