[DEBUG] [06/26/2024 10:09:38.641] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 10:09:38,642 AM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [06/26/2024 10:09:38.643] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [06/26/2024 10:09:38.643] [main] [EventStream(pekko://test)] Default Loggers started 10:09:38,663 AM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.11:17355] with UID [4261212749961925206] [INFO] [06/26/2024 10:09:38.663] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.11:17355] with UID [4261212749961925206] 10:09:38,664 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.11:17355] - Starting up, Pekko version [1.0.2] ... [INFO] [06/26/2024 10:09:38.664] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.11:17355] - Starting up, Pekko version [1.0.2] ... 10:09:38,667 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.11:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [06/26/2024 10:09:38.667] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.11:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 10:09:38,667 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.11:17355] - Started up successfully [INFO] [06/26/2024 10:09:38.667] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.11:17355] - Started up successfully [INFO] [06/26/2024 10:09:38.668] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.11:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [06/26/2024 10:09:38.668] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.11:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 10:09:38,668 AM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.11:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 10:09:38,668 AM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.11:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 10:09:38,685 AM [main] [INFO] MockRaftActorContext - PartitionedCandidateOnStartupElectionScenarioTest starting 10:09:38,685 AM [main] [INFO] MockRaftActorContext - setupInitialMember1AndMember2Behaviors starting 10:09:38,685 AM [main] [DEBUG] MockRaftActorContext - member2: Moving last applied index from -1 to 1 10:09:38,685 AM [main] [DEBUG] MockRaftActorContext - member2: Moving last applied index from 1 to 1 10:09:38,686 AM [main] [DEBUG] MockRaftActorContext - member1: Moving last applied index from -1 to 1 10:09:38,686 AM [main] [DEBUG] MockRaftActorContext - member1: Moving last applied index from 1 to 1 10:09:38,686 AM [main] [DEBUG] MockRaftActorContext - member1 (Leader): Election: Leader has following peers: [member2, member3] 10:09:38,686 AM [main] [DEBUG] MockRaftActorContext - member1 (Leader): Checking sendAppendEntries for follower member2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:09:38,686 AM [main] [DEBUG] MockRaftActorContext - member1 (Leader): Checking sendAppendEntries for follower member3: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:09:38,687 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - member2: Last sync leader does not match current leader member1, need to catch up to -1 10:09:38,687 AM [main] [INFO] MockRaftActorContext - setupInitialMember1AndMember2Behaviors ending 10:09:38,687 AM [main] [INFO] MockRaftActorContext - setupPartitionedCandidateMember3AndSendElectionTimeouts starting 10:09:38,688 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActorContext - member1 (Leader): handleAppendEntriesReply - FollowerLogInformation for member2 updated: matchIndex: 1, nextIndex: 2 10:09:38,688 AM [main] [DEBUG] MockRaftActorContext - member3: Moving last applied index from -1 to 1 10:09:38,688 AM [main] [DEBUG] MockRaftActorContext - member3: Moving last applied index from 1 to 0 10:09:38,688 AM [main] [DEBUG] MockRaftActorContext - member3 (Candidate): Election: Candidate has following voting peers: [member2, member1] 10:09:38,688 AM [main] [INFO] MockRaftActorContext - member3 (Candidate): Starting new election term 3 10:09:38,688 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActorContext - member1 (Leader): Checking sendAppendEntries for follower member2: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:09:38,688 AM [main] [DEBUG] MockRaftActorContext - member3 (Candidate): Sending RequestVote [term=3, candidateId=member3, lastLogIndex=0, lastLogTerm=2] to peer member2 10:09:38,688 AM [main] [DEBUG] MockRaftActorContext - member3 (Candidate): Sending RequestVote [term=3, candidateId=member3, lastLogIndex=0, lastLogTerm=2] to peer member1 10:09:38,688 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - member2: Lagging 0 entries behind leader member1 and reached 1 (of expected -1) 10:09:38,688 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActorContext - member3 (Candidate): Received ElectionTimeout 10:09:38,688 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActorContext - member3 (Candidate): Starting new election term 4 10:09:38,688 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActorContext - member3 (Candidate): Sending RequestVote [term=4, candidateId=member3, lastLogIndex=0, lastLogTerm=2] to peer member2 10:09:38,688 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActorContext - member3 (Candidate): Sending RequestVote [term=4, candidateId=member3, lastLogIndex=0, lastLogTerm=2] to peer member1 10:09:38,688 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActorContext - member3 (Candidate): Received ElectionTimeout 10:09:38,688 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActorContext - member3 (Candidate): Starting new election term 5 10:09:38,688 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActorContext - member3 (Candidate): Sending RequestVote [term=5, candidateId=member3, lastLogIndex=0, lastLogTerm=2] to peer member2 10:09:38,688 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActorContext - member3 (Candidate): Sending RequestVote [term=5, candidateId=member3, lastLogIndex=0, lastLogTerm=2] to peer member1 10:09:38,688 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActorContext - member3 (Candidate): Received ElectionTimeout 10:09:38,688 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActorContext - member3 (Candidate): Starting new election term 6 10:09:38,688 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActorContext - member3 (Candidate): Sending RequestVote [term=6, candidateId=member3, lastLogIndex=0, lastLogTerm=2] to peer member2 10:09:38,688 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActorContext - member3 (Candidate): Sending RequestVote [term=6, candidateId=member3, lastLogIndex=0, lastLogTerm=2] to peer member1 10:09:38,688 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActorContext - member3 (Candidate): Received ElectionTimeout 10:09:38,688 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActorContext - member3 (Candidate): Starting new election term 7 10:09:38,688 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActorContext - member3 (Candidate): Sending RequestVote [term=7, candidateId=member3, lastLogIndex=0, lastLogTerm=2] to peer member2 10:09:38,688 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActorContext - member3 (Candidate): Sending RequestVote [term=7, candidateId=member3, lastLogIndex=0, lastLogTerm=2] to peer member1 10:09:38,691 AM [main] [INFO] MockRaftActorContext - setupPartitionedCandidateMember3AndSendElectionTimeouts ending 10:09:38,691 AM [main] [INFO] MockRaftActorContext - resolvePartitionAndSendElectionTimeoutsToCandidateMember3 starting 10:09:38,691 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActorContext - member3 (Candidate): Received ElectionTimeout 10:09:38,691 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActorContext - member3 (Candidate): Starting new election term 8 10:09:38,692 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActorContext - member3 (Candidate): Sending RequestVote [term=8, candidateId=member3, lastLogIndex=0, lastLogTerm=2] to peer member2 10:09:38,692 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActorContext - member3 (Candidate): Sending RequestVote [term=8, candidateId=member3, lastLogIndex=0, lastLogTerm=2] to peer member1 10:09:38,692 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActorContext - member2 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 10:09:38,692 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActorContext - member2 (Follower): Cluster state: [] 10:09:38,692 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActorContext - member1 (Leader): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 10:09:38,692 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActorContext - member2 (Follower): Candidate in requestVote:RequestVote [term=8, candidateId=member3, lastLogIndex=0, lastLogTerm=2] with higher term appears reachable, updating term. 10:09:38,692 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActorContext - member2 (Follower): Term 8 in "RequestVote [term=8, candidateId=member3, lastLogIndex=0, lastLogTerm=2]" message is greater than follower's term 3 - updating term 10:09:38,692 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActorContext - member2 (Follower): In requestVote: RequestVote [term=8, candidateId=member3, lastLogIndex=0, lastLogTerm=2] - currentTerm: 8, votedFor: null, lastIndex: 1, lastTerm: 3 10:09:38,692 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActorContext - member1 (Leader): Cluster state: [] 10:09:38,692 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActorContext - member2 (Follower): requestVote returning: RequestVoteReply [term=8, voteGranted=false] 10:09:38,692 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActorContext - member1 (Leader): Candidate in requestVote:RequestVote [term=8, candidateId=member3, lastLogIndex=0, lastLogTerm=2] with higher term appears reachable, updating term. 10:09:38,692 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActorContext - member3 (Candidate): RaftRPC message received RequestVoteReply [term=8, voteGranted=false], my term is 8 10:09:38,692 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActorContext - member3 (Candidate): handleRequestVoteReply: RequestVoteReply [term=8, voteGranted=false], current voteCount: 1 10:09:38,692 AM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActorContext - member1 (Leader): Term 8 in "RequestVote [term=8, candidateId=member3, lastLogIndex=0, lastLogTerm=2]" message is greater than leader's term 3 - switching to Follower 10:09:38,692 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:09:38,692 AM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActorContext - member1 (Leader) :- Switching from behavior Leader to Follower, election term: 8 10:09:38,693 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActorContext - member3 (Candidate): Received ElectionTimeout 10:09:38,693 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActorContext - member3 (Candidate): Starting new election term 9 10:09:38,693 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActorContext - member3 (Candidate): Sending RequestVote [term=9, candidateId=member3, lastLogIndex=0, lastLogTerm=2] to peer member2 10:09:38,693 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActorContext - member3 (Candidate): Sending RequestVote [term=9, candidateId=member3, lastLogIndex=0, lastLogTerm=2] to peer member1 10:09:38,693 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActorContext - member2 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 10:09:38,693 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActorContext - member2 (Follower): Cluster state: [] 10:09:38,693 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActorContext - member1 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 10:09:38,693 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActorContext - member2 (Follower): Candidate in requestVote:RequestVote [term=9, candidateId=member3, lastLogIndex=0, lastLogTerm=2] with higher term appears reachable, updating term. 10:09:38,693 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActorContext - member1 (Follower): Cluster state: [] 10:09:38,693 AM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActorContext - member2 (Follower): Term 9 in "RequestVote [term=9, candidateId=member3, lastLogIndex=0, lastLogTerm=2]" message is greater than follower's term 8 - updating term 10:09:38,693 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActorContext - member1 (Follower): Candidate in requestVote:RequestVote [term=9, candidateId=member3, lastLogIndex=0, lastLogTerm=2] with higher term appears reachable, updating term. 10:09:38,693 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActorContext - member2 (Follower): In requestVote: RequestVote [term=9, candidateId=member3, lastLogIndex=0, lastLogTerm=2] - currentTerm: 9, votedFor: null, lastIndex: 1, lastTerm: 3 10:09:38,693 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActorContext - member1 (Follower): Term 9 in "RequestVote [term=9, candidateId=member3, lastLogIndex=0, lastLogTerm=2]" message is greater than follower's term 8 - updating term 10:09:38,693 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActorContext - member1 (Follower): In requestVote: RequestVote [term=9, candidateId=member3, lastLogIndex=0, lastLogTerm=2] - currentTerm: 9, votedFor: null, lastIndex: 1, lastTerm: 3 10:09:38,693 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActorContext - member2 (Follower): requestVote returning: RequestVoteReply [term=9, voteGranted=false] 10:09:38,693 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActorContext - member1 (Follower): requestVote returning: RequestVoteReply [term=9, voteGranted=false] 10:09:38,693 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActorContext - member3 (Candidate): RaftRPC message received RequestVoteReply [term=9, voteGranted=false], my term is 9 10:09:38,693 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActorContext - member3 (Candidate): handleRequestVoteReply: RequestVoteReply [term=9, voteGranted=false], current voteCount: 1 10:09:38,693 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActorContext - member3 (Candidate): RaftRPC message received RequestVoteReply [term=9, voteGranted=false], my term is 9 10:09:38,693 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActorContext - member3 (Candidate): handleRequestVoteReply: RequestVoteReply [term=9, voteGranted=false], current voteCount: 1 10:09:38,693 AM [main] [INFO] MockRaftActorContext - resolvePartitionAndSendElectionTimeoutsToCandidateMember3 ending 10:09:38,693 AM [main] [INFO] MockRaftActorContext - sendElectionTimeoutToFollowerMember1 starting 10:09:38,693 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActorContext - member1 (Follower): Received TimeoutNow - switching to Candidate 10:09:38,693 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActorContext - member1 (Candidate): Election: Candidate has following voting peers: [member2, member3] 10:09:38,693 AM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActorContext - member1 (Candidate): Starting new election term 10 10:09:38,693 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActorContext - member1 (Candidate): Sending RequestVote [term=10, candidateId=member1, lastLogIndex=1, lastLogTerm=3] to peer member2 10:09:38,693 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActorContext - member2 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 10:09:38,693 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActorContext - member1 (Candidate): Sending RequestVote [term=10, candidateId=member1, lastLogIndex=1, lastLogTerm=3] to peer member3 10:09:38,693 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActorContext - member2 (Follower): Cluster state: [] 10:09:38,693 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActorContext - member2 (Follower): Candidate in requestVote:RequestVote [term=10, candidateId=member1, lastLogIndex=1, lastLogTerm=3] with higher term appears reachable, updating term. 10:09:38,693 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActorContext - member2 (Follower): Term 10 in "RequestVote [term=10, candidateId=member1, lastLogIndex=1, lastLogTerm=3]" message is greater than follower's term 9 - updating term 10:09:38,693 AM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActorContext - member1 (Follower) :- Switching from behavior Follower to Candidate, election term: 10 10:09:38,693 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActorContext - member3 (Candidate): RaftRPC message received RequestVote [term=10, candidateId=member1, lastLogIndex=1, lastLogTerm=3], my term is 9 10:09:38,694 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActorContext - member2 (Follower): In requestVote: RequestVote [term=10, candidateId=member1, lastLogIndex=1, lastLogTerm=3] - currentTerm: 10, votedFor: null, lastIndex: 1, lastTerm: 3 10:09:38,694 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActorContext - member3 (Candidate): Term 10 in "RequestVote [term=10, candidateId=member1, lastLogIndex=1, lastLogTerm=3]" message is greater than Candidate's term 9 - switching to Follower 10:09:38,694 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActorContext - member2 (Follower): requestVote returning: RequestVoteReply [term=10, voteGranted=true] 10:09:38,694 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActorContext - member3 (Candidate): In requestVote: RequestVote [term=10, candidateId=member1, lastLogIndex=1, lastLogTerm=3] - currentTerm: 10, votedFor: null, lastIndex: 0, lastTerm: 2 10:09:38,694 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActorContext - member3 (Candidate): requestVote returning: RequestVoteReply [term=10, voteGranted=true] 10:09:38,694 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActorContext - member1 (Candidate): RaftRPC message received RequestVoteReply [term=10, voteGranted=true], my term is 10 10:09:38,694 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActorContext - member1 (Candidate): handleRequestVoteReply: RequestVoteReply [term=10, voteGranted=true], current voteCount: 1 10:09:38,694 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:09:38,694 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActorContext - member3 (Candidate) :- Switching from behavior Candidate to Follower, election term: 10 10:09:38,694 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActorContext - member1 (Leader): Election: Leader has following peers: [member2, member3] 10:09:38,694 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActorContext - member1 (Leader): Checking sendAppendEntries for follower member2: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:09:38,694 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActorContext - member1 (Leader): Checking sendAppendEntries for follower member3: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:09:38,694 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - member2: Lagging -2 entries behind leader member1 and reached 1 (of expected -1) 10:09:38,694 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActorContext - member1 (Candidate) :- Switching from behavior Candidate to Leader, election term: 10 10:09:38,694 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActorContext - member1 (Leader): handleAppendEntriesReply - FollowerLogInformation for member2 updated: matchIndex: 1, nextIndex: 2 10:09:38,694 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActorContext - member1 (Leader): Checking sendAppendEntries for follower member2: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:09:38,694 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - member3: Last sync leader does not match current leader member1, need to catch up to -1 10:09:38,694 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActorContext - member1 (Leader): handleAppendEntriesReply - FollowerLogInformation for member3 updated: matchIndex: 0, nextIndex: 1 10:09:38,694 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActorContext - member1: fakeSnapshot purging log to 0 for term 10 10:09:38,694 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - member2: Lagging 0 entries behind leader member1 and reached 1 (of expected -1) 10:09:38,694 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActorContext - member1 (Leader): Checking sendAppendEntries for follower member3: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 10:09:38,694 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActorContext - member1 (Leader): sendAppendEntries: 1 is present for follower member3 10:09:38,694 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActorContext - member1 (Leader): Sending AppendEntries to follower member3: AppendEntries [leaderId=member1, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=3, payload=]]] 10:09:38,694 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActorContext - member1 (Leader): handleAppendEntriesReply: follower member2 last log term 2 for index 1 conflicts with the leader's 3 - set the follower's next index to 0 10:09:38,694 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActorContext - member1 (Leader): Checking sendAppendEntries for follower member2: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: 0 10:09:38,694 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActorContext - member1 (Leader): Initiating install snapshot to follower member2: follower nextIndex: 0, leader snapshotIndex: 0, leader lastIndex: 1, leader log size: 1 10:09:38,694 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActorContext - member3 (Follower): handleAppendEntries: AppendEntries [leaderId=member1, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=3, payload=]]] 10:09:38,694 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActorContext - member3 (Follower): Number of entries to be appended = 1 10:09:38,694 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActorContext - member1: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=3, lastIndex=1, lastTerm=3, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on member2 10:09:38,694 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActorContext - member3 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 10:09:38,694 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActorContext - member1: lastSequenceNumber prior to capture: -1 10:09:38,694 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActorContext - member3 (Follower): Append entry to log 10:09:38,694 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActorContext - member3 (Follower): Log size is now 2 10:09:38,694 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActorContext - member3 (Follower): Commit index set to 1 10:09:38,694 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActorContext - member3 (Follower): handleAppendEntries returning : AppendEntriesReply [term=10, success=true, followerId=member3, logLastIndex=1, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5] 10:09:38,695 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - member2: Lagging -2 entries behind leader member1 and reached 1 (of expected -1) 10:09:38,695 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - member3: Lagging 0 entries behind leader member1 and reached 1 (of expected -1) 10:09:38,695 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActorContext - member1 (Leader): handleAppendEntriesReply - FollowerLogInformation for member2 updated: matchIndex: 1, nextIndex: 2 10:09:38,695 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActorContext - member3 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 10:09:38,695 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActorContext - member3 (Follower): Setting last applied to 1 10:09:38,695 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActorContext - member3: Moving last applied index from 0 to 1 10:09:38,695 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActorContext - member1 (Leader): handleAppendEntriesReply - FollowerLogInformation for member3 updated: matchIndex: 1, nextIndex: 2 10:09:38,695 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActorContext - member3: fakeSnapshot purging log to 0 for term 10 10:09:38,695 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActorContext - member1 (Leader): Checking sendAppendEntries for follower member3: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 10:09:38,695 AM [main] [INFO] MockRaftActorContext - sendElectionTimeoutToFollowerMember1 ending 10:09:38,695 AM [main] [INFO] MockRaftActorContext - PartitionedCandidateOnStartupElectionScenarioTest ending [INFO] [06/26/2024 10:09:38.695] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 10:09:38,695 AM [test-pekko.actor.default-dispatcher-7] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [06/26/2024 10:09:38.696] [test-pekko.actor.default-dispatcher-7] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.11:17355) [INFO] [pekkoDeadLetter][06/26/2024 10:09:38.696] [test-pekko.actor.default-dispatcher-7] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1600148981] was unhandled. [1] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:09:38,696 AM [test-pekko.actor.default-dispatcher-11] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1600148981] was unhandled. [1] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:09:38,699 AM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.11:17355] - Exiting completed 10:09:38,699 AM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.11:17355] - Shutting down... 10:09:38,699 AM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.11:17355] - Successfully shut down 10:09:38,703 AM [test-pekko.actor.default-dispatcher-13] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 10:09:38,703 AM [test-pekko.actor.default-dispatcher-13] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports.