[DEBUG] [03/15/2024 10:18:57.383] [main] [EventStream(akka://test)] logger log1-TestEventListener started 10:18:57,385 AM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [03/15/2024 10:18:57.385] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [03/15/2024 10:18:57.385] [main] [EventStream(akka://test)] Default Loggers started 10:18:57,416 AM [test-akka.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.50:25520] with UID [3861340199558829203] [INFO] [03/15/2024 10:18:57.415] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.50:25520] with UID [3861340199558829203] [INFO] [03/15/2024 10:18:57.417] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.50:25520] - Starting up, Akka version [2.6.21] ... 10:18:57,417 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.50:25520] - Starting up, Akka version [2.6.21] ... 10:18:57,433 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.50:25520] - Registered cluster JMX MBean [akka:type=Cluster] 10:18:57,433 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.50:25520] - Started up successfully [INFO] [03/15/2024 10:18:57.421] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.50:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [03/15/2024 10:18:57.431] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.50:25520] - Started up successfully 10:18:57,436 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.50:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 10:18:57,436 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.50:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [INFO] [03/15/2024 10:18:57.435] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.50:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [03/15/2024 10:18:57.435] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.50:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 10:18:57,582 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:18:57,582 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:18:57,582 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:18:57,584 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 10:18:57,584 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 10:18:57,584 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:18:57,584 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 10:18:57,585 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior172#-599133888] 10:18:57,597 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate173] 10:18:57,598 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer174#1747081912] 10:18:57,702 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:18:57,703 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 10:18:57,703 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:18:57,703 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 10:18:57,704 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 10:18:57,704 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 10:18:57,704 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 10:18:57,704 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior175#-1725602592] 10:18:57,715 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate176] 10:18:57,716 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer177#297390591] 10:18:57,720 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:18:57,720 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:18:57,720 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 10:18:57,721 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 10:18:57,721 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 10:18:57,721 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 10:18:57,721 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior178#1055746633] 10:18:57,732 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate179] 10:18:57,732 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer180#522620165] 10:18:57,836 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:18:57,836 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:18:57,836 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:18:57,838 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 10:18:57,838 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=[]] 10:18:57,838 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 10:18:57,838 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:18:57,838 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 10:18:57,839 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior181#66358587] 10:18:57,850 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate182] 10:18:57,851 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer183#-1453208755] 10:18:57,854 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:18:57,854 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 10:18:57,856 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 10:18:57,856 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:18:57,856 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 10:18:57,856 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 10:18:57,856 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 10:18:57,856 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 10:18:57,856 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 10:18:57,858 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 10:18:57,858 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:18:57,858 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:18:57,859 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:18:57,860 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 10:18:57,860 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior184#1529570055] 10:18:57,871 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate185] 10:18:57,871 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer186#-1142802230] 10:18:57,871 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer187#-1956079353] 10:18:57,875 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:18:57,875 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:18:57,875 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:18:57,881 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 10:18:57,881 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 10:18:57,881 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 10:18:57,881 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior188#-986141669] 10:18:57,892 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate189] 10:18:57,892 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer190#1841675293] 10:18:57,996 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:18:57,996 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:18:57,996 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 10:18:57,996 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 10:18:57,996 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]]] 10:18:57,996 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 10:18:57,996 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:18:57,996 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 10:18:57,997 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior191#-75457025] 10:18:58,8 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate192] 10:18:58,111 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:18:58,111 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:18:58,111 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 10:18:58,112 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 10:18:58,112 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 10:18:58,112 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 10:18:58,112 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior193#2108288852] 10:18:58,124 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate194] 10:18:58,124 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer195#1569684332] 10:18:58,127 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:18:58,127 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:18:58,127 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:18:58,127 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior196#1788785099] 10:18:58,138 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate197] 10:18:58,305 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 10:18:58,307 AM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 10:18:58,307 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 10:18:58,307 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 10:18:58,711 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 10:18:58,711 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 10:18:58,711 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 10:18:58,711 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 10:18:58,711 AM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 10:18:58,711 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:18:58,712 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:18:58,712 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:18:58,712 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:18:58,712 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:18:58,712 AM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 10:18:58,712 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior198#-1846286767] 10:18:58,724 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate199] 10:18:58,725 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer200#619754781] 10:18:58,725 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer201#-1019069383] 10:18:58,725 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer202#-645595392] 10:18:58,725 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer203#1377038605] 10:18:58,729 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:18:58,729 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 10:18:58,731 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 10:18:58,731 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 10:18:58,731 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 10:18:58,732 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 10:18:58,732 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 10:18:58,732 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 10:18:58,732 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 10:18:58,732 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 10:18:58,732 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 10:18:58,732 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 10:18:58,732 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 10:18:58,732 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 10:18:58,733 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 10:18:58,733 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 10:18:58,733 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 10:18:58,733 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 10:18:58,733 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 10:18:58,733 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:18:58,733 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 10:18:58,734 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior204#-1967180271] 10:18:58,745 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate205] 10:18:58,745 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer206#-1261473537] 10:18:58,745 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer207#374916091] 10:18:58,746 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer208#-996562377] 10:18:58,746 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer209#435877649] 10:18:58,749 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:18:58,749 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:18:58,749 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:18:58,749 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior210#-1866962270] 10:18:58,760 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate211] 10:18:58,864 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:18:58,865 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:18:58,865 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:18:58,865 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 10:18:58,865 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 10:18:58,865 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:18:58,865 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 10:18:58,865 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior212#803664131] 10:18:58,877 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate213] 10:18:58,880 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:18:58,880 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:18:58,880 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:18:58,881 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 10:18:58,881 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 10:18:58,881 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior214#649041773] 10:18:58,893 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate215] 10:18:58,893 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer216#1411218517] 10:18:58,997 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:18:58,997 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 10:18:58,999 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 10:18:58,999 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:18:58,999 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 10:18:58,999 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 10:18:58,999 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 10:18:58,999 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 10:18:58,999 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 10:18:59,0 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:18:59,0 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:18:59,0 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:18:59,0 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 10:18:59,0 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior217#-154873331] 10:18:59,11 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate218] 10:18:59,11 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer219#-1532934583] 10:18:59,12 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer220#-947184950] 10:18:59,16 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:18:59,16 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:18:59,16 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:18:59,17 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior221#-219905536] 10:18:59,28 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate222] 10:18:59,34 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:18:59,34 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:18:59,34 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:18:59,34 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 10:18:59,35 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 10:18:59,35 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 10:18:59,35 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior223#401094414] 10:18:59,47 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate224] 10:18:59,150 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:18:59,150 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:18:59,150 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:18:59,150 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 10:18:59,150 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 10:18:59,150 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 10:18:59,150 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior225#-318622582] 10:18:59,161 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate226] 10:18:59,164 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:18:59,164 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:18:59,164 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:18:59,164 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 10:18:59,164 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 10:18:59,164 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:18:59,164 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 10:18:59,164 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:18:59,164 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:18:59,165 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 10:18:59,165 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 10:18:59,165 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 10:18:59,165 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:18:59,165 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:18:59,165 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 10:18:59,165 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 10:18:59,165 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 10:18:59,165 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 10:18:59,165 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 10:18:59,165 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:18:59,165 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:18:59,165 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 10:18:59,165 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 10:18:59,166 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 10:18:59,166 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior227#510912603] 10:18:59,177 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate228] 10:18:59,280 AM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 10:18:59,280 AM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 10:18:59,280 AM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 10:18:59,280 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior229#-1922797054] 10:18:59,291 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate230] 10:18:59,294 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:18:59,294 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:18:59,294 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 10:18:59,294 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 10:18:59,294 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 10:18:59,294 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior231#-458769419] 10:18:59,306 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate232] 10:18:59,409 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:18:59,409 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:18:59,409 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 10:18:59,409 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 10:18:59,409 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 10:18:59,409 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 10:18:59,409 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior233#-1357396555] 10:18:59,420 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate234] 10:18:59,422 AM [test-akka.actor.default-dispatcher-11] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [03/15/2024 10:18:59.421] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [03/15/2024 10:18:59.424] [test-akka.actor.default-dispatcher-12] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.171.50:25520) [INFO] [03/15/2024 10:18:59.425] [test-akka.actor.internal-dispatcher-10] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.50:25520] - Exiting completed [INFO] [03/15/2024 10:18:59.425] [test-akka.actor.internal-dispatcher-10] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.50:25520] - Shutting down... [INFO] [03/15/2024 10:18:59.425] [test-akka.actor.internal-dispatcher-10] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.50:25520] - Successfully shut down 10:18:59,426 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.50:25520] - Exiting completed 10:18:59,426 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.50:25520] - Shutting down... 10:18:59,426 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.50:25520] - Successfully shut down [INFO] [akkaDeadLetter][03/15/2024 10:18:59.424] [test-akka.actor.default-dispatcher-12] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#985563230] 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'. 10:18:59,427 AM [test-akka.actor.default-dispatcher-12] [INFO] LocalActorRef - Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#985563230] 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'. 10:18:59,430 AM [test-akka.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [03/15/2024 10:18:59.429] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.50:25520/system/remoting-terminator] Shutting down remote daemon. 10:18:59,430 AM [test-akka.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [03/15/2024 10:18:59.430] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.50:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [03/15/2024 10:18:59.434] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.171.50:25520/system/remoting-terminator] Remoting shut down. 10:18:59,434 AM [test-akka.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [03/15/2024 10:18:59.435] [test-akka.actor.internal-dispatcher-4] [EventStream] shutting down: StandardOutLogger