[DEBUG] [05/04/2024 20:10:41.870] [main] [EventStream(akka://test)] logger log1-TestEventListener started 08:10:41,870 PM [test-akka.actor.default-dispatcher-4] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [05/04/2024 20:10:41.871] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [05/04/2024 20:10:41.871] [main] [EventStream(akka://test)] Default Loggers started [INFO] [05/04/2024 20:10:41.915] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.143:25520] with UID [3612508190184216765] 08:10:41,916 PM [test-akka.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.143:25520] with UID [3612508190184216765] [INFO] [05/04/2024 20:10:41.917] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.143:25520] - Starting up, Akka version [2.6.21] ... 08:10:41,918 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.143:25520] - Starting up, Akka version [2.6.21] ... [INFO] [05/04/2024 20:10:41.925] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.143:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [05/04/2024 20:10:41.925] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.143:25520] - Started up successfully 08:10:41,925 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.143:25520] - Registered cluster JMX MBean [akka:type=Cluster] 08:10:41,925 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.143:25520] - Started up successfully [INFO] [05/04/2024 20:10:41.928] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.143:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [05/04/2024 20:10:41.928] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.143:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 08:10:41,929 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.143:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 08:10:41,929 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.143:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 08:10:42,88 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:10:42,108 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:10:42,108 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:10:42,110 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 08:10:42,110 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 5 in "AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than Candidate's term 2 - switching to Follower 08:10:42,111 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:10:42,111 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 08:10:42,111 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior170#-1178661587] 08:10:42,123 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate171] 08:10:42,123 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer172#-908722484] 08:10:42,226 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:10:42,227 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 08:10:42,227 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:10:42,227 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 08:10:42,228 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 08:10:42,228 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 08:10:42,228 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 08:10:42,228 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior173#-1567262664] 08:10:42,240 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate174] 08:10:42,240 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer175#1766973408] 08:10:42,346 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:10:42,346 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:10:42,346 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 08:10:42,348 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 08:10:42,348 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 08:10:42,348 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 08:10:42,349 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior176#1059695065] 08:10:42,360 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate177] 08:10:42,361 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer178#1584921654] 08:10:42,466 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:10:42,466 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:10:42,466 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:10:42,467 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 08:10:42,467 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleAppendEntries: AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] 08:10:42,467 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 08:10:42,468 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:10:42,468 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 08:10:42,469 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior179#-1752666008] 08:10:42,480 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate180] 08:10:42,480 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer181#-710879693] 08:10:42,584 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:10:42,584 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 08:10:42,586 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 08:10:42,586 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:10:42,586 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 08:10:42,586 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 08:10:42,586 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 08:10:42,586 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 08:10:42,587 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 08:10:42,589 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 08:10:42,589 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:10:42,589 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:10:42,589 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:10:42,589 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 08:10:42,590 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior182#-91557109] 08:10:42,602 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate183] 08:10:42,602 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer184#990333612] 08:10:42,603 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer185#-1397637404] 08:10:42,707 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:10:42,707 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:10:42,707 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:10:42,709 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 08:10:42,709 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0] - currentTerm: 2, votedFor: candidate, lastIndex: 1, lastTerm: 1 08:10:42,709 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 08:10:42,709 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior186#-2128729523] 08:10:42,721 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate187] 08:10:42,722 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer188#-2031222294] 08:10:42,726 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:10:42,726 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:10:42,726 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 08:10:42,726 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]], my term is 2 08:10:42,726 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleAppendEntries: AppendEntries [leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 08:10:42,726 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 08:10:42,726 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:10:42,726 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 08:10:42,727 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior189#1483866878] 08:10:42,738 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate190] 08:10:42,842 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:10:42,842 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:10:42,842 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 08:10:42,843 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 08:10:42,843 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 08:10:42,843 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 08:10:42,844 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior191#170946295] 08:10:42,855 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate192] 08:10:42,856 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer193#-359248394] 08:10:42,859 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:10:42,859 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:10:42,859 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:10:42,859 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior194#87396131] 08:10:42,871 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate195] 08:10:43,134 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 08:10:43,137 PM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 08:10:43,137 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 08:10:43,138 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 08:10:43,542 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 08:10:43,542 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 08:10:43,543 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 08:10:43,543 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 08:10:43,543 PM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 08:10:43,543 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:10:43,543 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:10:43,544 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:10:43,544 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:10:43,544 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:10:43,544 PM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 08:10:43,544 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior196#726716735] 08:10:43,556 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate197] 08:10:43,556 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer198#901226515] 08:10:43,557 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer199#588790951] 08:10:43,557 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer200#-698298617] 08:10:43,557 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer201#-593437779] 08:10:43,562 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:10:43,562 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 08:10:43,567 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 08:10:43,567 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 08:10:43,567 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 08:10:43,567 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 08:10:43,567 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 08:10:43,567 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 08:10:43,568 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 08:10:43,568 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 08:10:43,568 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 08:10:43,568 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 08:10:43,568 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 08:10:43,568 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 08:10:43,568 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 08:10:43,568 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 08:10:43,569 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 08:10:43,569 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 08:10:43,569 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 08:10:43,569 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:10:43,569 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 08:10:43,569 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior202#-649937228] 08:10:43,580 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate203] 08:10:43,581 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer204#620433696] 08:10:43,581 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer205#-2129273725] 08:10:43,581 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer206#779239367] 08:10:43,582 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer207#-1679284466] 08:10:43,688 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:10:43,688 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:10:43,688 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:10:43,689 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior208#-1495313737] 08:10:43,701 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate209] 08:10:43,805 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:10:43,805 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:10:43,805 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:10:43,805 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 08:10:43,805 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 08:10:43,805 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:10:43,805 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 08:10:43,805 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior210#-1345622850] 08:10:43,817 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate211] 08:10:43,921 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:10:43,921 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:10:43,921 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:10:43,922 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 08:10:43,922 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 08:10:43,922 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior212#-1755402926] 08:10:43,934 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate213] 08:10:43,934 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer214#-1968184700] 08:10:44,37 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:10:44,37 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 08:10:44,39 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 08:10:44,39 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:10:44,40 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 08:10:44,40 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 08:10:44,40 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 08:10:44,40 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 08:10:44,40 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 08:10:44,40 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:10:44,40 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:10:44,41 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:10:44,41 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 08:10:44,41 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior215#1274632495] 08:10:44,52 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate216] 08:10:44,53 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer217#375392661] 08:10:44,53 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer218#-919192075] 08:10:44,57 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:10:44,57 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:10:44,57 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:10:44,58 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior219#-425814372] 08:10:44,70 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate220] 08:10:44,73 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:10:44,73 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:10:44,73 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:10:44,73 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 08:10:44,73 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 08:10:44,73 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 08:10:44,74 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior221#-1347173003] 08:10:44,85 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate222] 08:10:44,90 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:10:44,90 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:10:44,90 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:10:44,90 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 08:10:44,90 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1] - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 08:10:44,90 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 08:10:44,90 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior223#-1144348923] 08:10:44,101 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate224] 08:10:44,104 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:10:44,105 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:10:44,105 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:10:44,105 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 08:10:44,105 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than Candidate's term 2 - switching to Follower 08:10:44,105 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:10:44,105 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 08:10:44,105 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:10:44,105 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:10:44,105 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntriesReply [term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5], my term is 2 08:10:44,105 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "AppendEntriesReply [term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5]" message is greater than Candidate's term 2 - switching to Follower 08:10:44,106 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 08:10:44,106 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:10:44,106 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:10:44,106 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 08:10:44,106 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100]" message is greater than Candidate's term 2 - switching to Follower 08:10:44,106 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100] - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 08:10:44,106 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 08:10:44,106 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 08:10:44,106 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:10:44,106 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 08:10:44,106 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 08:10:44,106 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "RequestVoteReply [term=100, voteGranted=false]" message is greater than Candidate's term 2 - switching to Follower 08:10:44,106 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 08:10:44,106 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior225#-1122951239] 08:10:44,118 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate226] 08:10:44,120 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 08:10:44,120 PM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 08:10:44,120 PM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 08:10:44,120 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior227#1563196010] 08:10:44,131 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate228] 08:10:44,134 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:10:44,134 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:10:44,134 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 08:10:44,134 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=4, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 1001 08:10:44,134 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 08:10:44,134 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior229#1198665152] 08:10:44,146 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate230] 08:10:44,149 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 08:10:44,149 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 08:10:44,149 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 08:10:44,149 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 08:10:44,149 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 08:10:44,149 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 08:10:44,149 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior231#1606765615] 08:10:44,160 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate232] [INFO] [05/04/2024 20:10:44.161] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 08:10:44,162 PM [test-akka.actor.default-dispatcher-4] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [05/04/2024 20:10:44.164] [test-akka.actor.default-dispatcher-4] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.170.143:25520) [INFO] [akkaDeadLetter][05/04/2024 20:10:44.164] [test-akka.actor.default-dispatcher-4] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#229413236] was unhandled. [1] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 08:10:44,166 PM [test-akka.actor.default-dispatcher-12] [INFO] LocalActorRef - Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#229413236] was unhandled. [1] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 08:10:44,166 PM [test-akka.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [akka://test@10.30.170.143:25520] - Exiting completed [INFO] [05/04/2024 20:10:44.166] [test-akka.actor.internal-dispatcher-7] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.143:25520] - Exiting completed 08:10:44,166 PM [test-akka.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [akka://test@10.30.170.143:25520] - Shutting down... [INFO] [05/04/2024 20:10:44.166] [test-akka.actor.internal-dispatcher-7] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.143:25520] - Shutting down... [INFO] [05/04/2024 20:10:44.166] [test-akka.actor.internal-dispatcher-7] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.143:25520] - Successfully shut down 08:10:44,167 PM [test-akka.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [akka://test@10.30.170.143:25520] - Successfully shut down 08:10:44,171 PM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 08:10:44,171 PM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [05/04/2024 20:10:44.170] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.170.143:25520/system/remoting-terminator] Shutting down remote daemon. [INFO] [05/04/2024 20:10:44.171] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.170.143:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports.