[DEBUG] [02/27/2024 11:14:17.856] [main] [EventStream(akka://test)] logger log1-TestEventListener started 11:14:17,858 AM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [02/27/2024 11:14:17.858] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [02/27/2024 11:14:17.858] [main] [EventStream(akka://test)] Default Loggers started 11:14:17,888 AM [test-akka.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.238:25520] with UID [-1194510972732487177] 11:14:17,888 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.238:25520] - Starting up, Akka version [2.6.21] ... [INFO] [02/27/2024 11:14:17.886] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.238:25520] with UID [-1194510972732487177] [INFO] [02/27/2024 11:14:17.888] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.238:25520] - Starting up, Akka version [2.6.21] ... 11:14:17,899 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.238:25520] - Registered cluster JMX MBean [akka:type=Cluster] 11:14:17,900 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.238:25520] - Started up successfully 11:14:17,900 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.238:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 11:14:17,900 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.238:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [INFO] [02/27/2024 11:14:17.896] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.238:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [02/27/2024 11:14:17.896] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.238:25520] - Started up successfully [INFO] [02/27/2024 11:14:17.898] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.238:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [02/27/2024 11:14:17.898] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.238:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 11:14:18,17 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:14:18,17 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:14:18,17 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:14:18,18 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 11:14:18,18 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 11:14:18,18 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:14:18,18 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 5 11:14:18,19 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior435#-241668293] 11:14:18,30 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate436] 11:14:18,30 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer437#1565338718] 11:14:18,133 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:14:18,133 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1] 11:14:18,134 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:14:18,134 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 11:14:18,134 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 11:14:18,134 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 11:14:18,134 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 11:14:18,134 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior438#1208992156] 11:14:18,145 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate439] 11:14:18,145 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer440#-566141741] 11:14:18,247 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:14:18,247 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:14:18,247 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 11:14:18,248 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate2, lastLogIndex=10000, lastLogTerm=999], my term is 1001 11:14:18,248 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 11:14:18,248 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 11:14:18,248 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior441#-1167453707] 11:14:18,259 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate442] 11:14:18,259 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer443#-1682434052] 11:14:18,362 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:14:18,362 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:14:18,362 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:14:18,363 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 11:14:18,363 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=[]] 11:14:18,363 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader test sent an AppendEntries to Candidate for term 2 - will switch to Follower 11:14:18,363 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:14:18,363 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 11:14:18,364 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior444#463570432] 11:14:18,375 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate445] 11:14:18,375 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer446#2088892441] 11:14:18,478 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:14:18,478 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to -1 11:14:18,479 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 11:14:18,479 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:14:18,479 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 11:14:18,479 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 11:14:18,480 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 11:14:18,480 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 11:14:18,480 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): LastApplied index -1 is behind last index 1 - switching to PreLeader 11:14:18,480 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Election: Leader has following peers: [peer1, peer2] 11:14:18,480 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:14:18,480 AM [main] [DEBUG] MockRaftActorContext - candidate (PreLeader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:14:18,480 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:14:18,480 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to PreLeader, election term: 2 11:14:18,480 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior447#-933903915] 11:14:18,491 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate448] 11:14:18,491 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer449#1284985895] 11:14:18,492 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer450#-132439351] 11:14:18,594 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:14:18,594 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:14:18,594 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:14:18,595 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=0, lastLogTerm=0], my term is 2 11:14:18,595 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 11:14:18,595 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 11:14:18,595 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior451#1376905977] 11:14:18,606 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate452] 11:14:18,606 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer453#293759806] 11:14:18,609 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:14:18,609 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:14:18,609 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 11:14:18,609 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 11:14:18,609 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]]] 11:14:18,609 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): New Leader leader-1 sent an AppendEntries to Candidate for term 2 - will switch to Follower 11:14:18,609 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:14:18,609 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 11:14:18,610 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior454#1982087399] 11:14:18,620 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate455] 11:14:18,622 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:14:18,622 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:14:18,622 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 11:14:18,622 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1001, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999], my term is 1001 11:14:18,622 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 11:14:18,622 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=true] 11:14:18,622 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior456#-2141320390] 11:14:18,633 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate457] 11:14:18,633 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer458#423884438] 11:14:18,736 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:14:18,736 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:14:18,736 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:14:18,738 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior459#-1954835184] 11:14:18,749 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate460] 11:14:18,824 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Election: Candidate has following voting peers: [peer3, peer2] 11:14:18,824 AM [main] [INFO] CandidateTest - candidate (Candidate): Starting new election term 2 11:14:18,824 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer3 11:14:18,825 AM [main] [DEBUG] CandidateTest - candidate (Candidate): Sending RequestVote [term=1, candidateId=candidate, lastLogIndex=-1, lastLogTerm=-1] to peer peer2 11:14:19,227 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 1 11:14:19,227 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 11:14:19,227 AM [main] [DEBUG] CandidateTest - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 11:14:19,227 AM [main] [DEBUG] CandidateTest - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 11:14:19,228 AM [main] [DEBUG] CandidateTest - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 11:14:19,228 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:14:19,228 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:14:19,228 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:14:19,228 AM [main] [DEBUG] CandidateTest - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:14:19,228 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:14:19,228 AM [main] [INFO] CandidateTest - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 11:14:19,228 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior461#-58198835] 11:14:19,240 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate462] 11:14:19,240 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer463#94231125] 11:14:19,240 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer464#1577926349] 11:14:19,241 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer465#688327099] 11:14:19,241 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer466#2081897420] 11:14:19,244 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:14:19,244 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 4 11:14:19,245 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer3, peer2, peer4] 11:14:19,245 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 3 11:14:19,245 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer1 11:14:19,246 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer3 11:14:19,246 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer2 11:14:19,246 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=3, candidateId=candidate, lastLogIndex=4, lastLogTerm=1] to peer peer4 11:14:19,246 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=false], my term is 3 11:14:19,246 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=false], current voteCount: 1 11:14:19,246 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 11:14:19,246 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 11:14:19,246 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 3 11:14:19,246 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 2 11:14:19,246 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer3, peer2, peer4] 11:14:19,246 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:14:19,246 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer3: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:14:19,247 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:14:19,247 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer4: active: false, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:14:19,247 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:14:19,247 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 11:14:19,247 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior467#-1279822831] 11:14:19,257 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate468] 11:14:19,258 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer469#-260064156] 11:14:19,258 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer470#-329763286] 11:14:19,258 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer471#-394411910] 11:14:19,258 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer472#-1339231905] 11:14:19,261 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:14:19,261 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:14:19,261 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:14:19,261 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior473#1266579311] 11:14:19,272 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate474] 11:14:19,273 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:14:19,273 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:14:19,273 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:14:19,273 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Received ElectionTimeout 11:14:19,273 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [] 11:14:19,273 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:14:19,273 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:14:19,273 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior475#-448256910] 11:14:19,284 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate476] 11:14:19,286 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:14:19,286 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:14:19,286 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:14:19,287 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 11:14:19,287 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 1 is less than 2 11:14:19,287 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior477#-725744931] 11:14:19,298 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate478] 11:14:19,298 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer479#-194865684] 11:14:19,300 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:14:19,300 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from 1 to 1 11:14:19,301 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [peer1, peer2] 11:14:19,301 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:14:19,301 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer1 11:14:19,301 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Sending RequestVote [term=2, candidateId=candidate, lastLogIndex=1, lastLogTerm=1] to peer peer2 11:14:19,301 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 2 11:14:19,301 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 11:14:19,301 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Election: Leader has following peers: [peer1, peer2] 11:14:19,301 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:14:19,301 AM [main] [DEBUG] MockRaftActorContext - candidate (Leader): Checking sendAppendEntries for follower peer2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:14:19,301 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:14:19,301 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:14:19,301 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior480#1914137128] 11:14:19,312 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate481] 11:14:19,312 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer482#-1136134858] 11:14:19,313 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/peer483#684691221] 11:14:19,315 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:14:19,315 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:14:19,315 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:14:19,316 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior484#-1473068320] 11:14:19,326 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate485] 11:14:19,328 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:14:19,328 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:14:19,328 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:14:19,328 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1 11:14:19,328 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 11:14:19,328 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 11:14:19,328 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior486#-226969829] 11:14:19,339 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate487] 11:14:19,350 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:14:19,350 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:14:19,350 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:14:19,350 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1], my term is 1 11:14:19,350 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 11:14:19,350 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1, voteGranted=false] 11:14:19,351 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior488#346452256] 11:14:19,361 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate489] 11:14:19,465 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:14:19,465 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:14:19,465 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:14:19,465 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 11:14:19,465 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 11:14:19,466 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:14:19,466 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 11:14:19,466 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:14:19,466 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:14:19,466 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 11:14:19,466 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 11:14:19,466 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 11:14:19,466 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:14:19,466 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:14:19,466 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100], my term is 2 11:14:19,466 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 11:14:19,466 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 11:14:19,466 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=100, voteGranted=true] 11:14:19,466 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 11:14:19,466 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:14:19,466 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 2 11:14:19,466 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVoteReply [term=100, voteGranted=false], my term is 2 11:14:19,466 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 11:14:19,466 AM [main] [INFO] MockRaftActorContext - candidate (Candidate) :- Switching from behavior Candidate to Follower, election term: 100 11:14:19,467 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior490#-791469994] 11:14:19,477 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate491] 11:14:19,580 AM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 11:14:19,580 AM [main] [DEBUG] MockRaftActorContext - test (Candidate): Election: Candidate has following voting peers: [] 11:14:19,580 AM [main] [INFO] MockRaftActorContext - test (Candidate): Starting new election term 2 11:14:19,580 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior492#-1123199124] 11:14:19,591 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate493] 11:14:19,693 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:14:19,693 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:14:19,693 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 11:14:19,693 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 11:14:19,693 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Cannot append entries because sender's term 100 is less than 1001 11:14:19,694 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior494#710083384] 11:14:19,706 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate495] 11:14:19,708 AM [main] [DEBUG] MockRaftActorContext - candidate: Moving last applied index from -1 to 1 11:14:19,708 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): Election: Candidate has following voting peers: [] 11:14:19,708 AM [main] [INFO] MockRaftActorContext - candidate (Candidate): Starting new election term 1001 11:14:19,708 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): RaftRPC message received RequestVote [term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999], my term is 1001 11:14:19,708 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 11:14:19,708 AM [main] [DEBUG] MockRaftActorContext - candidate (Candidate): requestVote returning: RequestVoteReply [term=1001, voteGranted=false] 11:14:19,708 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/behavior496#496624264] 11:14:19,719 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/candidate497] 11:14:19,720 AM [test-akka.actor.default-dispatcher-5] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [02/27/2024 11:14:19.720] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [02/27/2024 11:14:19.721] [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.238:25520) [INFO] [akkaDeadLetter][02/27/2024 11:14:19.722] [test-akka.actor.default-dispatcher-6] [akka://test/system/cluster/core/daemon] Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#160846132] 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] [02/27/2024 11:14:19.723] [test-akka.actor.internal-dispatcher-10] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.238:25520] - Exiting completed 11:14:19,723 AM [test-akka.actor.default-dispatcher-6] [INFO] LocalActorRef - Message [akka.cluster.ClusterUserAction$Leave] to Actor[akka://test/system/cluster/core/daemon#160846132] 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'. 11:14:19,723 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.238:25520] - Exiting completed [INFO] [02/27/2024 11:14:19.723] [test-akka.actor.internal-dispatcher-10] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.238:25520] - Shutting down... 11:14:19,723 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.238:25520] - Shutting down... 11:14:19,724 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.238:25520] - Successfully shut down [INFO] [02/27/2024 11:14:19.723] [test-akka.actor.internal-dispatcher-10] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.238:25520] - Successfully shut down [INFO] [02/27/2024 11:14:19.729] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.238:25520/system/remoting-terminator] Shutting down remote daemon. [INFO] [02/27/2024 11:14:19.729] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.238:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 11:14:19,729 AM [test-akka.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 11:14:19,729 AM [test-akka.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [02/27/2024 11:14:19.732] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.171.238:25520/system/remoting-terminator] Remoting shut down. 11:14:19,732 AM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [02/27/2024 11:14:19.732] [test-akka.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger