[DEBUG] [07/27/2024 22:31:58.224] [main] [EventStream(akka://test)] logger log1-TestEventListener started 10:31:58,225 PM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [07/27/2024 22:31:58.225] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [07/27/2024 22:31:58.225] [main] [EventStream(akka://test)] Default Loggers started [INFO] [07/27/2024 22:31:58.244] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.143:25520] with UID [6477139822915829167] [INFO] [07/27/2024 22:31:58.245] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.143:25520] - Starting up, Akka version [2.6.21] ... [INFO] [07/27/2024 22:31:58.248] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.143:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [07/27/2024 22:31:58.248] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.143:25520] - Started up successfully 10:31:58,250 PM [test-akka.actor.default-dispatcher-8] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.143:25520] with UID [6477139822915829167] 10:31:58,250 PM [test-akka.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [akka://test@10.30.170.143:25520] - Starting up, Akka version [2.6.21] ... 10:31:58,250 PM [test-akka.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [akka://test@10.30.170.143:25520] - Registered cluster JMX MBean [akka:type=Cluster] 10:31:58,250 PM [test-akka.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [akka://test@10.30.170.143:25520] - Started up successfully [INFO] [07/27/2024 22:31:58.258] [test-akka.actor.internal-dispatcher-2] [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] [07/27/2024 22:31:58.258] [test-akka.actor.internal-dispatcher-2] [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 10:31:58,259 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 10:31:58,259 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 10:31:58,364 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:31:58,364 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:31:58,364 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:31:58,365 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 10:31:58,365 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 10:31:58,365 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:31:58,365 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 10:31:58,365 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior416#1681353248] 10:31:58,377 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate417] 10:31:58,377 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer418#-1447528268] 10:31:58,479 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:31:58,480 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 10:31:58,480 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:31:58,480 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 10:31:58,480 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 10:31:58,480 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 10:31:58,480 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 10:31:58,480 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior419#2088844047] 10:31:58,491 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate420] 10:31:58,491 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer421#-1290972121] 10:31:58,597 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:31:58,597 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:31:58,597 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 10:31:58,598 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 10:31:58,598 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 10:31:58,598 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 10:31:58,598 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior422#-1223490516] 10:31:58,609 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate423] 10:31:58,609 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer424#1695509551] 10:31:58,711 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:31:58,711 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:31:58,711 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:31:58,712 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 10:31:58,712 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=[]] 10:31:58,712 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 10:31:58,712 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:31:58,712 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 10:31:58,712 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior425#-884086330] 10:31:58,723 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate426] 10:31:58,723 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer427#1232251614] 10:31:58,725 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:31:58,725 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 10:31:58,726 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 10:31:58,726 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:31:58,727 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 10:31:58,727 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 10:31:58,727 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 10:31:58,727 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 10:31:58,727 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 10:31:58,727 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 10:31:58,727 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:31:58,727 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:31:58,727 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:31:58,727 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 10:31:58,727 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior428#-1409100734] 10:31:58,738 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate429] 10:31:58,738 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer430#1711331774] 10:31:58,738 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer431#825063854] 10:31:58,840 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:31:58,840 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:31:58,840 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:31:58,840 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 10:31:58,840 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 10:31:58,840 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 10:31:58,841 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior432#-615471431] 10:31:58,851 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate433] 10:31:58,851 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer434#1943559940] 10:31:58,853 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:31:58,853 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:31:58,853 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 10:31:58,853 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 10:31:58,853 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]]] 10:31:58,853 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 10:31:58,853 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:31:58,853 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 10:31:58,854 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior435#1942636287] 10:31:58,864 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate436] 10:31:58,865 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:31:58,865 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:31:58,865 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 10:31:58,865 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 10:31:58,865 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 10:31:58,865 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 10:31:58,865 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior437#431316207] 10:31:58,876 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate438] 10:31:58,876 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer439#-1820605767] 10:31:58,978 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:31:58,978 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:31:58,978 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:31:58,978 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior440#379516413] 10:31:58,989 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate441] 10:31:58,993 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 10:31:58,993 PM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 10:31:58,993 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 10:31:58,993 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 10:31:59,395 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 10:31:59,395 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 10:31:59,395 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 10:31:59,395 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 10:31:59,395 PM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 10:31:59,395 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:31:59,395 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:31:59,396 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:31:59,396 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:31:59,396 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:31:59,396 PM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 10:31:59,396 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior442#-1443531244] 10:31:59,407 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate443] 10:31:59,407 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer444#896180561] 10:31:59,407 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer445#1521453258] 10:31:59,407 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer446#1550689855] 10:31:59,408 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer447#-427650324] 10:31:59,409 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:31:59,410 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 10:31:59,411 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 10:31:59,411 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 10:31:59,411 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 10:31:59,411 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 10:31:59,411 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 10:31:59,411 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 10:31:59,411 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 10:31:59,411 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 10:31:59,411 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 10:31:59,411 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 10:31:59,411 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 10:31:59,411 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 10:31:59,412 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 10:31:59,412 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 10:31:59,412 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 10:31:59,412 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 10:31:59,412 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 10:31:59,412 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:31:59,412 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 10:31:59,412 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior448#1451819803] 10:31:59,422 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate449] 10:31:59,423 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer450#1185792818] 10:31:59,423 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer451#1411202834] 10:31:59,423 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer452#622667889] 10:31:59,423 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer453#1153880964] 10:31:59,524 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:31:59,524 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:31:59,524 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:31:59,525 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior454#-1729830610] 10:31:59,535 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate455] 10:31:59,537 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:31:59,537 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:31:59,537 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:31:59,537 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 10:31:59,537 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 10:31:59,537 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:31:59,537 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 10:31:59,537 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior456#-81020235] 10:31:59,548 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate457] 10:31:59,551 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:31:59,551 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:31:59,551 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:31:59,551 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 10:31:59,551 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 10:31:59,552 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior458#25207559] 10:31:59,562 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate459] 10:31:59,563 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer460#-1134401731] 10:31:59,665 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:31:59,665 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 10:31:59,665 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 10:31:59,666 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:31:59,666 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 10:31:59,666 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 10:31:59,666 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 10:31:59,666 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 10:31:59,666 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 10:31:59,666 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:31:59,666 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:31:59,666 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:31:59,666 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 10:31:59,666 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior461#1882042441] 10:31:59,677 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate462] 10:31:59,677 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer463#1450316305] 10:31:59,677 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer464#-463691870] 10:31:59,680 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:31:59,680 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:31:59,680 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:31:59,680 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior465#-998549816] 10:31:59,691 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate466] 10:31:59,692 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:31:59,692 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:31:59,692 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:31:59,692 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 10:31:59,692 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 10:31:59,692 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 10:31:59,692 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior467#1813991026] 10:31:59,703 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate468] 10:31:59,704 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:31:59,704 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:31:59,704 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:31:59,704 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 10:31:59,704 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 10:31:59,704 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 10:31:59,704 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior469#-658558664] 10:31:59,715 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate470] 10:31:59,817 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:31:59,817 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:31:59,817 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:31:59,817 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 10:31:59,817 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 10:31:59,817 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:31:59,817 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 10:31:59,817 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:31:59,817 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:31:59,817 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 10:31:59,817 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 10:31:59,818 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 10:31:59,818 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:31:59,818 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:31:59,818 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 10:31:59,818 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 10:31:59,818 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 10:31:59,818 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 10:31:59,818 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 10:31:59,818 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:31:59,818 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 10:31:59,818 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 10:31:59,818 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 10:31:59,818 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 10:31:59,818 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior471#-29372981] 10:31:59,829 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate472] 10:31:59,830 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 10:31:59,830 PM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 10:31:59,830 PM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 10:31:59,831 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior473#-647620917] 10:31:59,855 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate474] 10:31:59,956 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:31:59,956 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:31:59,956 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 10:31:59,956 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 10:31:59,956 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 10:31:59,957 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior475#-1276008394] 10:31:59,967 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate476] 10:31:59,968 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 10:31:59,968 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 10:31:59,968 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 10:31:59,969 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 10:31:59,969 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 10:31:59,969 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 10:31:59,969 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior477#-294202774] 10:31:59,979 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate478] [INFO] [07/27/2024 22:31:59.980] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 10:31:59,981 PM [test-akka.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [07/27/2024 22:31:59.982] [test-akka.actor.default-dispatcher-5] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.170.143:25520) [INFO] [07/27/2024 22:31:59.982] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.143:25520] - Exiting completed [INFO] [akkaDeadLetter][07/27/2024 22:31:59.982] [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#890548159] 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] [07/27/2024 22:31:59.982] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.143:25520] - Shutting down... 10:31:59,982 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.143:25520] - Exiting completed 10:31:59,982 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.143:25520] - Shutting down... 10:31:59,982 PM [test-akka.actor.default-dispatcher-5] [INFO] LocalActorRef - akkaDeadLetter Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#890548159] 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] [07/27/2024 22:31:59.982] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.143:25520] - Successfully shut down 10:31:59,983 PM [test-akka.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [akka://test@10.30.170.143:25520] - Successfully shut down [INFO] [07/27/2024 22:31:59.983] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.170.143:25520/system/remoting-terminator] Shutting down remote daemon. 10:31:59,984 PM [test-akka.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 10:31:59,984 PM [test-akka.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [07/27/2024 22:31:59.984] [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. [INFO] [07/27/2024 22:31:59.986] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.170.143:25520/system/remoting-terminator] Remoting shut down. 10:31:59,987 PM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [07/27/2024 22:31:59.987] [test-akka.actor.internal-dispatcher-4] [EventStream] shutting down: StandardOutLogger