[DEBUG] [07/02/2025 19:50:11.894] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 07:50:11,894 PM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [07/02/2025 19:50:11.894] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [07/02/2025 19:50:11.894] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [07/02/2025 19:50:11.924] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.40:17355] with UID [8880564263950438815] [INFO] [07/02/2025 19:50:11.924] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.40:17355] - Starting up, Pekko version [1.0.3] ... 07:50:11,925 PM [test-pekko.actor.default-dispatcher-7] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.40:17355] with UID [8880564263950438815] 07:50:11,925 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.40:17355] - Starting up, Pekko version [1.0.3] ... 07:50:11,930 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.40:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 07:50:11,930 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.40:17355] - Started up successfully 07:50:11,931 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.40:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 07:50:11,931 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.40:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [07/02/2025 19:50:11.929] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.40:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [07/02/2025 19:50:11.929] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.40:17355] - Started up successfully [INFO] [07/02/2025 19:50:11.931] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.40:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [07/02/2025 19:50:11.931] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.40:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 07:50:11,943 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 07:50:11,943 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:12,37 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:50:12,37 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:50:12,37 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:50:12,38 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:50:12,39 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 07:50:12,39 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 07:50:12,39 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 07:50:12,39 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 07:50:12,42 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 07:50:12,42 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior420#561635527] 07:50:12,53 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower421#101746012] 07:50:12,53 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader422#1478167788] 07:50:12,56 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 07:50:12,56 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:12,59 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]]} 07:50:12,59 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 07:50:12,60 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} 07:50:12,60 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 07:50:12,61 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior423#-966929488] 07:50:12,72 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower424#-1806648006] 07:50:12,72 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader425#117082964] 07:50:12,74 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 07:50:12,75 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:12,75 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:50:12,76 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:50:12,76 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:50:12,76 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:50:12,77 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 07:50:12,77 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 07:50:12,77 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 07:50:12,79 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:50:12,80 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 07:50:12,81 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]]} 07:50:12,81 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 07:50:12,82 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} 07:50:12,82 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 07:50:12,83 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior426#1614615417] 07:50:12,95 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower427#-923721855] 07:50:12,95 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader428#758446567] 07:50:12,98 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:12,99 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 07:50:12,103 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior429#-502664198] 07:50:12,114 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower430#1448431526] 07:50:12,114 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader431#-1225326308] 07:50:12,116 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 07:50:12,117 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:12,117 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 07:50:12,119 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]]} 07:50:12,119 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:50:12,120 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:50:12,120 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:50:12,120 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:50:12,120 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:50:12,121 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} 07:50:12,121 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:50:12,121 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:50:12,123 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:50:12,124 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior432#-207682749] 07:50:12,134 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower433#1179709369] 07:50:12,135 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader434#-702151473] 07:50:12,141 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 07:50:12,141 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:12,143 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]]} 07:50:12,143 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:50:12,143 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 07:50:12,143 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 07:50:12,143 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:50:12,143 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 07:50:12,143 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} 07:50:12,144 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:50:12,144 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 07:50:12,144 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:50:12,144 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:50:12,144 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:50:12,144 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:50:12,145 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]]} 07:50:12,145 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:50:12,145 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 07:50:12,145 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 07:50:12,145 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 07:50:12,145 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 07:50:12,145 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 07:50:12,145 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} 07:50:12,146 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 07:50:12,146 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 07:50:12,146 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:50:12,146 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:50:12,146 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior435#1960581825] 07:50:12,157 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower436#-1709513166] 07:50:12,157 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader437#-1117450711] 07:50:12,159 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 07:50:12,159 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:12,159 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 07:50:12,160 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 07:50:12,161 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} 07:50:12,161 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 07:50:12,161 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior438#-546971686] 07:50:12,172 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower439#821309910] 07:50:12,172 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader440#631700606] 07:50:12,173 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:12,177 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior441#-458430069] 07:50:12,188 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower442#1171262272] 07:50:12,188 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader443#-740017657] 07:50:12,191 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 07:50:12,191 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:12,191 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 07:50:12,191 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 07:50:12,192 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]]} 07:50:12,192 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:50:12,193 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:50:12,193 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:50:12,193 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:50:12,193 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:50:12,193 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} 07:50:12,193 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:50:12,193 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 07:50:12,194 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 07:50:12,194 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 07:50:12,194 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 07:50:12,194 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior444#734199841] 07:50:12,195 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower445#-1165570190] 07:50:12,195 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader446#617732507] 07:50:12,197 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries 07:50:12,201 PM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 07:50:12,201 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 07:50:12,201 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 07:50:12,201 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 07:50:12,201 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 07:50:12,201 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 07:50:12,202 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 07:50:12,202 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands [WARN] [07/02/2025 19:50:12.202] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@71e34f0d 07:50:12,202 PM [test-pekko.actor.default-dispatcher-11] [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'. [INFO] [pekkoDeadLetter][07/02/2025 19:50:12.202] [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'. 07:50:12,204 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12242026599247152516/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 07:50:12,204 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12242026599247152516/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:50:12,204 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12242026599247152516/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:50:12,204 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 07:50:12,204 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:50:12,204 PM [test-pekko.actor.default-dispatcher-14] [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 07:50:12,209 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:50:12,209 PM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 07:50:12,209 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed 07:50:12,209 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 07:50:12,209 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 07:50:12,209 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 07:50:12,209 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 07:50:12,209 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: journal recovery completedin 125.5 μs with journalIndex=1 07:50:12,210 PM [test-pekko.actor.default-dispatcher-14] [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]]} 07:50:12,210 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 07:50:12,210 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:50:12,210 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 07:50:12,210 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:50:12,211 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 07:50:12,211 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:50:12,211 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 07:50:12,211 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 07:50:12,211 PM [test-pekko.actor.default-dispatcher-14] [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} 07:50:12,211 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 07:50:12,211 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 07:50:12,211 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 8.909 ms 07:50:12,211 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 07:50:12,211 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 07:50:12,211 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 07:50:12,211 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 07:50:12,211 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 07:50:12,211 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 07:50:12,211 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 07:50:12,211 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 07:50:12,211 PM [test-pekko.actor.default-dispatcher-12] [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'. [WARN] [07/02/2025 19:50:12.211] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/02/2025 19:50:12.211] [test-pekko.actor.default-dispatcher-12] [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'. 07:50:12,214 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 07:50:12,214 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 3.311 ms 07:50:12,214 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 3.180 μs 07:50:12,214 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 07:50:12,214 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:50:12,215 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 07:50:12,215 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 07:50:12,215 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 813.9 μs 07:50:12,215 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 07:50:12,215 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 07:50:12,215 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:50:12,215 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] 07:50:12,215 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 07:50:12,215 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 07:50:12,215 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 07:50:12,215 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 07:50:12,215 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d534802] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12242026599247152516/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068658D74-0CDA4FC2.tmp 07:50:12,215 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 07:50:12,219 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d534802] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12242026599247152516/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068658D74-0CDA4FC2.v1 07:50:12,219 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d534802] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12242026599247152516/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068658D74-0CDA4FC2.v1 07:50:12,219 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d534802] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12242026599247152516/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:50:12,219 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d534802] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12242026599247152516/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:50:12,219 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d534802] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12242026599247152516/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:50:12,219 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d534802] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-07-02T19:50:12.215633858Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12242026599247152516/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068658D74-0CDA4FC2.v1, size=555, entryCompress=NONE, stateCompress=NONE} 07:50:12,219 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d534802] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 07:50:12,220 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 07:50:12,220 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-07-02T19:50:12.215633858Z 07:50:12,220 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 07:50:12,220 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 4.880 ms 07:50:12,220 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 07:50:12,220 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 07:50:12,220 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 07:50:12,220 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 07:50:12,220 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 147.9 μs 07:50:12,220 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 07:50:12,220 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 07:50:12,311 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12242026599247152516/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068658D74-0CDA4FC2.v1 07:50:12,311 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12242026599247152516/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:50:12,312 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12242026599247152516/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:50:12,312 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12242026599247152516/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:50:12,312 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-07-02T19:50:12.215633858Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12242026599247152516/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068658D74-0CDA4FC2.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 07:50:12,314 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior447#1744744978] 07:50:12,325 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower448#276278168] 07:50:12,325 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader449#-1503264445] 07:50:12,325 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 07:50:12,325 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#849,testCaptureSnapshotOnLastEntryInAppendEntries-writer-155]/waiting 07:50:12,326 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 105.6 ms 07:50:12,326 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 28.63 μs 07:50:12,326 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 07:50:12,326 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 07:50:12,326 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 07:50:12,326 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 07:50:12,326 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 07:50:12,330 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:12,331 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior450#-1513328562] 07:50:12,332 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower451#-1066795058] 07:50:12,332 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader452#358581147] 07:50:12,333 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 07:50:12,333 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:12,334 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 07:50:12,335 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 07:50:12,335 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior453#2074736319] 07:50:12,336 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower454#349959401] 07:50:12,336 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader455#-2009426696] 07:50:12,337 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 07:50:12,337 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:12,338 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 07:50:12,338 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]]} 07:50:12,338 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:50:12,338 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:50:12,338 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:50:12,338 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:50:12,338 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:50:12,339 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} 07:50:12,339 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:50:12,339 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:50:12,339 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:50:12,339 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#998838132] 07:50:12,340 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower457#-816860252] 07:50:12,340 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader458#-67558118] 07:50:12,341 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 07:50:12,341 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:12,341 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 07:50:12,342 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]]} 07:50:12,342 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 07:50:12,342 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} 07:50:12,342 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:50:12,342 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 07:50:12,343 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]]} 07:50:12,343 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 07:50:12,343 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} 07:50:12,343 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 07:50:12,343 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#1340038119] 07:50:12,344 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower460#-1152141892] 07:50:12,344 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader461#-2099552567] 07:50:12,345 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:12,345 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#-455433650] 07:50:12,345 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower463#-253885354] 07:50:12,345 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader464#-846319204] 07:50:12,347 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 07:50:12,347 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:12,347 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 07:50:12,347 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]]} 07:50:12,347 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 07:50:12,348 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} 07:50:12,348 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:50:12,348 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:50:12,348 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]]} 07:50:12,348 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 07:50:12,349 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} 07:50:12,349 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:50:12,349 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]]} 07:50:12,349 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 07:50:12,349 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} 07:50:12,349 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:50:12,350 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#-1010476554] 07:50:12,350 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower466#2119130519] 07:50:12,350 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader467#32140860] 07:50:12,351 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 07:50:12,351 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:12,352 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]]} 07:50:12,352 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:50:12,352 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 07:50:12,352 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 07:50:12,352 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:50:12,352 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 07:50:12,352 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} 07:50:12,352 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 07:50:12,352 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 07:50:12,353 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 07:50:12,353 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#-578090820] 07:50:12,353 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower469#-877040167] 07:50:12,353 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader470#-684415653] 07:50:12,355 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 07:50:12,355 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:12,355 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 07:50:12,356 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader473 07:50:12,356 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader473 07:50:12,357 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 07:50:12,357 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior471#-1241913268] 07:50:12,358 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower472#1863577531] 07:50:12,358 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader473#1026743689] 07:50:12,359 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 07:50:12,359 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:12,360 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 07:50:12,360 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]]} 07:50:12,360 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:50:12,360 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:50:12,360 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:50:12,360 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:50:12,360 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:50:12,360 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} 07:50:12,360 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:50:12,360 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:50:12,360 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:50:12,361 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior474#-1788084186] 07:50:12,371 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower475#366420418] 07:50:12,372 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader476#-1681598588] 07:50:12,374 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 07:50:12,374 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:12,375 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 07:50:12,375 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]]} 07:50:12,375 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 07:50:12,376 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} 07:50:12,376 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:50:12,377 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#1721771890] 07:50:12,387 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower478#-389690165] 07:50:12,388 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader479#-1877069636] 07:50:12,395 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 07:50:12,396 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 07:50:12,396 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 07:50:12,396 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor [WARN] [07/02/2025 19:50:12.397] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@595bd3d3 [INFO] [pekkoDeadLetter][07/02/2025 19:50:12.397] [test-pekko.actor.default-dispatcher-14] [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'. 07:50:12,397 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 07:50:12,397 PM [test-pekko.actor.default-dispatcher-14] [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'. 07:50:12,399 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 07:50:12,399 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 07:50:12,400 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 07:50:12,400 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 07:50:12,401 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11820309308224330277/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 07:50:12,401 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11820309308224330277/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 07:50:12,401 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11820309308224330277/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 07:50:12,401 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 07:50:12,401 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 07:50:12,401 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 07:50:12,403 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 07:50:12,403 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 07:50:12,403 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed 07:50:12,404 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 07:50:12,404 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 07:50:12,404 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 07:50:12,404 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 07:50:12,404 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal recovery completedin 146.3 μs with journalIndex=1 07:50:12,409 PM [test-pekko.actor.default-dispatcher-6] [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]]} 07:50:12,409 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 07:50:12,409 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:50:12,409 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 07:50:12,409 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:50:12,409 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 07:50:12,409 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:50:12,409 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 07:50:12,409 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 07:50:12,409 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 07:50:12,409 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 07:50:12,409 PM [test-pekko.actor.default-dispatcher-6] [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} 07:50:12,409 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 07:50:12,409 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 9.593 ms 07:50:12,409 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 07:50:12,409 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 07:50:12,409 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 07:50:12,409 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 07:50:12,409 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 07:50:12,410 PM [test-pekko.actor.default-dispatcher-11] [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'. [WARN] [07/02/2025 19:50:12.409] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/02/2025 19:50:12.410] [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'. 07:50:12,414 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 07:50:12,414 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 4.984 ms 07:50:12,414 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 07:50:12,414 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 6.780 μs 07:50:12,414 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:50:12,414 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:50:12,420 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 07:50:12,420 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 07:50:12,420 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 07:50:12,420 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 5.411 ms 07:50:12,420 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 07:50:12,420 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 07:50:12,420 PM [test-pekko.actor.default-dispatcher-6] [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] 07:50:12,420 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 07:50:12,420 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 07:50:12,420 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 07:50:12,420 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 07:50:12,420 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 07:50:12,420 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d988546] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11820309308224330277/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068658D74-1910D8AF.tmp 07:50:12,422 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d988546] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11820309308224330277/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068658D74-1910D8AF.v1 07:50:12,423 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d988546] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11820309308224330277/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068658D74-1910D8AF.v1 07:50:12,423 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d988546] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11820309308224330277/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 07:50:12,423 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d988546] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11820309308224330277/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 07:50:12,423 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d988546] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11820309308224330277/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 07:50:12,423 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d988546] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-07-02T19:50:12.420534447Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11820309308224330277/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068658D74-1910D8AF.v1, size=539, entryCompress=NONE, stateCompress=NONE} 07:50:12,423 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d988546] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 07:50:12,423 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 07:50:12,423 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-07-02T19:50:12.420534447Z 07:50:12,423 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 07:50:12,424 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 07:50:12,424 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 3.833 ms 07:50:12,424 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 07:50:12,424 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 07:50:12,424 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 07:50:12,424 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 205.2 μs 07:50:12,424 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 07:50:12,424 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 07:50:12,511 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11820309308224330277/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068658D74-1910D8AF.v1 07:50:12,511 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11820309308224330277/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 07:50:12,511 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11820309308224330277/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 07:50:12,512 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11820309308224330277/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 07:50:12,512 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-07-02T19:50:12.420534447Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11820309308224330277/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068658D74-1910D8AF.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 07:50:12,689 PM [test-pekko.actor.default-dispatcher-6] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 07:50:17,513 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#-1492866734] 07:50:17,524 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower481#283342803] 07:50:17,524 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader482#2061858803] 07:50:17,524 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 07:50:17,524 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#854,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156]/waiting 07:50:17,524 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 5.100 s 07:50:17,525 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 91.66 μs 07:50:17,525 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 07:50:17,525 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 07:50:17,525 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 07:50:17,525 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 07:50:17,525 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 07:50:17,529 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 07:50:17,529 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:17,530 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 07:50:17,531 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]]} 07:50:17,531 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 07:50:17,531 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} 07:50:17,532 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 07:50:17,532 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior483#-1154659113] 07:50:17,543 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower484#46543352] 07:50:17,543 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader485#-1872520956] 07:50:17,545 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 07:50:17,545 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:17,545 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 07:50:17,546 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 07:50:17,546 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 07:50:17,546 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 07:50:17,546 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 07:50:17,547 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior486#2051103819] 07:50:17,557 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower487#-842251006] 07:50:17,557 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader488#1528343175] 07:50:17,558 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 07:50:17,558 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:17,559 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 07:50:17,559 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]]} 07:50:17,559 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:50:17,559 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 07:50:17,559 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:50:17,559 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 07:50:17,560 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 07:50:17,560 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 07:50:17,560 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 07:50:17,560 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 07:50:17,560 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 07:50:17,560 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} 07:50:17,560 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 07:50:17,560 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 07:50:17,560 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:50:17,560 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:50:17,560 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:50:17,560 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:50:17,560 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:50:17,560 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:50:17,560 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 07:50:17,560 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 07:50:17,561 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior489#275008348] 07:50:17,571 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower490#-72563313] 07:50:17,571 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader491#1118971117] 07:50:17,574 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 07:50:17,574 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:17,575 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 07:50:17,575 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 07:50:17,576 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior492#1915980484] 07:50:17,576 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower493#-682779173] 07:50:17,576 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader494#-583423022] 07:50:17,580 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 07:50:17,580 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:17,581 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:50:17,581 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:50:17,581 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:50:17,581 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:50:17,582 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 07:50:17,582 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]]} 07:50:17,582 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 07:50:17,583 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:50:17,583 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 07:50:17,583 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 07:50:17,583 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 07:50:17,583 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 07:50:17,583 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} 07:50:17,583 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 07:50:17,583 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 07:50:17,583 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:50:17,583 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:50:17,583 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior495#1035821597] 07:50:17,584 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower496#132964078] 07:50:17,584 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader497#-1883587887] 07:50:17,585 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 07:50:17,585 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:17,585 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 07:50:17,585 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]]} 07:50:17,586 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 07:50:17,586 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} 07:50:17,586 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:50:17,586 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:50:17,587 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]]} 07:50:17,587 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 07:50:17,587 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} 07:50:17,587 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:50:17,587 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 07:50:17,587 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]]} 07:50:17,587 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 07:50:17,588 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} 07:50:17,588 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 07:50:17,588 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#1174764499] 07:50:17,588 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower499#-1904585357] 07:50:17,588 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader500#637750148] 07:50:17,589 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 07:50:17,590 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:17,790 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:50:17,790 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.170.40:17355, Removed) 07:50:17,790 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 07:50:17,790 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 07:50:17,790 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 07:50:17,790 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 07:50:17,790 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#185456629] 07:50:17,791 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower502#-472760446] 07:50:17,791 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader503#1535120127] 07:50:17,795 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:17,795 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 07:50:17,946 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:50:17,946 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior504#-793143018] 07:50:17,947 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower505#-799938274] 07:50:17,947 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader506#-959789993] 07:50:17,950 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 07:50:17,950 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:17,952 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 07:50:17,953 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 07:50:17,953 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#399703318] 07:50:17,954 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower508#-1131653577] 07:50:17,954 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader509#-21483349] 07:50:17,955 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 07:50:17,955 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:17,956 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]]} 07:50:17,956 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:50:17,956 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 07:50:17,956 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 07:50:17,956 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 07:50:17,956 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 07:50:17,956 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 07:50:17,956 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} 07:50:17,956 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 07:50:17,956 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 07:50:17,956 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:50:17,956 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:50:17,957 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:50:17,957 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:50:17,957 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:50:17,957 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:50:17,957 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 07:50:17,957 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 07:50:17,957 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 07:50:17,957 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 07:50:17,957 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior510#272613458] 07:50:17,958 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower511#-481168058] 07:50:17,958 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader512#1581951728] 07:50:17,959 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 07:50:17,959 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:17,960 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:50:17,960 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:50:17,960 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:50:17,960 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:50:17,960 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]]} 07:50:17,961 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} 07:50:17,961 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#234671509] 07:50:17,961 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower514#1442227966] 07:50:17,962 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader515#-1260309793] 07:50:17,963 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 07:50:17,963 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:17,963 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 07:50:17,963 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]]} 07:50:17,963 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:50:17,963 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 07:50:17,964 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 07:50:17,964 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior516#1887612985] 07:50:17,964 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower517#520954705] 07:50:17,965 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518#-1073346679] 07:50:17,966 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [07/02/2025 19:50:17.966] [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@15437add [INFO] [pekkoDeadLetter][07/02/2025 19:50:17.966] [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'. 07:50:17,966 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'. 07:50:17,967 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 07:50:17,967 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:50:17,967 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:50:17,967 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 07:50:17,968 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 07:50:17,968 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 07:50:17,968 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 07:50:17,968 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 07:50:17,969 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9784827999167771417/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 07:50:17,969 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9784827999167771417/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:50:17,969 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9784827999167771417/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:50:17,970 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 07:50:17,970 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:50:17,970 PM [test-pekko.actor.default-dispatcher-14] [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 07:50:17,972 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:50:17,972 PM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 07:50:17,972 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed 07:50:17,972 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 07:50:17,972 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 07:50:17,972 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 07:50:17,972 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 07:50:17,972 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 160.0 μs with journalIndex=1 07:50:17,973 PM [test-pekko.actor.default-dispatcher-14] [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]]} 07:50:17,973 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 07:50:17,973 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:50:17,973 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 07:50:17,973 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:50:17,973 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 07:50:17,973 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:50:17,973 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 07:50:17,973 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 07:50:17,973 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 4.747 ms 07:50:17,973 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 07:50:17,973 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 07:50:17,973 PM [test-pekko.actor.default-dispatcher-14] [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} 07:50:17,973 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 07:50:17,973 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 07:50:17,973 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 07:50:17,973 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 07:50:17,973 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 07:50:17,973 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 07:50:17,973 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 07:50:17,973 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 07:50:17,973 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 07:50:17,973 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 07:50:17,973 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 07:50:17,973 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 07:50:17,973 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 07:50:17,973 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three [WARN] [07/02/2025 19:50:17.973] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/02/2025 19:50:17.973] [test-pekko.actor.default-dispatcher-14] [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'. 07:50:17,974 PM [test-pekko.actor.default-dispatcher-14] [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'. 07:50:17,977 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 07:50:17,977 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 07:50:17,977 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 3.978 ms 07:50:17,977 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:50:17,977 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:50:17,977 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 6.450 μs 07:50:17,978 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 07:50:17,978 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 07:50:17,978 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 07:50:17,978 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 07:50:17,978 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 970.0 μs 07:50:17,978 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 07:50:17,978 PM [test-pekko.actor.default-dispatcher-11] [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] 07:50:17,978 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 07:50:17,978 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 07:50:17,978 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 07:50:17,978 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 07:50:17,978 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 07:50:17,978 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d542782] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9784827999167771417/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068658D79-3A52A927.tmp 07:50:17,980 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d542782] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9784827999167771417/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068658D79-3A52A927.v1 07:50:17,980 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d542782] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9784827999167771417/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068658D79-3A52A927.v1 07:50:17,980 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d542782] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9784827999167771417/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:50:17,980 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d542782] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9784827999167771417/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:50:17,981 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d542782] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9784827999167771417/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:50:17,981 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d542782] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-02T19:50:17.978495783Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9784827999167771417/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068658D79-3A52A927.v1, size=573, entryCompress=NONE, stateCompress=NONE} 07:50:17,981 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d542782] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 07:50:17,981 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 07:50:17,981 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-07-02T19:50:17.978495783Z 07:50:17,981 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 07:50:17,981 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 07:50:17,981 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 2.944 ms 07:50:17,981 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 07:50:17,981 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 07:50:17,981 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 07:50:17,981 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 07:50:17,981 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 220.4 μs 07:50:17,981 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 07:50:18,126 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9784827999167771417/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068658D79-3A52A927.v1 07:50:18,126 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9784827999167771417/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:50:18,126 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9784827999167771417/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:50:18,126 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9784827999167771417/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:50:18,126 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-02T19:50:17.978495783Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9784827999167771417/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068658D79-3A52A927.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 07:50:18,127 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 07:50:18,138 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#857,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/waiting 07:50:18,138 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 157.3 ms 07:50:18,139 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 41.66 μs 07:50:18,139 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 07:50:18,139 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 07:50:18,139 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 07:50:18,139 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:50:18,139 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/02/2025 19:50:18.140] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@749e9ec9 [INFO] [pekkoDeadLetter][07/02/2025 19:50:18.140] [test-pekko.actor.default-dispatcher-7] [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'. 07:50:18,141 PM [test-pekko.actor.default-dispatcher-7] [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'. 07:50:18,141 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 07:50:18,141 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:50:18,142 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:50:18,142 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 07:50:18,143 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 07:50:18,143 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 07:50:18,143 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 07:50:18,143 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 07:50:18,145 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:50:18,145 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9784827999167771417/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068658D79-3A52A927.v1 07:50:18,145 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9784827999167771417/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:50:18,145 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9784827999167771417/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:50:18,145 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9784827999167771417/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:50:18,145 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-02T19:50:17.978495783Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9784827999167771417/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068658D79-3A52A927.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 07:50:18,145 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 07:50:18,146 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-07-02T19:50:17.978495783Z 07:50:18,146 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:50:18,146 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 132.4 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 07:50:18,146 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:50:18,146 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 266.1 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 07:50:18,146 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 07:50:18,146 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:50:18,146 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed 07:50:18,146 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 07:50:18,146 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 07:50:18,146 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 07:50:18,146 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 07:50:18,146 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 127.8 μs with journalIndex=4 07:50:18,147 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior519#1617806813] 07:50:18,157 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower520#-698969898] 07:50:18,157 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader521#-2143582191] 07:50:18,158 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 07:50:18,158 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PekkoRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#860,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158]/waiting 07:50:18,158 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 14.62 ms 07:50:18,158 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 19.22 μs 07:50:18,158 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 07:50:18,158 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 07:50:18,158 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 07:50:18,158 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:50:18,158 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:50:18,162 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 07:50:18,162 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:18,462 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 07:50:18,593 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:50:18,593 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 07:50:18,843 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 07:50:19,43 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 07:50:19,43 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior522#587723593] 07:50:19,54 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower523#-1796082542] 07:50:19,54 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader524#-1226831416] 07:50:19,56 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:19,57 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:50:19,57 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 07:50:19,57 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 07:50:19,57 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 07:50:19,57 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 07:50:19,57 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior525#580307775] 07:50:19,58 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower526#-1562259745] 07:50:19,58 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader527#424241542] 07:50:19,59 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:19,60 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 07:50:19,60 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 07:50:19,61 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior528#-525447539] 07:50:19,71 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower529#1531224888] 07:50:19,71 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader530#-1076861948] 07:50:19,75 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:19,76 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]]} 07:50:19,76 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:50:19,76 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 07:50:19,76 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 07:50:19,77 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:50:19,77 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 07:50:19,77 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} 07:50:19,77 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 07:50:19,77 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 07:50:19,78 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:50:19,78 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:50:19,78 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 07:50:19,78 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior531#973068271] 07:50:19,89 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower532#-1407685686] 07:50:19,89 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader533#1342283620] 07:50:19,92 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:19,94 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 07:50:19,95 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 07:50:19,98 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior534#500669151] 07:50:19,108 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower535#-201357292] 07:50:19,109 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader536#-1326796655] 07:50:19,110 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:19,111 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 07:50:19,112 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 07:50:19,112 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} 07:50:19,112 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 07:50:19,113 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 07:50:19,118 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 07:50:19,118 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 07:50:19,118 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. 07:50:19,118 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 07:50:19,118 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 07:50:19,118 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 07:50:19,119 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 07:50:19,119 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior537#-418293345] 07:50:19,130 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower538#-1702765003] 07:50:19,130 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader539#-183959137] 07:50:19,132 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:19,133 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:50:19,133 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:50:19,133 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:19,133 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 07:50:19,134 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 07:50:19,134 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 07:50:19,134 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 07:50:19,134 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 07:50:19,134 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior540#720774198] 07:50:19,144 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower541#-228155925] 07:50:19,144 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader542#746048439] 07:50:19,146 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:19,147 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 07:50:19,148 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior543#-303387845] 07:50:19,159 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower544#-728803184] 07:50:19,159 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader545#1047367236] 07:50:19,161 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:50:19,163 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 07:50:19,163 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 07:50:19,164 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior546#-1486173729] 07:50:19,174 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower547#345437094] 07:50:19,174 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader548#1328001852] [INFO] [07/02/2025 19:50:19.175] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 07:50:19,175 PM [test-pekko.actor.default-dispatcher-7] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [07/02/2025 19:50:19.176] [test-pekko.actor.default-dispatcher-11] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.40:17355) [INFO] [pekkoDeadLetter][07/02/2025 19:50:19.176] [test-pekko.actor.default-dispatcher-11] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1827727556] 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'. 07:50:19,176 PM [test-pekko.actor.default-dispatcher-11] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1827727556] 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'. 07:50:19,176 PM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.40:17355] - Exiting completed 07:50:19,176 PM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.40:17355] - Shutting down... 07:50:19,177 PM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.40:17355] - Successfully shut down [INFO] [07/02/2025 19:50:19.176] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.40:17355] - Exiting completed [INFO] [07/02/2025 19:50:19.176] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.40:17355] - Shutting down... [INFO] [07/02/2025 19:50:19.177] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.40:17355] - Successfully shut down [INFO] [07/02/2025 19:50:19.178] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.40:17355/system/remoting-terminator] Shutting down remote daemon. 07:50:19,178 PM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [07/02/2025 19:50:19.178] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.40:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 07:50:19,178 PM [test-pekko.actor.default-dispatcher-14] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [07/02/2025 19:50:19.181] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.40:17355/system/remoting-terminator] Remoting shut down. 07:50:19,182 PM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down.