[DEBUG] [04/03/2024 01:16:20.379] [main] [EventStream(akka://test)] logger log1-TestEventListener started 01:16:20,380 AM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [04/03/2024 01:16:20.380] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [04/03/2024 01:16:20.380] [main] [EventStream(akka://test)] Default Loggers started [INFO] [04/03/2024 01:16:20.420] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.58:25520] with UID [-5856161121426970260] 01:16:20,421 AM [test-akka.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.58:25520] with UID [-5856161121426970260] [INFO] [04/03/2024 01:16:20.422] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.58:25520] - Starting up, Akka version [2.6.21] ... 01:16:20,423 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.58:25520] - Starting up, Akka version [2.6.21] ... [INFO] [04/03/2024 01:16:20.428] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.58:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [04/03/2024 01:16:20.429] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.58:25520] - Started up successfully 01:16:20,430 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.58:25520] - Registered cluster JMX MBean [akka:type=Cluster] 01:16:20,430 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.58:25520] - Started up successfully [INFO] [04/03/2024 01:16:20.432] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.58:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [04/03/2024 01:16:20.432] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.58:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 01:16:20,437 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.58:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 01:16:20,437 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.58:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 01:16:20,584 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:16:20,610 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:16:20,610 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:16:20,611 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:16:20,611 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:16:20,611 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:16:20,611 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 01:16:20,611 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior170#-1632428294] 01:16:20,623 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate171] 01:16:20,624 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer172#-1574893859] 01:16:20,730 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:16:20,732 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 01:16:20,732 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:16:20,733 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:16:20,733 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 01:16:20,733 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:16:20,733 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:16:20,733 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior173#-1972626695] 01:16:20,745 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate174] 01:16:20,746 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer175#-934950445] 01:16:20,751 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:16:20,751 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:16:20,751 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:16:20,753 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:16:20,753 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:16:20,753 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 01:16:20,754 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior176#542848435] 01:16:20,765 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate177] 01:16:20,766 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer178#914179710] 01:16:20,770 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:16:20,770 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:16:20,770 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:16:20,771 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:16:20,771 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:16:20,771 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 01:16:20,772 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:16:20,772 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 01:16:20,772 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior179#880766665] 01:16:20,783 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate180] 01:16:20,784 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer181#-976140653] 01:16:20,789 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:16:20,789 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 01:16:20,792 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 01:16:20,792 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:16:20,792 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:16:20,792 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 01:16:20,792 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 01:16:20,792 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:16:20,792 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 01:16:20,794 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 01:16:20,794 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:16:20,794 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:16:20,794 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:16:20,794 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 01:16:20,794 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior182#-3208934] 01:16:20,805 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate183] 01:16:20,805 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer184#-49099638] 01:16:20,806 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer185#1065993765] 01:16:20,808 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:16:20,808 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:16:20,808 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:16:20,810 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 01:16:20,810 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:16:20,810 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 01:16:20,810 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior186#396886421] 01:16:20,821 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate187] 01:16:20,822 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer188#1232141541] 01:16:20,932 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:16:20,932 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:16:20,932 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:16:20,933 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:16:20,933 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:16:20,933 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 01:16:20,933 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:16:20,933 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 01:16:20,936 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior189#1105035899] 01:16:20,948 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate190] 01:16:20,963 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:16:20,963 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:16:20,963 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:16:20,965 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:16:20,966 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:16:20,966 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 01:16:20,966 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior191#1032563649] 01:16:20,977 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate192] 01:16:20,978 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer193#2127156050] 01:16:20,984 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:16:20,984 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:16:20,984 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:16:20,985 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior194#-1787990344] 01:16:20,997 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate195] 01:16:21,239 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 01:16:21,240 AM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 01:16:21,240 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 01:16:21,240 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 01:16:21,645 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 01:16:21,645 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 01:16:21,646 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 01:16:21,646 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:16:21,646 AM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 01:16:21,646 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:16:21,647 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:16:21,647 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:16:21,648 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:16:21,648 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:16:21,648 AM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 01:16:21,648 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior196#746941256] 01:16:21,660 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate197] 01:16:21,661 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer198#2028631138] 01:16:21,661 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer199#-1193198159] 01:16:21,662 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer200#-190056383] 01:16:21,662 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer201#743044444] 01:16:21,767 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:16:21,768 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 01:16:21,777 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 01:16:21,777 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:16:21,777 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 01:16:21,777 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 01:16:21,777 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 01:16:21,777 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 01:16:21,780 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 01:16:21,780 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 01:16:21,780 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 01:16:21,780 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:16:21,780 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 01:16:21,780 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 01:16:21,780 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 01:16:21,780 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:16:21,780 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:16:21,780 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:16:21,780 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:16:21,780 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:16:21,780 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 01:16:21,780 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior202#798119605] 01:16:21,792 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate203] 01:16:21,792 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer204#784234282] 01:16:21,793 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer205#-127786886] 01:16:21,794 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer206#553058512] 01:16:21,794 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer207#1240621656] 01:16:21,900 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:16:21,900 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:16:21,900 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:16:21,901 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior208#1745724049] 01:16:21,913 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate209] 01:16:22,16 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:16:22,16 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:16:22,16 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:16:22,16 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 01:16:22,16 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 01:16:22,16 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:16:22,17 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:16:22,17 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior210#1941884996] 01:16:22,28 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate211] 01:16:22,134 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:16:22,135 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:16:22,135 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:16:22,137 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:16:22,137 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 01:16:22,137 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior212#-1653387075] 01:16:22,150 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate213] 01:16:22,150 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer214#-1961426260] 01:16:22,255 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:16:22,255 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 01:16:22,258 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 01:16:22,258 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:16:22,258 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:16:22,258 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 01:16:22,258 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 01:16:22,258 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:16:22,258 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 01:16:22,258 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:16:22,258 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:16:22,258 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:16:22,258 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:16:22,259 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior215#1574266832] 01:16:22,270 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate216] 01:16:22,270 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer217#-1401285183] 01:16:22,271 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer218#1074007466] 01:16:22,377 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:16:22,377 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:16:22,377 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:16:22,378 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior219#-965428321] 01:16:22,390 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate220] 01:16:22,494 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:16:22,494 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:16:22,494 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:16:22,494 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 01:16:22,494 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:16:22,494 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 01:16:22,494 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior221#-150689854] 01:16:22,506 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate222] 01:16:22,509 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:16:22,510 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:16:22,510 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:16:22,510 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 01:16:22,510 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:16:22,510 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 01:16:22,510 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior223#135977064] 01:16:22,523 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate224] 01:16:22,529 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:16:22,529 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:16:22,529 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:16:22,529 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:16:22,529 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:16:22,529 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:16:22,529 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:16:22,530 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:16:22,530 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:16:22,530 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:16:22,530 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:16:22,530 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:16:22,530 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:16:22,530 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:16:22,530 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 01:16:22,530 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:16:22,530 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:16:22,530 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 01:16:22,531 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:16:22,531 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:16:22,531 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:16:22,531 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 01:16:22,531 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:16:22,531 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:16:22,531 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior225#-2076014429] 01:16:22,543 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate226] 01:16:22,546 AM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 01:16:22,547 AM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 01:16:22,547 AM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 01:16:22,547 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior227#-1706008298] 01:16:22,558 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate228] 01:16:22,562 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:16:22,562 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:16:22,562 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:16:22,562 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:16:22,562 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 01:16:22,563 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior229#-1691796661] 01:16:22,577 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate230] 01:16:22,581 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:16:22,581 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:16:22,581 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:16:22,581 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:16:22,581 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:16:22,581 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 01:16:22,581 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior231#295289856] 01:16:22,593 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate232] 01:16:22,594 AM [test-akka.actor.default-dispatcher-11] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [04/03/2024 01:16:22.594] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [04/03/2024 01:16:22.597] [test-akka.actor.default-dispatcher-11] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.171.58:25520) [INFO] [04/03/2024 01:16:22.597] [test-akka.actor.internal-dispatcher-10] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.58:25520] - Exiting completed [INFO] [04/03/2024 01:16:22.597] [test-akka.actor.internal-dispatcher-10] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.58:25520] - Shutting down... [INFO] [04/03/2024 01:16:22.597] [test-akka.actor.internal-dispatcher-10] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.58:25520] - Successfully shut down 01:16:22,598 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.58:25520] - Exiting completed 01:16:22,598 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.58:25520] - Shutting down... 01:16:22,598 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.58:25520] - Successfully shut down 01:16:22,598 AM [test-akka.actor.default-dispatcher-6] [INFO] LocalActorRef - Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#1550069928] 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] [akkaDeadLetter][04/03/2024 01:16:22.598] [test-akka.actor.default-dispatcher-5] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#1550069928] 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:16:22,604 AM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 01:16:22,604 AM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [04/03/2024 01:16:22.604] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.58:25520/system/remoting-terminator] Shutting down remote daemon. [INFO] [04/03/2024 01:16:22.604] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.58:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [04/03/2024 01:16:22.610] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.58:25520/system/remoting-terminator] Remoting shut down. 01:16:22,610 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [04/03/2024 01:16:22.611] [test-akka.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger