[DEBUG] [10/18/2024 01:12:31.102] [main] [EventStream(akka://test)] logger log1-TestEventListener started 01:12:31,102 AM [test-akka.actor.default-dispatcher-7] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [10/18/2024 01:12:31.103] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [10/18/2024 01:12:31.103] [main] [EventStream(akka://test)] Default Loggers started [INFO] [10/18/2024 01:12:31.119] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.33:25520] with UID [-4755875703758591725] 01:12:31,119 AM [test-akka.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.33:25520] with UID [-4755875703758591725] [INFO] [10/18/2024 01:12:31.120] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.33:25520] - Starting up, Akka version [2.6.21] ... 01:12:31,121 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.33:25520] - Starting up, Akka version [2.6.21] ... 01:12:31,125 AM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.33:25520] - Registered cluster JMX MBean [akka:type=Cluster] 01:12:31,125 AM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.33:25520] - Started up successfully 01:12:31,126 AM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.33:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 01:12:31,126 AM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.33:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [INFO] [10/18/2024 01:12:31.123] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.33:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [10/18/2024 01:12:31.124] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.33:25520] - Started up successfully [INFO] [10/18/2024 01:12:31.126] [test-akka.actor.internal-dispatcher-5] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.33:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [10/18/2024 01:12:31.126] [test-akka.actor.internal-dispatcher-5] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.33:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 01:12:31,240 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:31,241 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:31,241 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:31,242 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 01:12:31,242 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 5 in "AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than Candidate's term 2 - switching to Follower 01:12:31,242 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:31,242 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 01:12:31,242 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior455#1372970670] 01:12:31,254 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate456] 01:12:31,254 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer457#988126407] 01:12:31,257 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:31,257 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 01:12:31,257 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:31,257 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:12:31,257 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 01:12:31,257 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:12:31,257 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:12:31,258 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior458#-1567261881] 01:12:31,268 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate459] 01:12:31,268 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer460#1164788135] 01:12:31,270 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:31,270 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:31,270 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:12:31,270 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:12:31,271 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 01:12:31,271 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 01:12:31,271 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior461#-1547561673] 01:12:31,281 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate462] 01:12:31,282 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer463#-1617242671] 01:12:31,283 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:31,284 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:31,284 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:31,284 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 01:12:31,284 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleAppendEntries: AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] 01:12:31,284 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 01:12:31,284 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:31,284 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 01:12:31,285 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior464#73681355] 01:12:31,295 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate465] 01:12:31,295 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer466#426134680] 01:12:31,297 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:31,297 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 01:12:31,298 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 01:12:31,298 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:31,298 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:12:31,298 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 01:12:31,298 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 01:12:31,298 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:12:31,298 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 01:12:31,299 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 01:12:31,299 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:12:31,299 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:12:31,299 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:31,299 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 01:12:31,299 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior467#-1751205458] 01:12:31,309 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate468] 01:12:31,310 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer469#-817156867] 01:12:31,310 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer470#-724104046] 01:12:31,412 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:31,412 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:31,412 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:31,413 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 01:12:31,413 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0] - currentTerm: 2, votedFor: candidate, lastIndex: 1, lastTerm: 1 01:12:31,413 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 01:12:31,413 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior471#-1699817970] 01:12:31,424 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate472] 01:12:31,424 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer473#-613161570] 01:12:31,427 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:31,427 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:31,427 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:12:31,427 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]], my term is 2 01:12:31,427 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleAppendEntries: AppendEntries [leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 01:12:31,427 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 01:12:31,427 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:31,427 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 01:12:31,427 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior474#1695280964] 01:12:31,428 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate475] 01:12:31,430 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:31,431 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:31,431 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:12:31,431 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:12:31,431 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 01:12:31,431 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 01:12:31,431 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior476#1404810517] 01:12:31,433 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate477] 01:12:31,433 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer478#381315707] 01:12:31,435 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:31,435 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:31,435 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:31,435 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior479#-1616687244] 01:12:31,435 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate480] 01:12:31,439 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 01:12:31,439 AM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 01:12:31,439 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 01:12:31,439 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 01:12:31,842 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 01:12:31,842 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 01:12:31,842 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 01:12:31,842 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:12:31,842 AM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 01:12:31,842 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:12:31,843 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:12:31,843 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:12:31,843 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:12:31,843 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:31,843 AM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 01:12:31,843 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior481#-1101824563] 01:12:31,845 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate482] 01:12:31,845 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer483#931549045] 01:12:31,845 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer484#1597276287] 01:12:31,845 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer485#1590654013] 01:12:31,845 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer486#186368194] 01:12:31,848 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:31,848 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 01:12:31,851 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 01:12:31,851 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 01:12:31,851 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 01:12:31,851 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 01:12:31,851 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 01:12:31,851 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 01:12:31,852 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 01:12:31,852 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 01:12:31,852 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 01:12:31,852 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:12:31,852 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 01:12:31,852 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 01:12:31,852 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 01:12:31,852 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:12:31,852 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:12:31,852 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:12:31,852 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:12:31,852 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:31,852 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 01:12:31,853 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior487#632867465] 01:12:31,854 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate488] 01:12:31,854 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer489#-202458567] 01:12:31,854 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer490#-1833704395] 01:12:31,854 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer491#-1593640142] 01:12:31,855 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer492#1587500265] 01:12:31,856 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:31,856 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:31,856 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:31,856 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior493#1929256104] 01:12:31,857 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate494] 01:12:31,858 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:31,858 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:31,858 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:31,858 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 01:12:31,858 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 01:12:31,858 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:31,858 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:12:31,858 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior495#-32982962] 01:12:31,859 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate496] 01:12:31,860 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:31,860 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:31,860 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:31,860 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=test, prevLogIndex=0, prevLogTerm=0, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 01:12:31,860 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 01:12:31,860 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior497#-1975449339] 01:12:31,861 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate498] 01:12:31,861 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer499#-384026710] 01:12:31,862 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:31,862 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 01:12:31,863 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 01:12:31,863 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:31,863 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 01:12:31,863 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 01:12:31,863 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 01:12:31,863 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 01:12:31,863 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 01:12:31,863 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:12:31,864 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:12:31,864 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:31,864 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:12:31,864 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior500#1341042019] 01:12:31,864 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate501] 01:12:31,865 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer502#1272056081] 01:12:31,865 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer503#-1417803439] 01:12:31,866 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:31,866 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:31,866 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:31,866 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior504#1880997119] 01:12:31,866 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate505] 01:12:31,867 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:31,867 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:31,867 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:31,867 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 01:12:31,867 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 01:12:31,868 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 01:12:31,868 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior506#-979373447] 01:12:31,868 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate507] 01:12:31,869 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:31,869 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:31,869 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:31,869 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 01:12:31,869 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1] - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 01:12:31,869 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 01:12:31,869 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior508#-2134332589] 01:12:31,869 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate509] 01:12:31,870 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:31,870 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:31,871 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:31,871 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 01:12:31,871 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than Candidate's term 2 - switching to Follower 01:12:31,871 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:31,871 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:12:31,871 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:31,871 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:31,871 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntriesReply [term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5], my term is 2 01:12:31,871 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "AppendEntriesReply [term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5]" message is greater than Candidate's term 2 - switching to Follower 01:12:31,871 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:12:31,871 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:31,871 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:31,871 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 01:12:31,871 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100]" message is greater than Candidate's term 2 - switching to Follower 01:12:31,871 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100] - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 01:12:31,871 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 01:12:31,871 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:12:31,871 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:31,871 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 01:12:31,871 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 01:12:31,871 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Term 100 in "RequestVoteReply [term=100, voteGranted=false]" message is greater than Candidate's term 2 - switching to Follower 01:12:31,871 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 01:12:31,871 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior510#-1177846599] 01:12:31,871 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate511] 01:12:31,872 AM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 01:12:31,872 AM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 01:12:31,872 AM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 01:12:31,872 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior512#99159736] 01:12:31,873 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate513] 01:12:31,874 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:31,874 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:31,874 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:12:31,874 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received AppendEntries [leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=4, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 1001 01:12:31,874 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 01:12:31,874 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior514#310998392] 01:12:31,874 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate515] 01:12:31,875 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 01:12:31,875 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 01:12:31,875 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 01:12:31,875 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 01:12:31,875 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): In requestVote: RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999] - currentTerm: 1001, votedFor: candidate, lastIndex: 1, lastTerm: 1 01:12:31,875 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 01:12:31,875 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior516#1992478379] 01:12:31,876 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate517] [INFO] [10/18/2024 01:12:31.876] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 01:12:31,876 AM [test-akka.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [10/18/2024 01:12:31.877] [test-akka.actor.default-dispatcher-6] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.171.33:25520) [INFO] [akkaDeadLetter][10/18/2024 01:12:31.877] [test-akka.actor.default-dispatcher-11] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-1275951292] was unhandled. [1] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 01:12:31,877 AM [test-akka.actor.default-dispatcher-11] [INFO] LocalActorRef - akkaDeadLetter Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#-1275951292] 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] [10/18/2024 01:12:31.878] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.33:25520] - Exiting completed [INFO] [10/18/2024 01:12:31.878] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.33:25520] - Shutting down... [INFO] [10/18/2024 01:12:31.878] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.33:25520] - Successfully shut down 01:12:31,878 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.33:25520] - Exiting completed 01:12:31,878 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.33:25520] - Shutting down... 01:12:31,878 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.171.33:25520] - Successfully shut down [INFO] [10/18/2024 01:12:31.879] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.171.33:25520/system/remoting-terminator] Shutting down remote daemon. [INFO] [10/18/2024 01:12:31.879] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.171.33:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 01:12:31,880 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 01:12:31,880 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [10/18/2024 01:12:31.881] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.33:25520/system/remoting-terminator] Remoting shut down. 01:12:31,881 AM [test-akka.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [10/18/2024 01:12:31.882] [test-akka.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger