[DEBUG] [02/26/2026 13:05:44.896] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 01:05:44,897 PM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [02/26/2026 13:05:44.897] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [02/26/2026 13:05:44.897] [main] [EventStream(pekko://test)] Default Loggers started 01:05:44,913 PM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.215:17355] with UID [2993420142584267923] [INFO] [02/26/2026 13:05:44.913] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.215:17355] with UID [2993420142584267923] [INFO] [02/26/2026 13:05:44.914] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.215:17355] - Starting up, Pekko version [1.2.1] ... 01:05:44,914 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.215:17355] - Starting up, Pekko version [1.2.1] ... [INFO] [02/26/2026 13:05:44.916] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.215:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 01:05:44,917 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.215:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [02/26/2026 13:05:44.917] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.215:17355] - Started up successfully 01:05:44,917 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.215:17355] - Started up successfully [INFO] [02/26/2026 13:05:44.918] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.215:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [02/26/2026 13:05:44.918] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.215:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 01:05:44,918 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.215:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 01:05:44,918 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.215:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 01:05:44,928 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,16 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 01:05:45,17 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 01:05:45,17 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior420#1264661658] 01:05:45,28 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower421#-154869969] 01:05:45,28 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader422#1228871285] 01:05:45,32 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,34 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]]} 01:05:45,34 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:05:45,35 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 01:05:45,35 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 01:05:45,35 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 01:05:45,35 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 01:05:45,35 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} 01:05:45,36 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 01:05:45,36 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 01:05:45,37 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 01:05:45,37 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 01:05:45,37 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 01:05:45,38 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior423#-1981048245] 01:05:45,49 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower424#1242630406] 01:05:45,49 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader425#46514243] 01:05:45,52 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,54 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 01:05:45,54 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 01:05:45,55 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior426#-142539731] 01:05:45,66 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower427#-1231156941] 01:05:45,66 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader428#728538995] 01:05:45,69 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,70 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 01:05:45,71 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 01:05:45,71 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} 01:05:45,71 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 01:05:45,72 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 01:05:45,73 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 01:05:45,73 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 01:05:45,73 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. 01:05:45,73 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 01:05:45,74 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 01:05:45,74 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 01:05:45,75 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 01:05:45,76 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior429#569859898] 01:05:45,86 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower430#-171923111] 01:05:45,87 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader431#1928375193] 01:05:45,91 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,92 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 01:05:45,92 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 01:05:45,93 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,93 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 01:05:45,94 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 01:05:45,94 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 01:05:45,94 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 01:05:45,94 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 01:05:45,95 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior432#219604835] 01:05:45,106 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower433#-50107624] 01:05:45,106 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader434#966330807] 01:05:45,110 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,111 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 01:05:45,112 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior435#54803482] 01:05:45,123 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower436#1976287000] 01:05:45,123 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader437#1081716329] 01:05:45,127 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,128 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 01:05:45,129 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 01:05:45,129 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior438#-1436385449] 01:05:45,140 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower439#860792793] 01:05:45,140 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader440#123493503] 01:05:45,144 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 01:05:45,144 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,147 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 01:05:45,148 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 01:05:45,148 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:05:45,148 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 01:05:45,148 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 01:05:45,149 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 01:05:45,149 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 01:05:45,149 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 01:05:45,152 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 01:05:45,152 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior441#1235019795] 01:05:45,173 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower442#-1179935701] 01:05:45,173 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader443#-1814453685] 01:05:45,176 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 01:05:45,176 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,178 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]]} 01:05:45,178 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 01:05:45,178 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} 01:05:45,178 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 01:05:45,179 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior444#150031625] 01:05:45,189 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower445#-1939135081] 01:05:45,190 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader446#-2083977975] 01:05:45,193 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 01:05:45,193 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,193 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 01:05:45,194 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 01:05:45,194 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:05:45,194 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 01:05:45,194 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 01:05:45,194 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 01:05:45,195 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 01:05:45,195 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 01:05:45,196 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 01:05:45,196 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]]} 01:05:45,196 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 01:05:45,197 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} 01:05:45,197 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 01:05:45,197 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior447#598852721] 01:05:45,208 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower448#-1986120450] 01:05:45,208 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader449#-757225567] 01:05:45,211 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,212 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 01:05:45,213 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior450#-1675430336] 01:05:45,223 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower451#-444933200] 01:05:45,223 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader452#-1244003258] 01:05:45,227 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 01:05:45,227 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,228 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 01:05:45,228 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]]} 01:05:45,228 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:05:45,228 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 01:05:45,228 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 01:05:45,228 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 01:05:45,228 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 01:05:45,228 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} 01:05:45,229 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 01:05:45,229 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 01:05:45,229 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 01:05:45,229 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior453#-1194872238] 01:05:45,240 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower454#1942772168] 01:05:45,240 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader455#945425646] 01:05:45,243 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 01:05:45,243 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,244 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]]} 01:05:45,244 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:05:45,245 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 01:05:45,245 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 01:05:45,245 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 01:05:45,245 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 01:05:45,245 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} 01:05:45,245 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 01:05:45,245 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 01:05:45,245 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 01:05:45,245 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 01:05:45,245 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 01:05:45,245 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 01:05:45,246 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]]} 01:05:45,246 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 01:05:45,246 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 01:05:45,246 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 01:05:45,246 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 01:05:45,246 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 01:05:45,246 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 01:05:45,246 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} 01:05:45,247 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 01:05:45,247 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 01:05:45,247 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 01:05:45,247 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 01:05:45,247 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#1186779394] 01:05:45,258 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower457#-1913582869] 01:05:45,258 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader458#1888752812] 01:05:45,261 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 01:05:45,261 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,262 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 01:05:45,263 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 01:05:45,263 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} 01:05:45,263 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 01:05:45,263 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#-1616414232] 01:05:45,264 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower460#503780463] 01:05:45,264 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader461#1294625771] 01:05:45,273 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,275 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#-788004411] 01:05:45,275 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower463#539626385] 01:05:45,276 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader464#-1302812261] 01:05:45,279 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 01:05:45,279 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,279 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 01:05:45,280 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 01:05:45,280 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]]} 01:05:45,280 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:05:45,280 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 01:05:45,280 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 01:05:45,280 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 01:05:45,280 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 01:05:45,281 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} 01:05:45,281 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 01:05:45,281 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 01:05:45,281 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 01:05:45,281 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 01:05:45,281 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 01:05:45,282 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#-1730786163] 01:05:45,282 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower466#255343394] 01:05:45,282 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader467#-997443885] 01:05:45,285 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries 01:05:45,288 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 01:05:45,289 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] [WARN] [02/26/2026 13:05:45.289] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@1437c57d 01:05:45,289 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 01:05:45,290 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor [INFO] [pekkoDeadLetter][02/26/2026 13:05:45.289] [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'. 01:05:45,290 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 01:05:45,290 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'. 01:05:45,290 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 01:05:45,290 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 01:05:45,290 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 01:05:45,290 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 01:05:45,290 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 01:05:45,290 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 01:05:45,290 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/junit-4782382902155989443/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 01:05:45,292 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=0, votedFor=null 01:05:45,292 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 01:05:45,292 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4782382902155989443/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 01:05:45,292 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4782382902155989443/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 01:05:45,292 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4782382902155989443/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 01:05:45,292 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 01:05:45,292 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 01:05:45,292 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 01:05:45,293 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 01:05:45,293 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed in in 2.207 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 01:05:45,293 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed and can restore from snapshot 01:05:45,293 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4782382902155989443/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 01:05:45,293 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4782382902155989443/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 01:05:45,293 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4782382902155989443/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 01:05:45,293 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 01:05:45,293 PM [test-pekko.actor.default-dispatcher-7] [INFO] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Term 1 in "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]]}" message is greater than follower's term 0 - updating term 01:05:45,295 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 01:05:45,295 PM [test-pekko.actor.default-dispatcher-7] [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]]} 01:05:45,295 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 01:05:45,295 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:05:45,295 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 01:05:45,295 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 01:05:45,295 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 01:05:45,295 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 01:05:45,295 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 01:05:45,295 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 01:05:45,295 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 4.464 ms 01:05:45,295 PM [test-pekko.actor.default-dispatcher-7] [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} 01:05:45,295 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 01:05:45,295 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 01:05:45,295 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 01:05:45,295 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 01:05:45,295 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 01:05:45,295 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 01:05:45,295 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 01:05:45,295 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 01:05:45,295 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 01:05:45,295 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 01:05:45,295 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 01:05:45,298 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 01:05:45,298 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 01:05:45,298 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 3.144 ms 01:05:45,298 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 2.560 μs 01:05:45,298 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 01:05:45,298 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c0916fd8@4a21b587} 01:05:45,298 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 01:05:45,299 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 01:05:45,299 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 01:05:45,299 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 01:05:45,299 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 633.6 μs 01:05:45,299 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 01:05:45,299 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 01:05:45,299 PM [test-pekko.actor.default-dispatcher-7] [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] 01:05:45,299 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 01:05:45,299 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 01:05:45,299 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 01:05:45,299 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 01:05:45,299 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 01:05:45,299 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d402400] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-4782382902155989443/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069A04529-11D7589D.tmp 01:05:45,299 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c0916fd8@4a21b587} 01:05:45,299 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 3.844 ms [WARN] [02/26/2026 13:05:45.299] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][02/26/2026 13:05:45.299] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 01:05:45,299 PM [test-pekko.actor.default-dispatcher-7] [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'. 01:05:45,303 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d402400] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-4782382902155989443/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069A04529-11D7589D.v1 01:05:45,303 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d402400] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-4782382902155989443/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069A04529-11D7589D.v1 01:05:45,303 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d402400] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4782382902155989443/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 01:05:45,303 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d402400] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4782382902155989443/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 01:05:45,304 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d402400] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4782382902155989443/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 01:05:45,304 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d402400] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2026-02-26T13:05:45.299325597Z, file=/tmp/junit-4782382902155989443/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069A04529-11D7589D.v1, size=555, entryCompress=NONE, stateCompress=NONE} 01:05:45,304 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d402400] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 01:05:45,304 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 01:05:45,304 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2026-02-26T13:05:45.299325597Z 01:05:45,304 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 01:05:45,304 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 5.224 ms 01:05:45,304 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 01:05:45,304 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 01:05:45,304 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 01:05:45,304 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 01:05:45,304 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 193.8 μs 01:05:45,304 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 01:05:45,304 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 01:05:45,394 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-4782382902155989443/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069A04529-11D7589D.v1 01:05:45,394 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4782382902155989443/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 01:05:45,394 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4782382902155989443/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 01:05:45,394 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4782382902155989443/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 01:05:45,394 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2026-02-26T13:05:45.299325597Z, file=/tmp/junit-4782382902155989443/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069A04529-11D7589D.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 01:05:45,396 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#1387604718] 01:05:45,397 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower469#1176808858] 01:05:45,398 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader470#509503497] 01:05:45,398 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 01:05:45,398 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#632,testCaptureSnapshotOnLastEntryInAppendEntries-writer-154]/waiting 01:05:45,398 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 93.93 ms 01:05:45,398 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 18.01 μs 01:05:45,398 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 01:05:45,398 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 01:05:45,398 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 01:05:45,398 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 01:05:45,399 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 01:05:45,405 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,406 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior471#-143536246] 01:05:45,407 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower472#-198833910] 01:05:45,408 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader473#1623689056] 01:05:45,411 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 01:05:45,411 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,412 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 01:05:45,412 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 01:05:45,413 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior474#758649119] 01:05:45,413 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower475#-1425542426] 01:05:45,413 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader476#-1158184042] 01:05:45,416 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 01:05:45,416 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,417 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 01:05:45,417 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]]} 01:05:45,417 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:05:45,418 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 01:05:45,418 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 01:05:45,418 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 01:05:45,418 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 01:05:45,418 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} 01:05:45,418 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 01:05:45,418 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 01:05:45,418 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 01:05:45,418 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#-1822732141] 01:05:45,419 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower478#-1227240646] 01:05:45,419 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader479#-2062378620] 01:05:45,422 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 01:05:45,422 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,423 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 01:05:45,424 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]]} 01:05:45,424 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 01:05:45,424 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} 01:05:45,424 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 01:05:45,424 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 01:05:45,425 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]]} 01:05:45,425 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 01:05:45,425 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} 01:05:45,425 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 01:05:45,426 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#-953949047] 01:05:45,426 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower481#1073006902] 01:05:45,426 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader482#-1540238721] 01:05:45,429 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,429 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior483#-1300591441] 01:05:45,430 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower484#-1936007339] 01:05:45,430 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader485#1233833217] 01:05:45,432 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 01:05:45,432 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,432 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 01:05:45,433 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]]} 01:05:45,433 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 01:05:45,433 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} 01:05:45,433 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 01:05:45,433 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 01:05:45,434 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]]} 01:05:45,434 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 01:05:45,434 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} 01:05:45,434 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 01:05:45,435 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]]} 01:05:45,435 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 01:05:45,435 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} 01:05:45,435 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 01:05:45,436 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior486#1586159709] 01:05:45,436 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower487#-1159241738] 01:05:45,436 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader488#-768611420] 01:05:45,439 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 01:05:45,439 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,440 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]]} 01:05:45,440 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:05:45,440 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 01:05:45,440 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 01:05:45,440 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 01:05:45,440 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 01:05:45,441 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} 01:05:45,441 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 01:05:45,441 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 01:05:45,441 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 01:05:45,441 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior489#-1534901812] 01:05:45,442 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower490#1813979689] 01:05:45,442 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader491#319722044] 01:05:45,445 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 01:05:45,445 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,446 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 01:05:45,447 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader494 01:05:45,447 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader494 01:05:45,448 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 01:05:45,448 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior492#939269943] 01:05:45,449 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower493#-243682038] 01:05:45,449 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader494#1802110887] 01:05:45,455 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 01:05:45,455 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,456 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 01:05:45,456 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]]} 01:05:45,457 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:05:45,457 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 01:05:45,457 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 01:05:45,457 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 01:05:45,457 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 01:05:45,457 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} 01:05:45,457 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 01:05:45,457 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 01:05:45,458 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 01:05:45,459 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior495#2035128899] 01:05:45,460 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower496#1350109988] 01:05:45,460 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader497#-1431209970] 01:05:45,464 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 01:05:45,464 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,465 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 01:05:45,465 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]]} 01:05:45,465 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 01:05:45,466 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} 01:05:45,466 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 01:05:45,466 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#-953545623] 01:05:45,467 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower499#-1841367882] 01:05:45,467 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader500#-1202119266] 01:05:45,470 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 01:05:45,473 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 01:05:45,473 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] [WARN] [02/26/2026 13:05:45.473] [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@5b1ac9b0 [INFO] [pekkoDeadLetter][02/26/2026 13:05:45.473] [test-pekko.actor.default-dispatcher-6] [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'. 01:05:45,473 PM [test-pekko.actor.default-dispatcher-11] [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'. 01:05:45,474 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 01:05:45,474 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 01:05:45,474 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 01:05:45,474 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 01:05:45,474 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 01:05:45,474 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 01:05:45,475 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 01:05:45,475 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 01:05:45,475 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 01:05:45,475 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/junit-16396388458414548152/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 01:05:45,477 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=0, votedFor=null 01:05:45,477 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=0} 01:05:45,478 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-16396388458414548152/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 01:05:45,478 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-16396388458414548152/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 01:05:45,478 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-16396388458414548152/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 01:05:45,478 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 01:05:45,478 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 01:05:45,478 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 01:05:45,478 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 01:05:45,478 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed in in 3.132 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 01:05:45,478 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed and can restore from snapshot 01:05:45,478 PM [test-pekko.actor.default-dispatcher-7] [INFO] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Term 1 in "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]]}" message is greater than follower's term 0 - updating term 01:05:45,480 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 01:05:45,480 PM [test-pekko.actor.default-dispatcher-7] [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]]} 01:05:45,480 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 01:05:45,480 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:05:45,480 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 01:05:45,480 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 01:05:45,480 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 01:05:45,480 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 01:05:45,480 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 01:05:45,480 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 01:05:45,480 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 01:05:45,480 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 01:05:45,480 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 5.502 ms 01:05:45,480 PM [test-pekko.actor.default-dispatcher-7] [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} 01:05:45,480 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 01:05:45,480 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 01:05:45,480 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 01:05:45,480 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 01:05:45,480 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 01:05:45,480 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 01:05:45,480 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 01:05:45,484 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 01:05:45,484 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 01:05:45,484 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 01:05:45,484 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c0916fd8@16233f4} 01:05:45,484 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 4.125 ms 01:05:45,484 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 01:05:45,484 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c0916fd8@16233f4} 01:05:45,484 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 1 synchronized callback(s) 01:05:45,484 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 5.810 μs 01:05:45,485 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 01:05:45,485 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 01:05:45,485 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 01:05:45,485 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 01:05:45,485 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 1.066 ms 01:05:45,485 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 01:05:45,485 PM [test-pekko.actor.default-dispatcher-7] [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] 01:05:45,486 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 01:05:45,486 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 01:05:45,486 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 01:05:45,486 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 01:05:45,486 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 01:05:45,486 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c0916fd8@16233f4} 01:05:45,486 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d30089] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-16396388458414548152/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069A04529-1CF8A5A4.tmp 01:05:45,486 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 5.417 ms [WARN] [02/26/2026 13:05:45.486] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] 01:05:45,486 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'. [INFO] [pekkoDeadLetter][02/26/2026 13:05:45.486] [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'. 01:05:45,488 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d30089] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-16396388458414548152/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069A04529-1CF8A5A4.v1 01:05:45,488 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d30089] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-16396388458414548152/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069A04529-1CF8A5A4.v1 01:05:45,488 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d30089] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-16396388458414548152/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 01:05:45,488 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d30089] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-16396388458414548152/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 01:05:45,488 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d30089] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-16396388458414548152/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 01:05:45,488 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d30089] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2026-02-26T13:05:45.486057380Z, file=/tmp/junit-16396388458414548152/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069A04529-1CF8A5A4.v1, size=539, entryCompress=NONE, stateCompress=NONE} 01:05:45,488 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d30089] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 01:05:45,488 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 01:05:45,488 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2026-02-26T13:05:45.486057380Z 01:05:45,488 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 01:05:45,488 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 01:05:45,488 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 3.030 ms 01:05:45,489 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 01:05:45,489 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 01:05:45,489 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 01:05:45,489 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 170.3 μs 01:05:45,489 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 01:05:45,489 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 01:05:45,630 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-16396388458414548152/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069A04529-1CF8A5A4.v1 01:05:45,630 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-16396388458414548152/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 01:05:45,630 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-16396388458414548152/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 01:05:45,630 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-16396388458414548152/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 01:05:45,631 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2026-02-26T13:05:45.486057380Z, file=/tmp/junit-16396388458414548152/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069A04529-1CF8A5A4.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 01:05:45,633 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#612207733] 01:05:45,635 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower502#1531159591] 01:05:45,635 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader503#1767128916] 01:05:45,635 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 01:05:45,635 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#635,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155]/waiting 01:05:45,642 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 153.2 ms 01:05:45,642 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 17.96 μs 01:05:45,642 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 01:05:45,642 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 01:05:45,642 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 01:05:45,642 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 01:05:45,642 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 01:05:45,647 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 01:05:45,648 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,649 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 01:05:45,649 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]]} 01:05:45,649 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 01:05:45,651 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} 01:05:45,651 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 01:05:45,651 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior504#550138371] 01:05:45,662 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower505#-915996595] 01:05:45,662 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader506#1607330925] 01:05:45,668 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 01:05:45,668 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,669 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 01:05:45,670 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 01:05:45,670 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 01:05:45,670 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 01:05:45,671 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 01:05:45,671 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#-1854572081] 01:05:45,682 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower508#728918980] 01:05:45,682 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader509#-351152093] 01:05:45,686 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 01:05:45,686 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,687 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 01:05:45,687 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]]} 01:05:45,688 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 01:05:45,688 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 01:05:45,688 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 01:05:45,688 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 01:05:45,688 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 01:05:45,688 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 01:05:45,688 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 01:05:45,688 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 01:05:45,688 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} 01:05:45,688 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 01:05:45,688 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 01:05:45,689 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 01:05:45,689 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 01:05:45,689 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 01:05:45,689 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 01:05:45,689 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 01:05:45,689 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 01:05:45,689 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 01:05:45,689 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 01:05:45,690 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior510#1021159792] 01:05:45,701 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower511#597526662] 01:05:45,701 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader512#-1701599559] 01:05:45,705 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 01:05:45,705 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,706 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 01:05:45,706 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 01:05:45,708 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#468219918] 01:05:45,718 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower514#260322030] 01:05:45,718 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader515#-1076034856] 01:05:45,722 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 01:05:45,722 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,723 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 01:05:45,723 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 01:05:45,723 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:05:45,723 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 01:05:45,724 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 01:05:45,725 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]]} 01:05:45,725 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 01:05:45,725 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:05:45,725 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 01:05:45,725 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 01:05:45,725 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 01:05:45,725 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 01:05:45,725 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} 01:05:45,726 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 01:05:45,726 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 01:05:45,726 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 01:05:45,726 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 01:05:45,727 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior516#-1938770201] 01:05:45,738 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower517#2038194296] 01:05:45,738 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518#340076765] 01:05:45,741 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 01:05:45,742 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,742 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 01:05:45,743 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]]} 01:05:45,743 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 01:05:45,744 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} 01:05:45,744 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 01:05:45,744 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 01:05:45,745 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]]} 01:05:45,745 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 01:05:45,746 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} 01:05:45,746 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 01:05:45,746 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 01:05:45,747 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]]} 01:05:45,747 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 01:05:45,748 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} 01:05:45,748 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 01:05:45,748 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior519#851924754] 01:05:45,759 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower520#773389436] 01:05:45,759 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader521#1465285607] 01:05:45,763 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 01:05:45,763 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,964 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.171.215:17355, Removed) 01:05:45,971 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 01:05:45,971 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 01:05:45,971 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 01:05:45,971 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 01:05:45,971 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior522#1802965487] 01:05:45,982 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower523#-195012049] 01:05:45,982 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader524#-1933710444] 01:05:45,990 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:45,990 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 01:05:46,242 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior525#-734366643] 01:05:46,254 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower526#-2058503144] 01:05:46,254 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader527#-1252896807] 01:05:46,261 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 01:05:46,263 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:46,265 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 01:05:46,265 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 01:05:46,266 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior528#-539198428] 01:05:46,267 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower529#-1084315215] 01:05:46,267 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader530#-949737085] 01:05:46,270 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 01:05:46,271 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:46,272 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]]} 01:05:46,272 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 01:05:46,272 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 01:05:46,272 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 01:05:46,272 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 01:05:46,272 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 01:05:46,272 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 01:05:46,272 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} 01:05:46,273 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 01:05:46,273 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 01:05:46,273 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 01:05:46,273 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 01:05:46,273 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 01:05:46,273 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 01:05:46,273 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 01:05:46,273 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 01:05:46,273 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 01:05:46,273 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 01:05:46,273 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 01:05:46,273 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 01:05:46,274 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior531#-75295769] 01:05:46,275 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower532#-1517121131] 01:05:46,275 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader533#1193543449] 01:05:46,278 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 01:05:46,278 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:46,279 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 01:05:46,279 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 01:05:46,279 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:05:46,279 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 01:05:46,280 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]]} 01:05:46,281 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} 01:05:46,281 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior534#-1571056376] 01:05:46,282 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower535#238998700] 01:05:46,282 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader536#794505430] 01:05:46,285 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 01:05:46,285 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:46,286 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 01:05:46,287 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]]} 01:05:46,287 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 01:05:46,287 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 01:05:46,288 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 01:05:46,288 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior537#-1520328752] 01:05:46,289 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower538#-2088402595] 01:05:46,289 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader539#1543329638] 01:05:46,292 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries 01:05:46,294 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 01:05:46,294 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [02/26/2026 13:05:46.294] [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@4816e596 [INFO] [pekkoDeadLetter][02/26/2026 13:05:46.294] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 01:05:46,295 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'. 01:05:46,295 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 01:05:46,295 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 01:05:46,295 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 01:05:46,295 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 01:05:46,296 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 01:05:46,296 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 01:05:46,296 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 01:05:46,296 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 01:05:46,296 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 01:05:46,296 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/junit-14051017887235959196/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 01:05:46,299 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=0, votedFor=null 01:05:46,299 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 01:05:46,299 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14051017887235959196/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 01:05:46,299 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14051017887235959196/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 01:05:46,299 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14051017887235959196/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 01:05:46,299 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 01:05:46,299 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 01:05:46,299 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 01:05:46,299 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 01:05:46,299 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 2.941 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 01:05:46,299 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and can restore from snapshot 01:05:46,300 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14051017887235959196/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 01:05:46,300 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14051017887235959196/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 01:05:46,300 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14051017887235959196/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 01:05:46,300 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 01:05:46,300 PM [test-pekko.actor.default-dispatcher-7] [INFO] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Term 1 in "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]]}" message is greater than follower's term 0 - updating term 01:05:46,301 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 01:05:46,301 PM [test-pekko.actor.default-dispatcher-7] [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]]} 01:05:46,301 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 01:05:46,301 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:05:46,301 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 01:05:46,301 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 01:05:46,301 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 01:05:46,301 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 01:05:46,301 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 01:05:46,301 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 01:05:46,301 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 01:05:46,301 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 01:05:46,301 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 5.201 ms 01:05:46,301 PM [test-pekko.actor.default-dispatcher-7] [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} 01:05:46,301 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 01:05:46,301 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 01:05:46,301 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 01:05:46,301 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 01:05:46,301 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 01:05:46,301 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 01:05:46,302 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 01:05:46,302 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 01:05:46,302 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 01:05:46,302 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 01:05:46,302 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 01:05:46,302 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 01:05:46,302 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 01:05:46,302 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 01:05:46,302 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 01:05:46,305 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 01:05:46,305 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 01:05:46,305 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 3.808 ms 01:05:46,305 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 2.840 μs 01:05:46,305 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 01:05:46,305 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c0916fd8@7a6aa2d8} 01:05:46,305 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 01:05:46,305 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c0916fd8@7a6aa2d8} 01:05:46,305 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 01:05:46,306 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 01:05:46,306 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 01:05:46,306 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 01:05:46,306 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 01:05:46,306 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 755.8 μs 01:05:46,306 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 01:05:46,306 PM [test-pekko.actor.default-dispatcher-7] [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] 01:05:46,306 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 01:05:46,306 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 01:05:46,306 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 01:05:46,306 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 01:05:46,306 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 01:05:46,306 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c0916fd8@7a6aa2d8} 01:05:46,306 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 4.644 ms 01:05:46,306 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d924969] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-14051017887235959196/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069A0452A-12476083.tmp [WARN] [02/26/2026 13:05:46.306] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][02/26/2026 13:05:46.307] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 01:05:46,307 PM [test-pekko.actor.default-dispatcher-7] [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'. 01:05:46,308 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d924969] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-14051017887235959196/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069A0452A-12476083.v1 01:05:46,308 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d924969] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-14051017887235959196/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069A0452A-12476083.v1 01:05:46,308 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d924969] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14051017887235959196/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 01:05:46,308 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d924969] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14051017887235959196/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 01:05:46,308 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d924969] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14051017887235959196/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 01:05:46,308 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d924969] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-02-26T13:05:46.306667651Z, file=/tmp/junit-14051017887235959196/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069A0452A-12476083.v1, size=573, entryCompress=NONE, stateCompress=NONE} 01:05:46,308 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d924969] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 01:05:46,309 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 01:05:46,309 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2026-02-26T13:05:46.306667651Z 01:05:46,309 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 01:05:46,309 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 01:05:46,309 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 2.682 ms 01:05:46,309 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 01:05:46,309 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 01:05:46,309 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 01:05:46,309 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 01:05:46,309 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 172.4 μs 01:05:46,309 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 01:05:46,451 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-14051017887235959196/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069A0452A-12476083.v1 01:05:46,452 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14051017887235959196/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 01:05:46,452 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14051017887235959196/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 01:05:46,452 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14051017887235959196/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 01:05:46,452 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-02-26T13:05:46.306667651Z, file=/tmp/junit-14051017887235959196/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069A0452A-12476083.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 01:05:46,453 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 01:05:46,454 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#638,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156]/waiting 01:05:46,454 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 145.4 ms 01:05:46,454 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 18.87 μs 01:05:46,455 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 01:05:46,455 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 01:05:46,455 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 01:05:46,455 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 01:05:46,455 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 01:05:46,455 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [02/26/2026 13:05:46.456] [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@3310f90e [INFO] [pekkoDeadLetter][02/26/2026 13:05:46.456] [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. [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'. 01:05:46,456 PM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 01:05:46,457 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 01:05:46,457 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 01:05:46,457 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 01:05:46,457 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 01:05:46,458 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 01:05:46,458 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 01:05:46,458 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 01:05:46,458 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 01:05:46,458 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 01:05:46,458 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 01:05:46,458 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-14051017887235959196/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069A0452A-12476083.v1 01:05:46,458 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14051017887235959196/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 01:05:46,458 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14051017887235959196/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 01:05:46,458 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14051017887235959196/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 01:05:46,458 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-02-26T13:05:46.306667651Z, file=/tmp/junit-14051017887235959196/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069A0452A-12476083.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 01:05:46,458 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2026-02-26T13:05:46.306667651Z 01:05:46,459 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 01:05:46,459 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 01:05:46,459 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 01:05:46,459 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 01:05:46,459 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 1.296 ms: last log index = 2, last log term = 1, napshot index = 2, snapshot term = 1, journal size = 0 01:05:46,459 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and cannot restore from snapshot 01:05:46,460 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior540#-744444584] 01:05:46,461 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower541#522758434] 01:05:46,461 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader542#1220282192] 01:05:46,461 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 01:05:46,461 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#641,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/waiting 01:05:46,461 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.365 ms 01:05:46,461 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 11.73 μs 01:05:46,461 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 01:05:46,462 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 01:05:46,462 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 01:05:46,462 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 01:05:46,462 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 01:05:46,466 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 01:05:46,466 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:46,767 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 01:05:46,897 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 01:05:47,147 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 01:05:47,348 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 01:05:47,348 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior543#-727042446] 01:05:47,359 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower544#-281800136] 01:05:47,359 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader545#1160832361] 01:05:47,364 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:05:47,365 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 01:05:47,365 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 01:05:47,365 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 01:05:47,365 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 01:05:47,366 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior546#592653194] 01:05:47,377 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower547#1084148657] 01:05:47,377 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader548#1473895198] [INFO] [02/26/2026 13:05:47.379] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 01:05:47,380 PM [test-pekko.actor.default-dispatcher-7] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [02/26/2026 13:05:47.380] [test-pekko.actor.default-dispatcher-11] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.215:17355) [INFO] [pekkoDeadLetter][02/26/2026 13:05:47.380] [test-pekko.actor.default-dispatcher-6] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#789381291] 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'. 01:05:47,381 PM [test-pekko.actor.default-dispatcher-6] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#789381291] 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'. 01:05:47,381 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.215:17355] - Exiting completed 01:05:47,381 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.215:17355] - Shutting down... 01:05:47,382 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.215:17355] - Successfully shut down [INFO] [02/26/2026 13:05:47.381] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.215:17355] - Exiting completed [INFO] [02/26/2026 13:05:47.381] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.215:17355] - Shutting down... [INFO] [02/26/2026 13:05:47.381] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.215:17355] - Successfully shut down [INFO] [02/26/2026 13:05:47.384] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.171.215:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [02/26/2026 13:05:47.385] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.171.215:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 01:05:47,385 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 01:05:47,385 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. 01:05:47,387 PM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [02/26/2026 13:05:47.387] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.215:17355/system/remoting-terminator] Remoting shut down. [DEBUG] [02/26/2026 13:05:47.387] [test-pekko.actor.internal-dispatcher-5] [EventStream] shutting down: StandardOutLogger