[DEBUG] [10/16/2024 18:21:32.028] [main] [EventStream(akka://test)] logger log1-TestEventListener started 06:21:32,28 PM [test-akka.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [10/16/2024 18:21:32.028] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [10/16/2024 18:21:32.028] [main] [EventStream(akka://test)] Default Loggers started [INFO] [10/16/2024 18:21:32.039] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.178:25520] with UID [-7533643450772457513] 06:21:32,40 PM [test-akka.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.178:25520] with UID [-7533643450772457513] 06:21:32,40 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.178:25520] - Starting up, Akka version [2.6.21] ... [INFO] [10/16/2024 18:21:32.040] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.178:25520] - Starting up, Akka version [2.6.21] ... 06:21:32,42 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.178:25520] - Registered cluster JMX MBean [akka:type=Cluster] 06:21:32,42 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.178:25520] - Started up successfully 06:21:32,43 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.178:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 06:21:32,43 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.178:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [INFO] [10/16/2024 18:21:32.042] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.178:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [10/16/2024 18:21:32.042] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.178:25520] - Started up successfully [INFO] [10/16/2024 18:21:32.043] [test-akka.actor.internal-dispatcher-5] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.178:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [10/16/2024 18:21:32.043] [test-akka.actor.internal-dispatcher-5] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.178:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 06:21:32,52 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:21:32,52 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:21:32,52 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:21:32,53 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 06:21:32,53 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 06:21:32,53 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:21:32,53 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 06:21:32,53 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior456#-367458984] 06:21:32,64 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate457] 06:21:32,64 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer458#-544776285] 06:21:32,66 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:21:32,66 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 06:21:32,66 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:21:32,66 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 06:21:32,66 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 06:21:32,66 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 06:21:32,66 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 06:21:32,66 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior459#-1597414617] 06:21:32,77 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate460] 06:21:32,77 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer461#37357589] 06:21:32,79 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:21:32,79 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:21:32,79 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 06:21:32,79 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 06:21:32,79 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 06:21:32,79 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 06:21:32,79 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior462#-1713146165] 06:21:32,90 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate463] 06:21:32,90 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer464#1982128617] 06:21:32,92 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:21:32,92 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:21:32,92 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:21:32,93 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 06:21:32,93 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=[]] 06:21:32,93 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 06:21:32,93 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:21:32,93 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 06:21:32,93 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior465#-229827741] 06:21:32,104 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate466] 06:21:32,104 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer467#1999322130] 06:21:32,105 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:21:32,105 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 06:21:32,106 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 06:21:32,106 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:21:32,106 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 06:21:32,106 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 06:21:32,106 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 06:21:32,106 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 06:21:32,106 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 06:21:32,107 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 06:21:32,107 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:21:32,107 PM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:21:32,107 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:21:32,107 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 06:21:32,107 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior468#1338157856] 06:21:32,118 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate469] 06:21:32,118 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer470#619826946] 06:21:32,118 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer471#-1808542892] 06:21:32,220 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:21:32,220 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:21:32,220 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:21:32,221 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 06:21:32,221 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 06:21:32,221 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 06:21:32,221 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior472#1080850319] 06:21:32,232 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate473] 06:21:32,233 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer474#-973948555] 06:21:32,235 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:21:32,235 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:21:32,235 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 06:21:32,235 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 06:21:32,235 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]]] 06:21:32,235 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 06:21:32,236 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:21:32,236 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 06:21:32,236 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior475#585145429] 06:21:32,246 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate476] 06:21:32,249 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:21:32,249 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:21:32,249 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 06:21:32,250 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 06:21:32,250 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 06:21:32,250 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 06:21:32,250 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior477#-1383555891] 06:21:32,261 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate478] 06:21:32,261 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer479#-727161133] 06:21:32,262 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:21:32,262 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:21:32,262 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:21:32,262 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior480#-482423427] 06:21:32,273 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate481] 06:21:32,279 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 06:21:32,279 PM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 06:21:32,279 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 06:21:32,279 PM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 06:21:32,682 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 06:21:32,682 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 06:21:32,682 PM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 06:21:32,682 PM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 06:21:32,682 PM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 06:21:32,682 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:21:32,682 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:21:32,683 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:21:32,683 PM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:21:32,683 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:21:32,683 PM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 06:21:32,683 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior482#-87577359] 06:21:32,694 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate483] 06:21:32,694 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer484#321247553] 06:21:32,695 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer485#-1413781891] 06:21:32,695 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer486#1439566504] 06:21:32,695 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer487#1070312156] 06:21:32,697 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:21:32,697 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 06:21:32,698 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 06:21:32,698 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 06:21:32,698 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 06:21:32,699 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 06:21:32,699 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 06:21:32,699 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 06:21:32,699 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 06:21:32,699 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 06:21:32,699 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 06:21:32,699 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 06:21:32,699 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 06:21:32,699 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 06:21:32,699 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 06:21:32,699 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 06:21:32,699 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 06:21:32,700 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 06:21:32,700 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 06:21:32,700 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:21:32,700 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 06:21:32,700 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior488#-856247968] 06:21:32,710 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate489] 06:21:32,711 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer490#-73852147] 06:21:32,711 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer491#-1445913390] 06:21:32,711 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer492#-1015233516] 06:21:32,711 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer493#1316162717] 06:21:32,713 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:21:32,713 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:21:32,713 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:21:32,713 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior494#1713558510] 06:21:32,724 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate495] 06:21:32,725 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:21:32,725 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:21:32,725 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:21:32,725 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 06:21:32,725 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 06:21:32,725 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:21:32,725 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 06:21:32,725 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior496#1365772324] 06:21:32,736 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate497] 06:21:32,737 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:21:32,737 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:21:32,737 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:21:32,737 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 06:21:32,738 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 06:21:32,738 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior498#-944830452] 06:21:32,748 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate499] 06:21:32,749 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer500#423107417] 06:21:32,750 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:21:32,750 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 06:21:32,751 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 06:21:32,751 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:21:32,751 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 06:21:32,751 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 06:21:32,751 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 06:21:32,751 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 06:21:32,751 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 06:21:32,751 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:21:32,751 PM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:21:32,751 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:21:32,751 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 06:21:32,751 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior501#114070604] 06:21:32,762 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate502] 06:21:32,762 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer503#276309041] 06:21:32,762 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer504#1766432257] 06:21:32,763 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:21:32,763 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:21:32,763 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:21:32,763 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior505#-815559951] 06:21:32,774 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate506] 06:21:32,776 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:21:32,776 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:21:32,776 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:21:32,776 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 06:21:32,776 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 06:21:32,776 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 06:21:32,776 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior507#-1900084144] 06:21:32,787 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate508] 06:21:32,788 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:21:32,788 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:21:32,788 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:21:32,788 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 06:21:32,788 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 06:21:32,788 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 06:21:32,788 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior509#-1052101231] 06:21:32,799 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate510] 06:21:32,801 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:21:32,801 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:21:32,801 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:21:32,801 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 06:21:32,801 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 06:21:32,801 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:21:32,801 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 06:21:32,801 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:21:32,801 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:21:32,801 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 06:21:32,801 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 06:21:32,801 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 06:21:32,801 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:21:32,801 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:21:32,801 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 06:21:32,801 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 06:21:32,801 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 06:21:32,801 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 06:21:32,801 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 06:21:32,801 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:21:32,801 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 06:21:32,802 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 06:21:32,802 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 06:21:32,802 PM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 06:21:32,802 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior511#1342667134] 06:21:32,812 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate512] 06:21:32,814 PM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 06:21:32,814 PM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 06:21:32,814 PM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 06:21:32,814 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior513#1360962331] 06:21:32,824 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate514] 06:21:32,826 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:21:32,826 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:21:32,826 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 06:21:32,826 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 06:21:32,826 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 06:21:32,826 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior515#490760348] 06:21:32,836 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate516] 06:21:32,838 PM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 06:21:32,838 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 06:21:32,838 PM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 06:21:32,838 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 06:21:32,838 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 06:21:32,838 PM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 06:21:32,838 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior517#-1840104008] 06:21:32,849 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate518] [INFO] [10/16/2024 18:21:32.849] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 06:21:32,850 PM [test-akka.actor.default-dispatcher-11] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [10/16/2024 18:21:32.850] [test-akka.actor.default-dispatcher-7] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.170.178:25520) [INFO] [akkaDeadLetter][10/16/2024 18:21:32.850] [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#1998686945] 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'. 06:21:32,851 PM [test-akka.actor.default-dispatcher-11] [INFO] LocalActorRef - akkaDeadLetter Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#1998686945] 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/16/2024 18:21:32.851] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.178:25520] - Exiting completed [INFO] [10/16/2024 18:21:32.851] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.178:25520] - Shutting down... [INFO] [10/16/2024 18:21:32.852] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.178:25520] - Successfully shut down 06:21:32,852 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.170.178:25520] - Exiting completed 06:21:32,852 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.170.178:25520] - Shutting down... 06:21:32,852 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.170.178:25520] - Successfully shut down [INFO] [10/16/2024 18:21:32.854] [test-akka.remote.default-remote-dispatcher-10] [akka://test@10.30.170.178:25520/system/remoting-terminator] Shutting down remote daemon. 06:21:32,854 PM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 06:21:32,854 PM [test-akka.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [10/16/2024 18:21:32.854] [test-akka.remote.default-remote-dispatcher-10] [akka://test@10.30.170.178:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [10/16/2024 18:21:32.856] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.178:25520/system/remoting-terminator] Remoting shut down. 06:21:32,857 PM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [10/16/2024 18:21:32.857] [test-akka.actor.internal-dispatcher-4] [EventStream] shutting down: StandardOutLogger