09:54:54,473 PM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [06/25/2025 21:54:54.473] [main] [EventStream(pekko://test)] logger log1-TestEventListener started [DEBUG] [06/25/2025 21:54:54.477] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [06/25/2025 21:54:54.477] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [06/25/2025 21:54:54.486] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.100:17355] with UID [-6564471234190786260] 09:54:54,486 PM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.100:17355] with UID [-6564471234190786260] [INFO] [06/25/2025 21:54:54.487] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.100:17355] - Starting up, Pekko version [1.0.3] ... 09:54:54,487 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.100:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [06/25/2025 21:54:54.489] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.100:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [06/25/2025 21:54:54.489] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.100:17355] - Started up successfully 09:54:54,489 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.100:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 09:54:54,489 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.100:17355] - Started up successfully [INFO] [06/25/2025 21:54:54.490] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.100:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [06/25/2025 21:54:54.490] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.100:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 09:54:54,491 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.100:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 09:54:54,491 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.100:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 09:54:54,500 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 09:54:54,500 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:54,588 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:54:54,588 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:54:54,588 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:54:54,589 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:54:54,589 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 09:54:54,589 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 09:54:54,589 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 09:54:54,590 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 09:54:54,592 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 09:54:54,593 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior424#-2034227658] 09:54:54,605 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower425#408991286] 09:54:54,605 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader426#-306966024] 09:54:54,607 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 09:54:54,607 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:54,609 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 09:54:54,610 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 09:54:54,610 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:54:54,610 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 09:54:54,611 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior427#-520995050] 09:54:54,621 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower428#284484054] 09:54:54,621 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader429#-1267665413] 09:54:54,624 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 09:54:54,624 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:54,625 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:54:54,625 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:54:54,625 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:54:54,625 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:54:54,626 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 09:54:54,626 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 09:54:54,626 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 09:54:54,627 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 09:54:54,628 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:54:54,628 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:54:54,629 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 09:54:54,629 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:54:54,629 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 09:54:54,629 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior430#1763959663] 09:54:54,640 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower431#1962912086] 09:54:54,640 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader432#33649620] 09:54:54,643 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:54,643 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 09:54:54,645 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior433#1851501480] 09:54:54,656 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower434#347212088] 09:54:54,656 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader435#91105800] 09:54:54,658 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 09:54:54,658 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:54,659 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:54:54,660 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:54:54,660 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:54:54,661 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:54:54,661 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:54:54,661 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:54:54,661 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:54:54,661 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:54:54,662 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:54:54,662 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 09:54:54,664 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 09:54:54,665 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior436#-2044003817] 09:54:54,675 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower437#560398245] 09:54:54,675 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader438#349024187] 09:54:54,678 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 09:54:54,678 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:54,679 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 09:54:54,679 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:54:54,680 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 09:54:54,680 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 09:54:54,680 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:54:54,680 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 09:54:54,680 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:54:54,680 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:54:54,680 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 09:54:54,681 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:54:54,681 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:54:54,681 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 09:54:54,681 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 09:54:54,682 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 09:54:54,683 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:54:54,683 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 09:54:54,683 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 09:54:54,683 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 09:54:54,683 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 09:54:54,683 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 09:54:54,683 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:54:54,684 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 09:54:54,684 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 09:54:54,684 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:54:54,684 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:54:54,685 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior439#214573686] 09:54:54,695 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower440#461181049] 09:54:54,695 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader441#1944979023] 09:54:54,698 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 09:54:54,698 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:54,699 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 09:54:54,700 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 09:54:54,701 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:54:54,701 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 09:54:54,701 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior442#-937368224] 09:54:54,712 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower443#2105812684] 09:54:54,712 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader444#1811407203] 09:54:54,715 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:54,718 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior445#-840318743] 09:54:54,729 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower446#2046046972] 09:54:54,729 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader447#-673560746] 09:54:54,736 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 09:54:54,736 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:54,736 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 09:54:54,737 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:54:54,738 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:54:54,738 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:54:54,738 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:54:54,738 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:54:54,738 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:54:54,738 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:54:54,738 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:54:54,739 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:54:54,739 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 09:54:54,739 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 09:54:54,739 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 09:54:54,739 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 09:54:54,740 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior448#-341988377] 09:54:54,741 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower449#1647648974] 09:54:54,741 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader450#196851218] 09:54:54,744 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries 09:54:54,747 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 09:54:54,747 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 09:54:54,747 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor [WARN] [06/25/2025 21:54:54.747] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@1274559d [INFO] [pekkoDeadLetter][06/25/2025 21:54:54.748] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:54:54,748 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:54:54,750 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7022775280466115699/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 09:54:54,750 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 09:54:54,750 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:54:54,750 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 09:54:54,754 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:54:54,754 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 09:54:54,754 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@13d29f85 09:54:54,755 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 09:54:54,755 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 09:54:54,755 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 09:54:54,755 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 09:54:54,755 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 09:54:54,755 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 09:54:54,755 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 09:54:54,755 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 09:54:54,755 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 09:54:54,755 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:54:54,755 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 09:54:54,755 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 09:54:54,755 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 09:54:54,755 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 09:54:54,755 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 09:54:54,755 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 09:54:54,756 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 09:54:54,756 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 09:54:54,756 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 09:54:54,756 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 09:54:54,756 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Persisting ApplyJournalEntries with index=1 09:54:54,756 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 09:54:54,756 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 09:54:54,756 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 09:54:54,756 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 09:54:54,756 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 09:54:54,757 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 09:54:54,757 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 09:54:54,757 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 09:54:54,757 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d251713] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7022775280466115699/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685C702E-2D1F4606.tmp [WARN] [06/25/2025 21:54:54.757] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/25/2025 21:54:54.757] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] 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'. 09:54:54,757 PM [test-pekko.actor.default-dispatcher-11] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] 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'. 09:54:54,761 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d251713] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7022775280466115699/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685C702E-2D1F4606.v1 09:54:54,761 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d251713] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7022775280466115699/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685C702E-2D1F4606.v1 09:54:54,761 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d251713] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7022775280466115699/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 09:54:54,761 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d251713] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-25T21:54:54.757024262Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7022775280466115699/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685C702E-2D1F4606.v1, size=555, entryCompress=NONE, stateCompress=NONE} 09:54:54,762 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-06-25T21:54:54.757024262Z 09:54:54,762 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success - sequence number: 3 09:54:54,762 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 09:54:54,762 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: handled a journal response 09:54:54,907 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7022775280466115699/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685C702E-2D1F4606.v1 09:54:54,907 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7022775280466115699/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 09:54:54,907 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-25T21:54:54.757024262Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7022775280466115699/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685C702E-2D1F4606.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 09:54:54,909 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior451#-1027059814] 09:54:54,911 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower452#-1139227620] 09:54:54,911 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader453#-1295379288] 09:54:54,911 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 09:54:54,911 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 09:54:54,911 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 09:54:54,915 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:54,916 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior454#-2097336019] 09:54:54,917 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower455#2104774580] 09:54:54,917 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader456#-1612799141] 09:54:54,918 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 09:54:54,918 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:54,919 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 09:54:54,919 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 09:54:54,920 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior457#-249851461] 09:54:54,920 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower458#364922195] 09:54:54,920 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader459#1907855961] 09:54:54,921 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 09:54:54,921 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:54,922 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:54:54,922 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:54:54,922 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:54:54,922 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:54:54,922 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:54:54,922 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 09:54:54,922 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:54:54,922 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:54:54,923 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:54:54,923 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 09:54:54,923 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 09:54:54,923 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior460#1409178000] 09:54:54,924 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower461#498395111] 09:54:54,924 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader462#394445781] 09:54:54,925 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 09:54:54,925 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:54,925 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:54:54,926 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:54:54,926 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 09:54:54,926 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:54:54,926 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:54:54,926 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 09:54:54,927 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:54:54,927 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 09:54:54,927 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:54:54,927 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 09:54:54,927 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior463#-1149474496] 09:54:54,928 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower464#668455028] 09:54:54,928 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader465#330982430] 09:54:54,929 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:54,929 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior466#971006379] 09:54:54,930 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower467#-23570015] 09:54:54,930 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader468#1789696254] 09:54:54,931 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 09:54:54,931 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:54,932 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:54:54,932 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:54:54,932 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 09:54:54,932 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:54:54,933 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:54:54,933 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 09:54:54,933 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:54:54,933 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 09:54:54,933 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:54:54,933 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 09:54:54,934 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:54:54,934 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 09:54:54,934 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:54:54,934 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 09:54:54,934 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior469#-711651831] 09:54:54,935 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower470#-1023815642] 09:54:54,935 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader471#-2061975964] 09:54:54,936 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 09:54:54,936 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:54,937 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 09:54:54,937 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:54:54,937 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 09:54:54,937 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 09:54:54,937 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 09:54:54,937 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 09:54:54,937 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:54:54,937 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 09:54:54,937 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 09:54:54,937 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 09:54:54,938 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior472#1757343008] 09:54:54,938 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower473#-277056437] 09:54:54,938 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader474#-418387570] 09:54:54,939 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 09:54:54,939 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:54,940 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 09:54:54,941 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader477 09:54:54,941 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader477 09:54:54,942 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 09:54:54,942 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior475#817828352] 09:54:54,943 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower476#1314264807] 09:54:54,943 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader477#-93558122] 09:54:54,945 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 09:54:54,945 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:54,946 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:54:54,946 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:54:54,946 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:54:54,946 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:54:54,946 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:54:54,946 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:54:54,946 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:54:54,946 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:54:54,947 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:54:54,947 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 09:54:54,947 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 09:54:54,947 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior478#525575927] 09:54:54,948 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower479#1994967796] 09:54:54,948 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader480#1551913005] 09:54:54,949 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 09:54:54,950 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:54,950 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:54:54,950 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:54:54,950 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 09:54:54,951 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:54:54,951 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:54:54,951 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior481#342930704] 09:54:54,951 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower482#1726015900] 09:54:54,952 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader483#-1297474070] 09:54:54,953 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [06/25/2025 21:54:54.953] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@3ee2e656 [INFO] [pekkoDeadLetter][06/25/2025 21:54:54.954] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:54:54,954 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 09:54:54,954 PM [test-pekko.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:54:54,954 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 09:54:54,954 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 09:54:54,956 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4794014313403947592/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 09:54:54,956 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 09:54:54,956 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 09:54:54,957 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 09:54:54,959 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 09:54:54,959 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 09:54:54,959 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@117f9c0 09:54:54,959 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 09:54:54,959 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 09:54:54,959 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 09:54:54,959 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 09:54:54,959 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 09:54:54,960 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 09:54:54,960 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 09:54:54,960 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 09:54:54,960 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 09:54:54,960 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 09:54:54,960 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 09:54:54,960 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:54:54,960 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 09:54:54,960 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 09:54:54,960 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 09:54:54,960 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 09:54:54,960 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 09:54:54,960 PM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 09:54:54,960 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persisting ApplyJournalEntries with index=0 09:54:54,961 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 09:54:54,961 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 09:54:54,961 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 09:54:54,961 PM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 09:54:54,961 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 4 09:54:54,961 PM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 09:54:54,961 PM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 09:54:54,961 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 09:54:54,961 PM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 0 and term: 1 09:54:54,961 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d202399] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4794014313403947592/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685C702E-39512A7B.tmp [WARN] [06/25/2025 21:54:54.961] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] 09:54:54,962 PM [test-pekko.actor.default-dispatcher-13] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] 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'. [INFO] [pekkoDeadLetter][06/25/2025 21:54:54.961] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] 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'. 09:54:54,965 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d202399] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4794014313403947592/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685C702E-39512A7B.v1 09:54:54,965 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d202399] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4794014313403947592/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 09:54:54,965 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d202399] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4794014313403947592/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685C702E-39512A7B.v1 09:54:54,965 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d202399] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-25T21:54:54.961620603Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4794014313403947592/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685C702E-39512A7B.v1, size=701, entryCompress=NONE, stateCompress=NONE} 09:54:54,965 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-06-25T21:54:54.961620603Z 09:54:54,965 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success - sequence number: 4 09:54:54,965 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 09:54:54,966 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: handled a journal response 09:54:55,63 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4794014313403947592/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 09:54:55,63 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4794014313403947592/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685C702E-39512A7B.v1 09:54:55,63 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-25T21:54:54.961620603Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4794014313403947592/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685C702E-39512A7B.v1, size=701, entryCompress=NONE, stateCompress=NONE} as the latest file 09:54:55,65 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior484#-1974148589] 09:54:55,76 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower485#2137706226] 09:54:55,76 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader486#-917211759] 09:54:55,76 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 09:54:55,77 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 09:54:55,77 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 09:54:55,80 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 09:54:55,80 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:55,81 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:54:55,82 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 09:54:55,82 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 09:54:55,83 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:54:55,83 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 09:54:55,84 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior487#1469645165] 09:54:55,84 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower488#-1080345262] 09:54:55,85 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader489#360259069] 09:54:55,86 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 09:54:55,86 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:55,86 PM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 09:54:55,86 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 09:54:55,87 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 09:54:55,87 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 09:54:55,87 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 09:54:55,87 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior490#165892489] 09:54:55,87 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower491#-1052903432] 09:54:55,88 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader492#292243197] 09:54:55,89 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 09:54:55,89 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:55,89 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 09:54:55,90 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 09:54:55,90 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:54:55,90 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 09:54:55,90 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:54:55,90 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 09:54:55,90 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 09:54:55,90 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 09:54:55,90 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 09:54:55,90 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 09:54:55,90 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 09:54:55,90 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:54:55,90 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 09:54:55,90 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 09:54:55,90 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:54:55,90 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:54:55,90 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 09:54:55,90 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 09:54:55,91 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:54:55,91 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:54:55,91 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 09:54:55,91 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 09:54:55,91 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior493#1645139311] 09:54:55,91 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower494#1465601411] 09:54:55,91 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader495#1241229663] 09:54:55,93 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 09:54:55,93 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:55,93 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 09:54:55,93 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 09:54:55,94 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior496#-1155238449] 09:54:55,94 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower497#-1248355890] 09:54:55,94 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader498#838953230] 09:54:55,95 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 09:54:55,95 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:55,96 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:54:55,96 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:54:55,96 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:54:55,96 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:54:55,96 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 09:54:55,97 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 09:54:55,97 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 09:54:55,97 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:54:55,97 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 09:54:55,97 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 09:54:55,97 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 09:54:55,97 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 09:54:55,97 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:54:55,97 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 09:54:55,97 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 09:54:55,97 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:54:55,97 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:54:55,98 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior499#1369583786] 09:54:55,98 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower500#266215914] 09:54:55,98 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader501#1713298112] 09:54:55,99 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 09:54:55,99 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:55,99 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:54:55,100 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:54:55,100 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 09:54:55,100 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:54:55,100 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:54:55,100 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 09:54:55,101 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:54:55,101 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 09:54:55,101 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:54:55,101 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 09:54:55,101 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 09:54:55,102 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:54:55,102 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 09:54:55,102 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:54:55,102 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 09:54:55,102 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior502#-147530998] 09:54:55,103 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower503#187079441] 09:54:55,103 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader504#-1957467118] 09:54:55,104 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 09:54:55,104 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:55,304 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:54:55,304 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.171.100:17355, Removed) 09:54:55,304 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 09:54:55,304 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 09:54:55,305 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 09:54:55,305 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 09:54:55,305 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior505#1471503301] 09:54:55,306 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower506#367627860] 09:54:55,306 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader507#-282653826] 09:54:55,309 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:55,309 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 09:54:55,460 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:54:55,460 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior508#-205894991] 09:54:55,461 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower509#-638874485] 09:54:55,461 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader510#-1023396743] 09:54:55,464 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 09:54:55,464 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:55,466 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 09:54:55,467 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 09:54:55,468 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior511#-1137418372] 09:54:55,469 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower512#-833035567] 09:54:55,469 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader513#192506932] 09:54:55,471 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 09:54:55,471 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:55,471 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 09:54:55,472 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:54:55,472 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 09:54:55,472 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 09:54:55,472 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 09:54:55,472 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 09:54:55,472 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 09:54:55,472 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:54:55,472 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 09:54:55,472 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 09:54:55,472 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:54:55,472 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:54:55,472 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 09:54:55,472 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 09:54:55,472 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:54:55,472 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:54:55,472 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 09:54:55,472 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 09:54:55,472 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 09:54:55,472 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 09:54:55,473 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior514#104073010] 09:54:55,473 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower515#-111662344] 09:54:55,473 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader516#-160480311] 09:54:55,475 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 09:54:55,475 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:55,475 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:54:55,475 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:54:55,475 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:54:55,475 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:54:55,476 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 09:54:55,476 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:54:55,477 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior517#-2034972404] 09:54:55,477 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower518#-469060598] 09:54:55,477 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader519#-895485493] 09:54:55,478 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 09:54:55,478 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:55,479 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 09:54:55,479 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 09:54:55,479 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:54:55,479 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 09:54:55,480 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 09:54:55,480 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior520#1851146806] 09:54:55,480 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower521#-815737189] 09:54:55,480 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader522#1291804482] 09:54:55,482 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [06/25/2025 21:54:55.482] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@5c62b3bf [INFO] [pekkoDeadLetter][06/25/2025 21:54:55.482] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:54:55,482 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:54:55,483 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 09:54:55,483 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:54:55,483 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:54:55,485 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12823152460175721441/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 09:54:55,485 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 09:54:55,485 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:54:55,485 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 09:54:55,488 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:54:55,488 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 09:54:55,489 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@5fec9911 09:54:55,489 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 09:54:55,489 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 09:54:55,489 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 09:54:55,489 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 09:54:55,489 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 09:54:55,489 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 09:54:55,489 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 09:54:55,489 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 09:54:55,489 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 09:54:55,489 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 09:54:55,489 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 09:54:55,489 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:54:55,489 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 09:54:55,489 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 09:54:55,489 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 09:54:55,489 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 09:54:55,489 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 09:54:55,491 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 09:54:55,491 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 09:54:55,491 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 09:54:55,491 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 09:54:55,491 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 09:54:55,491 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 09:54:55,491 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 09:54:55,491 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 09:54:55,492 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 09:54:55,492 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persisting ApplyJournalEntries with index=2 09:54:55,493 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 09:54:55,493 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 09:54:55,493 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 09:54:55,493 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 09:54:55,493 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 4 09:54:55,493 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 09:54:55,493 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 09:54:55,493 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 09:54:55,493 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 1 09:54:55,493 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d851615] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12823152460175721441/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685C702F-1D6A94A6.tmp 09:54:55,493 PM [test-pekko.actor.default-dispatcher-6] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] 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'. [WARN] [06/25/2025 21:54:55.494] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/25/2025 21:54:55.493] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] 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'. 09:54:55,498 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d851615] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12823152460175721441/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685C702F-1D6A94A6.v1 09:54:55,498 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d851615] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12823152460175721441/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685C702F-1D6A94A6.v1 09:54:55,498 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d851615] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12823152460175721441/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:54:55,499 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d851615] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-25T21:54:55.493524134Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12823152460175721441/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685C702F-1D6A94A6.v1, size=573, entryCompress=NONE, stateCompress=NONE} 09:54:55,499 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-06-25T21:54:55.493524134Z 09:54:55,499 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success - sequence number: 4 09:54:55,499 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 09:54:55,499 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: handled a journal response 09:54:55,641 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12823152460175721441/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685C702F-1D6A94A6.v1 09:54:55,641 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12823152460175721441/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:54:55,641 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-25T21:54:55.493524134Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12823152460175721441/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685C702F-1D6A94A6.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 09:54:55,643 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 09:54:55,654 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 09:54:55,654 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [06/25/2025 21:54:55.655] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@448c3464 [INFO] [pekkoDeadLetter][06/25/2025 21:54:55.655] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:54:55,656 PM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:54:55,656 PM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 09:54:55,656 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:54:55,656 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:54:55,658 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:54:55,658 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12823152460175721441/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685C702F-1D6A94A6.v1 09:54:55,658 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12823152460175721441/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:54:55,658 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-25T21:54:55.493524134Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12823152460175721441/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685C702F-1D6A94A6.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 09:54:55,658 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 09:54:55,659 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-06-25T21:54:55.493524134Z 09:54:55,659 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:54:55,659 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 164.5 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 09:54:55,660 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Received apply journal entries for recovery, applying to state: 3 to 2 09:54:55,660 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 09:54:55,660 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 693.8 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 09:54:55,660 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 09:54:55,660 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:54:55,660 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@6be8e928 09:54:55,660 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior523#-1961610982] 09:54:55,676 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower524#-601638583] 09:54:55,676 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader525#1347248645] 09:54:55,677 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 09:54:55,677 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 09:54:55,677 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 09:54:55,682 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 09:54:55,683 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:55,984 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 09:54:56,114 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:54:56,114 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 131 < election timeout PT0.4S 09:54:56,365 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 09:54:56,565 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 09:54:56,565 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior526#1231223037] 09:54:56,579 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower527#468910882] 09:54:56,579 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader528#1607743566] 09:54:56,586 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:56,589 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:54:56,589 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 09:54:56,589 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 09:54:56,589 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 09:54:56,589 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 09:54:56,589 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior529#-788837455] 09:54:56,600 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower530#1445637862] 09:54:56,600 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader531#813314142] 09:54:56,602 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:56,604 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 09:54:56,605 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 09:54:56,605 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior532#-443780069] 09:54:56,606 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower533#-1048982637] 09:54:56,606 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader534#-851358804] 09:54:56,610 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:56,612 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 09:54:56,613 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:54:56,613 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 09:54:56,613 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 09:54:56,613 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 09:54:56,613 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 09:54:56,613 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:54:56,613 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 09:54:56,613 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 09:54:56,614 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:54:56,614 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:54:56,614 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 09:54:56,614 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior535#468494357] 09:54:56,625 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower536#-1360267782] 09:54:56,625 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader537#-1492550917] 09:54:56,627 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:56,629 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 09:54:56,629 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 09:54:56,629 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior538#-1884874874] 09:54:56,630 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower539#-47198868] 09:54:56,630 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader540#-1639725672] 09:54:56,632 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:56,633 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 09:54:56,634 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 09:54:56,634 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:54:56,634 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 09:54:56,635 PM [main] [INFO] Follower - follower (Follower): 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 follower's term 1 - updating term 09:54:56,636 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 09:54:56,636 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 09:54:56,636 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 09:54:56,636 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 09:54:56,637 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 09:54:56,637 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 09:54:56,638 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 09:54:56,638 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior541#-1872555800] 09:54:56,638 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower542#1165044211] 09:54:56,638 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader543#-912120518] 09:54:56,639 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:56,640 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:54:56,640 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:54:56,640 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:56,640 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 09:54:56,640 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 09:54:56,640 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 09:54:56,640 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 09:54:56,640 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 09:54:56,640 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior544#-685911899] 09:54:56,641 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower545#1701169118] 09:54:56,641 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader546#789396319] 09:54:56,642 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:56,643 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 09:54:56,643 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior547#1664212837] 09:54:56,644 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower548#396407489] 09:54:56,644 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader549#1984266739] 09:54:56,645 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:54:56,645 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 09:54:56,645 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 09:54:56,645 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior550#-2073425476] 09:54:56,646 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower551#1178139791] 09:54:56,646 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader552#-1621363924] [INFO] [06/25/2025 21:54:56.647] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 09:54:56,647 PM [test-pekko.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 09:54:56,648 PM [test-pekko.actor.default-dispatcher-5] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#392930309] was unhandled. [8] 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'. [WARN] [06/25/2025 21:54:56.648] [test-pekko.actor.default-dispatcher-6] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.100:17355) [INFO] [pekkoDeadLetter][06/25/2025 21:54:56.648] [test-pekko.actor.default-dispatcher-5] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#392930309] was unhandled. [8] 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'. [INFO] [06/25/2025 21:54:56.648] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.100:17355] - Exiting completed [INFO] [06/25/2025 21:54:56.648] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.100:17355] - Shutting down... 09:54:56,648 PM [test-pekko.actor.default-dispatcher-13] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.100:17355] - Exiting completed 09:54:56,648 PM [test-pekko.actor.default-dispatcher-13] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.100:17355] - Shutting down... [INFO] [06/25/2025 21:54:56.649] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.100:17355] - Successfully shut down 09:54:56,649 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.100:17355] - Successfully shut down [INFO] [06/25/2025 21:54:56.651] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.100:17355/system/remoting-terminator] Shutting down remote daemon. 09:54:56,651 PM [test-pekko.actor.default-dispatcher-13] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [06/25/2025 21:54:56.651] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.100:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 09:54:56,651 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [06/25/2025 21:54:56.654] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.100:17355/system/remoting-terminator] Remoting shut down. 09:54:56,654 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [06/25/2025 21:54:56.654] [test-pekko.actor.internal-dispatcher-4] [EventStream] shutting down: StandardOutLogger