[DEBUG] [05/29/2026 05:18:28.938] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 05:18:28,938 AM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [05/29/2026 05:18:28.938] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [05/29/2026 05:18:28.938] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [05/29/2026 05:18:28.950] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.161:17355] with UID [-150628803999887716] 05:18:28,950 AM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.161:17355] with UID [-150628803999887716] [INFO] [05/29/2026 05:18:28.950] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.161:17355] - Starting up, Pekko version [1.2.1] ... 05:18:28,951 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.161:17355] - Starting up, Pekko version [1.2.1] ... [INFO] [05/29/2026 05:18:28.953] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.161:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [05/29/2026 05:18:28.953] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.161:17355] - Started up successfully 05:18:28,953 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.161:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 05:18:28,953 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.161:17355] - Started up successfully [INFO] [05/29/2026 05:18:28.954] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.161:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 05:18:28,964 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.161:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 05:18:28,964 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.161:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 05:18:28,964 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 [INFO] [05/29/2026 05:18:28.955] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.161:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 05:18:29,40 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 05:18:29,41 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 05:18:29,41 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior420#-1175582947] 05:18:29,52 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower421#31446316] 05:18:29,52 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader422#-874834800] 05:18:29,57 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:29,59 AM [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]]} 05:18:29,59 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:18:29,59 AM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 05:18:29,59 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 05:18:29,60 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 05:18:29,60 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 05:18:29,60 AM [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} 05:18:29,61 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 05:18:29,61 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 05:18:29,63 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 05:18:29,63 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:18:29,63 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 05:18:29,63 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior423#-460687620] 05:18:29,74 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower424#1949630251] 05:18:29,74 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader425#210298525] 05:18:29,78 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:29,80 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 05:18:29,81 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 05:18:29,82 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior426#724846471] 05:18:29,92 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower427#-1629226208] 05:18:29,92 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader428#-1418498138] 05:18:29,97 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:29,98 AM [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 05:18:29,99 AM [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 05:18:29,100 AM [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} 05:18:29,100 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 05:18:29,101 AM [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 05:18:29,102 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 05:18:29,102 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 05:18:29,102 AM [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. 05:18:29,102 AM [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 05:18:29,103 AM [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 05:18:29,103 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 05:18:29,103 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 05:18:29,104 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior429#-1098831478] 05:18:29,115 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower430#-1607351613] 05:18:29,115 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader431#244759308] 05:18:29,119 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:29,120 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:18:29,120 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:18:29,121 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:29,121 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 05:18:29,121 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 05:18:29,121 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 05:18:29,122 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 05:18:29,122 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 05:18:29,122 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior432#-138079204] 05:18:29,133 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower433#-6662286] 05:18:29,133 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader434#482643070] 05:18:29,137 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:29,138 AM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 05:18:29,139 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior435#-1828863694] 05:18:29,150 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower436#1852579725] 05:18:29,150 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader437#630160963] 05:18:29,153 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:29,154 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 05:18:29,155 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 05:18:29,155 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior438#-1457262649] 05:18:29,166 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower439#259027906] 05:18:29,166 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader440#855031050] 05:18:29,169 AM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 05:18:29,169 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:29,171 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 05:18:29,171 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:18:29,171 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 05:18:29,171 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 05:18:29,172 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 05:18:29,172 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 05:18:29,172 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 05:18:29,172 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 05:18:29,175 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 05:18:29,176 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior441#1081556282] 05:18:29,186 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower442#1298325232] 05:18:29,187 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader443#1266337270] 05:18:29,191 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 05:18:29,191 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:29,192 AM [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]]} 05:18:29,193 AM [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 05:18:29,193 AM [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} 05:18:29,193 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 05:18:29,194 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior444#-1725361643] 05:18:29,204 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower445#460913916] 05:18:29,205 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader446#183150196] 05:18:29,208 AM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 05:18:29,208 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:29,209 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 05:18:29,209 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:18:29,209 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 05:18:29,210 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 05:18:29,210 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 05:18:29,211 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 05:18:29,211 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 05:18:29,211 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 05:18:29,211 AM [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 05:18:29,212 AM [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]]} 05:18:29,212 AM [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 05:18:29,212 AM [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} 05:18:29,212 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 05:18:29,213 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior447#-1206421031] 05:18:29,223 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower448#400843471] 05:18:29,223 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader449#1710136599] 05:18:29,227 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:29,227 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 05:18:29,228 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior450#-1023259124] 05:18:29,239 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower451#548973296] 05:18:29,239 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader452#-1805417954] 05:18:29,242 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 05:18:29,242 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:29,242 AM [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 05:18:29,243 AM [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]]} 05:18:29,243 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:18:29,244 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 05:18:29,244 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 05:18:29,244 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 05:18:29,244 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 05:18:29,244 AM [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} 05:18:29,244 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:18:29,244 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 05:18:29,244 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 05:18:29,245 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior453#378259090] 05:18:29,256 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower454#525797847] 05:18:29,256 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader455#1571799091] 05:18:29,260 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 05:18:29,260 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:29,262 AM [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]]} 05:18:29,262 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:18:29,262 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 05:18:29,262 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 05:18:29,262 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 05:18:29,262 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 05:18:29,263 AM [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} 05:18:29,263 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:18:29,263 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 05:18:29,263 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 05:18:29,263 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:18:29,263 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 05:18:29,264 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 05:18:29,265 AM [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]]} 05:18:29,265 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 05:18:29,265 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 05:18:29,265 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 05:18:29,265 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 05:18:29,265 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 05:18:29,265 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 05:18:29,265 AM [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} 05:18:29,266 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 05:18:29,266 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 05:18:29,266 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 05:18:29,266 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 05:18:29,266 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#828466848] 05:18:29,277 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower457#1379516340] 05:18:29,277 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader458#686177533] 05:18:29,280 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 05:18:29,280 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:29,281 AM [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 05:18:29,281 AM [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 05:18:29,281 AM [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} 05:18:29,281 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 05:18:29,282 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#-671352988] 05:18:29,293 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower460#-529871571] 05:18:29,293 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader461#918038453] 05:18:29,297 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:29,300 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#-1778899001] 05:18:29,311 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower463#352194313] 05:18:29,311 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader464#-406242625] 05:18:29,315 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 05:18:29,315 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:29,315 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 05:18:29,316 AM [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 05:18:29,316 AM [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]]} 05:18:29,316 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:18:29,317 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 05:18:29,317 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 05:18:29,317 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 05:18:29,317 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 05:18:29,317 AM [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} 05:18:29,317 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:18:29,317 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 05:18:29,317 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 05:18:29,317 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 05:18:29,317 AM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 05:18:29,318 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#-1541973830] 05:18:29,328 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower466#-2109239739] 05:18:29,329 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader467#-593411975] 05:18:29,332 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries 05:18:29,335 AM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:18:29,336 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] [WARN] [05/29/2026 05:18:29.337] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@44a7b264 [INFO] [pekkoDeadLetter][05/29/2026 05:18:29.337] [test-pekko.actor.default-dispatcher-11] [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'. 05:18:29,337 AM [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'. 05:18:29,337 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 05:18:29,338 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 05:18:29,338 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 05:18:29,338 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 05:18:29,338 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 05:18:29,338 AM [test-pekko.actor.default-dispatcher-14] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 05:18:29,339 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 05:18:29,339 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/junit-7491515060236468912/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 05:18:29,340 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=0, votedFor=null 05:18:29,341 AM [test-pekko.actor.default-dispatcher-14] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 05:18:29,341 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7491515060236468912/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 05:18:29,341 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7491515060236468912/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 05:18:29,341 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7491515060236468912/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 05:18:29,341 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 05:18:29,341 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 05:18:29,341 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 05:18:29,341 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 05:18:29,341 AM [test-pekko.actor.default-dispatcher-14] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed in in 2.295 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 05:18:29,341 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed and can restore from snapshot 05:18:29,341 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: writer thread VirtualThread[#628,testCaptureSnapshotOnLastEntryInAppendEntries-writer-154]/runnable started 05:18:29,341 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 05:18:29,341 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 05:18:29,341 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7491515060236468912/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 05:18:29,341 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7491515060236468912/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 05:18:29,341 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7491515060236468912/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 05:18:29,341 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 05:18:29,342 AM [test-pekko.actor.default-dispatcher-14] [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 05:18:29,343 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:18:29,343 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 05:18:29,343 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 05:18:29,343 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 05:18:29,343 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 05:18:29,343 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 05:18:29,343 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 05:18:29,343 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 05:18:29,343 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 05:18:29,343 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 05:18:29,343 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 05:18:29,343 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 05:18:29,343 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 05:18:29,343 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 2.280 ms 05:18:29,343 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 05:18:29,343 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 05:18:29,343 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 05:18:29,343 AM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 05:18:29,343 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 05:18:29,343 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 05:18:29,343 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 05:18:29,343 AM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 05:18:29,344 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 05:18:29,355 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 05:18:29,355 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 05:18:29,355 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 11.59 ms 05:18:29,355 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 05:18:29,355 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 3.830 μs 05:18:29,355 AM [test-pekko.actor.default-dispatcher-14] [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/0x00000007c09334a8@5aa48a65} 05:18:29,355 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 05:18:29,355 AM [test-pekko.actor.default-dispatcher-14] [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] 05:18:29,355 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 05:18:29,355 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 05:18:29,355 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 05:18:29,355 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 147.7 μs 05:18:29,355 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 05:18:29,355 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 05:18:29,355 AM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 05:18:29,355 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 05:18:29,355 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 05:18:29,355 AM [test-pekko.actor.default-dispatcher-14] [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/0x00000007c09334a8@5aa48a65} 05:18:29,355 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d335905] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-7491515060236468912/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006A1921A5-15349F92.tmp 05:18:29,355 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 11.88 ms 05:18:29,355 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) [WARN] [05/29/2026 05:18:29.356] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][05/29/2026 05:18:29.356] [test-pekko.actor.default-dispatcher-6] [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'. 05:18:29,356 AM [test-pekko.actor.default-dispatcher-11] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 05:18:29,360 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d335905] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-7491515060236468912/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006A1921A5-15349F92.v1 05:18:29,360 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d335905] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-7491515060236468912/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006A1921A5-15349F92.v1 05:18:29,360 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d335905] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7491515060236468912/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 05:18:29,360 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d335905] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7491515060236468912/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 05:18:29,360 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d335905] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7491515060236468912/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 05:18:29,360 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d335905] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2026-05-29T05:18:29.355770258Z, file=/tmp/junit-7491515060236468912/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006A1921A5-15349F92.v1, size=555, entryCompress=NONE, stateCompress=NONE} 05:18:29,360 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d335905] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 05:18:29,360 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 05:18:29,360 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2026-05-29T05:18:29.355770258Z 05:18:29,361 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 05:18:29,361 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 05:18:29,361 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 5.352 ms 05:18:29,361 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 05:18:29,361 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 05:18:29,361 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 05:18:29,361 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 05:18:29,361 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 194.4 μs 05:18:29,361 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 05:18:29,443 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-7491515060236468912/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006A1921A5-15349F92.v1 05:18:29,443 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7491515060236468912/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 05:18:29,443 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7491515060236468912/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 05:18:29,443 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7491515060236468912/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 05:18:29,443 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2026-05-29T05:18:29.355770258Z, file=/tmp/junit-7491515060236468912/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006A1921A5-15349F92.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 05:18:29,445 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#-1540008623] 05:18:29,456 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower469#-1874767921] 05:18:29,456 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader470#-2091116287] 05:18:29,456 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 05:18:29,456 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#628,testCaptureSnapshotOnLastEntryInAppendEntries-writer-154]/waiting 05:18:29,456 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 95.48 ms 05:18:29,456 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 24.31 μs 05:18:29,456 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 05:18:29,457 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminated thread VirtualThread[#628,testCaptureSnapshotOnLastEntryInAppendEntries-writer-154]/terminated 05:18:29,457 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 05:18:29,457 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 05:18:29,457 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 05:18:29,457 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 05:18:29,460 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:29,461 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior471#-362610185] 05:18:29,472 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower472#-1923821911] 05:18:29,472 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader473#1282290078] 05:18:29,477 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 05:18:29,477 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:29,479 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 05:18:29,479 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 05:18:29,480 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior474#1425722891] 05:18:29,491 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower475#-18171375] 05:18:29,491 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader476#1707881209] 05:18:29,496 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 05:18:29,496 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:29,497 AM [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 05:18:29,497 AM [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]]} 05:18:29,498 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:18:29,498 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 05:18:29,498 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 05:18:29,498 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 05:18:29,498 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 05:18:29,498 AM [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} 05:18:29,498 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:18:29,498 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 05:18:29,498 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 05:18:29,499 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#-1375548547] 05:18:29,509 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower478#-1542386860] 05:18:29,509 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader479#-894900702] 05:18:29,514 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 05:18:29,514 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:29,515 AM [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 05:18:29,516 AM [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]]} 05:18:29,516 AM [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 05:18:29,516 AM [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} 05:18:29,517 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:18:29,517 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 05:18:29,517 AM [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]]} 05:18:29,518 AM [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 05:18:29,518 AM [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} 05:18:29,518 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 05:18:29,518 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#-1907873266] 05:18:29,529 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower481#-380595419] 05:18:29,529 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader482#-503698238] 05:18:29,533 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:29,533 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior483#1075174535] 05:18:29,544 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower484#893500486] 05:18:29,544 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader485#-799734283] 05:18:29,547 AM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 05:18:29,547 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:29,548 AM [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 05:18:29,548 AM [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]]} 05:18:29,548 AM [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 05:18:29,549 AM [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} 05:18:29,549 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:18:29,549 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 05:18:29,549 AM [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]]} 05:18:29,550 AM [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 05:18:29,550 AM [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} 05:18:29,550 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 05:18:29,551 AM [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]]} 05:18:29,551 AM [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 05:18:29,551 AM [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} 05:18:29,551 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 05:18:29,552 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior486#-1447706712] 05:18:29,563 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower487#2066724859] 05:18:29,563 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader488#-1857322323] 05:18:29,567 AM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 05:18:29,567 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:29,569 AM [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]]} 05:18:29,569 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:18:29,569 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 05:18:29,569 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 05:18:29,569 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 05:18:29,569 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 05:18:29,569 AM [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} 05:18:29,569 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 05:18:29,569 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 05:18:29,570 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 05:18:29,570 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior489#1123950601] 05:18:29,581 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower490#-1608756647] 05:18:29,581 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader491#729430925] 05:18:29,586 AM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 05:18:29,586 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:29,588 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 05:18:29,589 AM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader494 05:18:29,589 AM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader494 05:18:29,590 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 05:18:29,591 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior492#1750207555] 05:18:29,602 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower493#638924366] 05:18:29,602 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader494#138959957] 05:18:29,606 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 05:18:29,606 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:29,607 AM [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 05:18:29,607 AM [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]]} 05:18:29,608 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:18:29,608 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 05:18:29,608 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 05:18:29,608 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 05:18:29,608 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 05:18:29,608 AM [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} 05:18:29,608 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:18:29,608 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 05:18:29,608 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 05:18:29,609 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior495#654090102] 05:18:29,620 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower496#-821459584] 05:18:29,620 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader497#624881570] 05:18:29,623 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 05:18:29,624 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:29,624 AM [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 05:18:29,625 AM [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]]} 05:18:29,625 AM [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 05:18:29,626 AM [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} 05:18:29,626 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:18:29,627 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#350700954] 05:18:29,637 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower499#1760575696] 05:18:29,638 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader500#1286100044] 05:18:29,649 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 05:18:29,653 AM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 05:18:29,654 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] [WARN] [05/29/2026 05:18:29.654] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@4a570dd8 [INFO] [pekkoDeadLetter][05/29/2026 05:18:29.654] [test-pekko.actor.default-dispatcher-13] [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'. 05:18:29,654 AM [test-pekko.actor.default-dispatcher-14] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 05:18:29,655 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 05:18:29,655 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 05:18:29,655 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 05:18:29,656 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 05:18:29,656 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 05:18:29,656 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 05:18:29,656 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 05:18:29,656 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/junit-10387996677685488962/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 05:18:29,660 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=0, votedFor=null 05:18:29,660 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=0} 05:18:29,660 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10387996677685488962/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 05:18:29,660 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10387996677685488962/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 05:18:29,660 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10387996677685488962/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 05:18:29,660 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 05:18:29,660 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 05:18:29,660 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 05:18:29,660 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 05:18:29,660 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed in in 3.718 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 05:18:29,660 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed and can restore from snapshot 05:18:29,660 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 05:18:29,660 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 05:18:29,660 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: writer thread VirtualThread[#631,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155]/waiting started 05:18:29,663 AM [test-pekko.actor.default-dispatcher-11] [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 05:18:29,665 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 05:18:29,665 AM [test-pekko.actor.default-dispatcher-11] [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]]} 05:18:29,665 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 05:18:29,665 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 05:18:29,665 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 05:18:29,665 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 05:18:29,665 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 4.766 ms 05:18:29,665 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 05:18:29,665 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 05:18:29,665 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 05:18:29,665 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 05:18:29,665 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 05:18:29,665 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 05:18:29,665 AM [test-pekko.actor.default-dispatcher-11] [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} 05:18:29,665 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 05:18:29,665 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 05:18:29,665 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 05:18:29,665 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 05:18:29,665 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 05:18:29,665 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 05:18:29,665 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 05:18:29,668 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 05:18:29,668 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 3.274 ms 05:18:29,668 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 3 commands after 3.490 μs 05:18:29,668 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 05:18:29,668 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 05:18:29,669 AM [test-pekko.actor.default-dispatcher-11] [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/0x00000007c09334a8@3e06d91c} 05:18:29,669 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 2 synchronized callback(s) 05:18:29,670 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 05:18:29,670 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 3 completion(s) pending 05:18:29,670 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 3 commands in 1.518 ms 05:18:29,670 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 05:18:29,670 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 3 completion(s) 05:18:29,670 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 05:18:29,670 AM [test-pekko.actor.default-dispatcher-11] [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/0x00000007c09334a8@3e06d91c} 05:18:29,670 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 05:18:29,670 AM [test-pekko.actor.default-dispatcher-11] [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] 05:18:29,670 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 05:18:29,670 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 05:18:29,670 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 05:18:29,670 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d623599] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-10387996677685488962/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006A1921A5-27F913CD.tmp 05:18:29,671 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 05:18:29,671 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 05:18:29,671 AM [test-pekko.actor.default-dispatcher-11] [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/0x00000007c09334a8@3e06d91c} 05:18:29,671 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 5.347 ms [WARN] [05/29/2026 05:18:29.671] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][05/29/2026 05:18:29.671] [test-pekko.actor.default-dispatcher-14] [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'. 05:18:29,671 AM [test-pekko.actor.default-dispatcher-14] [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'. 05:18:29,672 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d623599] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-10387996677685488962/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006A1921A5-27F913CD.v1 05:18:29,672 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d623599] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-10387996677685488962/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006A1921A5-27F913CD.v1 05:18:29,673 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d623599] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10387996677685488962/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 05:18:29,673 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d623599] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10387996677685488962/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 05:18:29,673 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d623599] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10387996677685488962/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 05:18:29,673 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d623599] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2026-05-29T05:18:29.670634957Z, file=/tmp/junit-10387996677685488962/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006A1921A5-27F913CD.v1, size=539, entryCompress=NONE, stateCompress=NONE} 05:18:29,673 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d623599] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 05:18:29,673 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 05:18:29,673 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2026-05-29T05:18:29.670634957Z 05:18:29,673 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 05:18:29,673 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 05:18:29,673 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 3.182 ms 05:18:29,673 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 05:18:29,673 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 05:18:29,673 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 05:18:29,673 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 05:18:29,673 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 175.6 μs 05:18:29,673 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 05:18:29,814 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-10387996677685488962/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006A1921A5-27F913CD.v1 05:18:29,814 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10387996677685488962/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 05:18:29,814 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10387996677685488962/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 05:18:29,814 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10387996677685488962/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 05:18:29,814 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2026-05-29T05:18:29.670634957Z, file=/tmp/junit-10387996677685488962/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006A1921A5-27F913CD.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 05:18:29,816 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#-772001445] 05:18:29,827 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower502#-558563634] 05:18:29,827 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader503#-1432655259] 05:18:29,827 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 05:18:29,827 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#631,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155]/waiting 05:18:29,828 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 154.3 ms 05:18:29,828 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 19.05 μs 05:18:29,828 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 05:18:29,828 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminated thread VirtualThread[#631,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155]/terminated 05:18:29,828 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 05:18:29,828 AM [test-pekko.actor.default-dispatcher-14] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 05:18:29,828 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 05:18:29,828 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 05:18:29,832 AM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 05:18:29,832 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:29,833 AM [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 05:18:29,834 AM [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]]} 05:18:29,834 AM [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 05:18:29,835 AM [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} 05:18:29,835 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 05:18:29,836 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior504#649240884] 05:18:29,846 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower505#-1883604822] 05:18:29,846 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader506#-1594460226] 05:18:29,850 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 05:18:29,850 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:29,851 AM [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 05:18:29,852 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 05:18:29,852 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 05:18:29,852 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 05:18:29,852 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 05:18:29,853 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#885332507] 05:18:29,863 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower508#-1739881570] 05:18:29,864 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader509#-1863875762] 05:18:29,866 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 05:18:29,867 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:29,867 AM [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 05:18:29,868 AM [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]]} 05:18:29,868 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 05:18:29,868 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 05:18:29,868 AM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 05:18:29,869 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 05:18:29,869 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 05:18:29,869 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 05:18:29,869 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 05:18:29,869 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 05:18:29,869 AM [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} 05:18:29,869 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 05:18:29,869 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 05:18:29,869 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 05:18:29,869 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:18:29,870 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 05:18:29,870 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 05:18:29,870 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 05:18:29,870 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 05:18:29,870 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 05:18:29,870 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 05:18:29,870 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior510#1360209121] 05:18:29,881 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower511#-596911636] 05:18:29,881 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader512#-401066060] 05:18:29,885 AM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 05:18:29,885 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:29,886 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 05:18:29,886 AM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 05:18:29,887 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#1534935992] 05:18:29,897 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower514#-926860936] 05:18:29,898 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader515#-2111544327] 05:18:29,900 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 05:18:29,901 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:29,901 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 05:18:29,901 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:18:29,901 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 05:18:29,901 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 05:18:29,902 AM [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 05:18:29,903 AM [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]]} 05:18:29,903 AM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 05:18:29,903 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:18:29,903 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 05:18:29,903 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 05:18:29,903 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 05:18:29,903 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 05:18:29,903 AM [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} 05:18:29,903 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 05:18:29,904 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 05:18:29,904 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 05:18:29,904 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 05:18:29,905 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior516#-178603866] 05:18:29,915 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower517#207744355] 05:18:29,916 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518#1205935496] 05:18:29,919 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 05:18:29,919 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:29,920 AM [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 05:18:29,920 AM [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]]} 05:18:29,921 AM [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 05:18:29,921 AM [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} 05:18:29,921 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:18:29,921 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 05:18:29,922 AM [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]]} 05:18:29,922 AM [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 05:18:29,923 AM [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} 05:18:29,923 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 05:18:29,923 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 05:18:29,924 AM [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]]} 05:18:29,924 AM [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 05:18:29,925 AM [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} 05:18:29,925 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 05:18:29,925 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior519#-425309655] 05:18:29,936 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower520#-1053999424] 05:18:29,936 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader521#-307109906] 05:18:29,940 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 05:18:29,940 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:30,141 AM [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.161:17355, Removed) 05:18:30,141 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 05:18:30,141 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 05:18:30,141 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 05:18:30,141 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 05:18:30,142 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior522#1635918578] 05:18:30,152 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower523#1500359773] 05:18:30,153 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader524#889110950] 05:18:30,156 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:30,156 AM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 05:18:30,308 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior525#-41907072] 05:18:30,319 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower526#43445899] 05:18:30,319 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader527#-187316510] 05:18:30,323 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 05:18:30,323 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:30,329 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 05:18:30,329 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 05:18:30,330 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior528#-2028206299] 05:18:30,341 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower529#-1839752538] 05:18:30,341 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader530#-150933540] 05:18:30,344 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 05:18:30,345 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:30,345 AM [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]]} 05:18:30,346 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 05:18:30,346 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 05:18:30,346 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 05:18:30,346 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 05:18:30,346 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 05:18:30,346 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 05:18:30,346 AM [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} 05:18:30,346 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 05:18:30,346 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 05:18:30,346 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 05:18:30,346 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:18:30,346 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 05:18:30,346 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 05:18:30,346 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 05:18:30,346 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 05:18:30,346 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 05:18:30,346 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 05:18:30,347 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 05:18:30,347 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 05:18:30,347 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior531#825477269] 05:18:30,358 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower532#1912114707] 05:18:30,358 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader533#1477181933] 05:18:30,361 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 05:18:30,361 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:30,362 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 05:18:30,362 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:18:30,362 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 05:18:30,362 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 05:18:30,363 AM [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]]} 05:18:30,363 AM [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} 05:18:30,364 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior534#2135579232] 05:18:30,374 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower535#-764339164] 05:18:30,375 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader536#1514312360] 05:18:30,391 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 05:18:30,391 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:30,393 AM [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 05:18:30,394 AM [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]]} 05:18:30,394 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 05:18:30,394 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 05:18:30,394 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 05:18:30,395 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior537#-1754640793] 05:18:30,397 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower538#592478593] 05:18:30,397 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader539#774207310] 05:18:30,400 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries 05:18:30,403 AM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:18:30,404 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 05:18:30,404 AM [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'. [WARN] [05/29/2026 05:18:30.404] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@ced8b60 [INFO] [pekkoDeadLetter][05/29/2026 05:18:30.404] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 05:18:30,404 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 05:18:30,405 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 05:18:30,405 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 05:18:30,406 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 05:18:30,406 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 05:18:30,406 AM [test-pekko.actor.default-dispatcher-14] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 05:18:30,406 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 05:18:30,406 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/junit-1021274622093087456/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 05:18:30,409 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=0, votedFor=null 05:18:30,409 AM [test-pekko.actor.default-dispatcher-14] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 05:18:30,409 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-1021274622093087456/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 05:18:30,409 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-1021274622093087456/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 05:18:30,409 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-1021274622093087456/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 05:18:30,409 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 05:18:30,409 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 05:18:30,409 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 05:18:30,409 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 05:18:30,409 AM [test-pekko.actor.default-dispatcher-14] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 3.092 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 05:18:30,409 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and can restore from snapshot 05:18:30,410 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: writer thread VirtualThread[#634,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156]/runnable started 05:18:30,410 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 05:18:30,410 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 05:18:30,410 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-1021274622093087456/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 05:18:30,410 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-1021274622093087456/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 05:18:30,410 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-1021274622093087456/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 05:18:30,410 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 05:18:30,410 AM [test-pekko.actor.default-dispatcher-14] [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 05:18:30,413 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:18:30,413 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 05:18:30,413 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 05:18:30,413 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 05:18:30,413 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 05:18:30,413 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 05:18:30,414 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 05:18:30,414 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 05:18:30,414 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 05:18:30,414 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 05:18:30,414 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 05:18:30,414 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 4.018 ms 05:18:30,414 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 05:18:30,414 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 05:18:30,414 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 05:18:30,414 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 05:18:30,414 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 05:18:30,414 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 05:18:30,414 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 05:18:30,414 AM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 05:18:30,414 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 05:18:30,414 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 05:18:30,414 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 05:18:30,414 AM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 05:18:30,414 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 05:18:30,414 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 05:18:30,414 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 05:18:30,414 AM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 05:18:30,414 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 05:18:30,430 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 05:18:30,430 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 05:18:30,430 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 05:18:30,430 AM [test-pekko.actor.default-dispatcher-14] [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/0x00000007c09334a8@4b817fe2} 05:18:30,430 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 16.00 ms 05:18:30,430 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 05:18:30,430 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 18.68 μs 05:18:30,432 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 05:18:30,432 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 05:18:30,432 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 2.255 ms 05:18:30,432 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 05:18:30,432 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 05:18:30,432 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 05:18:30,432 AM [test-pekko.actor.default-dispatcher-14] [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/0x00000007c09334a8@4b817fe2} 05:18:30,432 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 05:18:30,433 AM [test-pekko.actor.default-dispatcher-14] [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] 05:18:30,433 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 05:18:30,433 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 05:18:30,433 AM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 05:18:30,433 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 05:18:30,433 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 05:18:30,433 AM [test-pekko.actor.default-dispatcher-14] [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/0x00000007c09334a8@4b817fe2} 05:18:30,433 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d313960] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-1021274622093087456/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A1921A6-19D22C38.tmp 05:18:30,433 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 18.95 ms 05:18:30,434 AM [test-pekko.actor.default-dispatcher-11] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [WARN] [05/29/2026 05:18:30.434] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][05/29/2026 05:18:30.434] [test-pekko.actor.default-dispatcher-11] [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'. 05:18:30,435 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d313960] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-1021274622093087456/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A1921A6-19D22C38.v1 05:18:30,435 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d313960] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-1021274622093087456/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A1921A6-19D22C38.v1 05:18:30,435 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d313960] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-1021274622093087456/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 05:18:30,435 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d313960] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-1021274622093087456/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 05:18:30,436 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d313960] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-1021274622093087456/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 05:18:30,436 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d313960] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-05-29T05:18:30.433204280Z, file=/tmp/junit-1021274622093087456/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A1921A6-19D22C38.v1, size=573, entryCompress=NONE, stateCompress=NONE} 05:18:30,436 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d313960] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 05:18:30,436 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 05:18:30,436 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2026-05-29T05:18:30.433204280Z 05:18:30,436 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 05:18:30,436 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 05:18:30,436 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.679 ms 05:18:30,436 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 05:18:30,436 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 05:18:30,436 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 05:18:30,436 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 05:18:30,436 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 118.9 μs 05:18:30,436 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 05:18:30,563 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-1021274622093087456/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A1921A6-19D22C38.v1 05:18:30,563 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-1021274622093087456/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 05:18:30,563 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-1021274622093087456/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 05:18:30,563 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-1021274622093087456/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 05:18:30,563 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-05-29T05:18:30.433204280Z, file=/tmp/junit-1021274622093087456/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A1921A6-19D22C38.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 05:18:30,567 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 05:18:30,579 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#634,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156]/waiting 05:18:30,579 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 143.3 ms 05:18:30,580 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 29.51 μs 05:18:30,580 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 05:18:30,580 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminated thread VirtualThread[#634,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156]/terminated 05:18:30,580 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 05:18:30,580 AM [test-pekko.actor.default-dispatcher-14] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 05:18:30,580 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 05:18:30,580 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 05:18:30,581 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 05:18:30,584 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 05:18:30,584 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor [WARN] [05/29/2026 05:18:30.584] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@f5515ca 05:18:30,584 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor [INFO] [pekkoDeadLetter][05/29/2026 05:18:30.584] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 05:18:30,584 AM [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'. 05:18:30,586 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 05:18:30,587 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 05:18:30,587 AM [test-pekko.actor.default-dispatcher-14] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 05:18:30,587 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 05:18:30,587 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:18:30,587 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-1021274622093087456/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A1921A6-19D22C38.v1 05:18:30,587 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-1021274622093087456/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 05:18:30,587 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-1021274622093087456/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 05:18:30,587 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-1021274622093087456/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 05:18:30,587 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-05-29T05:18:30.433204280Z, file=/tmp/junit-1021274622093087456/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A1921A6-19D22C38.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 05:18:30,587 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2026-05-29T05:18:30.433204280Z 05:18:30,587 AM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 05:18:30,589 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 05:18:30,589 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 05:18:30,589 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 05:18:30,589 AM [test-pekko.actor.default-dispatcher-14] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 1.964 ms: last log index = 2, last log term = 1, napshot index = 2, snapshot term = 1, journal size = 0 05:18:30,589 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and cannot restore from snapshot 05:18:30,589 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: writer thread VirtualThread[#637,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/runnable started 05:18:30,589 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 05:18:30,589 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 05:18:30,590 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior540#441521105] 05:18:30,601 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower541#1152975108] 05:18:30,602 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader542#1096126515] 05:18:30,602 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 05:18:30,602 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#637,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/waiting 05:18:30,602 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 13.01 ms 05:18:30,602 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 19.37 μs 05:18:30,602 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 05:18:30,602 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminated thread VirtualThread[#637,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/terminated 05:18:30,602 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 05:18:30,602 AM [test-pekko.actor.default-dispatcher-14] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 05:18:30,602 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 05:18:30,602 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 05:18:30,607 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 05:18:30,608 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:30,908 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 05:18:31,38 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 05:18:31,289 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 05:18:31,489 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 05:18:31,489 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior543#-414630380] 05:18:31,500 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower544#-1081851631] 05:18:31,501 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader545#829483937] 05:18:31,505 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:31,506 AM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 05:18:31,506 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 05:18:31,507 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 05:18:31,507 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 05:18:31,508 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior546#1055900393] 05:18:31,519 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower547#-1110728163] 05:18:31,519 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader548#1173892214] [INFO] [05/29/2026 05:18:31.521] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 05:18:31,521 AM [test-pekko.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [05/29/2026 05:18:31.522] [test-pekko.actor.default-dispatcher-6] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.161:17355) [INFO] [pekkoDeadLetter][05/29/2026 05:18:31.522] [test-pekko.actor.default-dispatcher-14] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1605495655] 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'. 05:18:31,522 AM [test-pekko.actor.default-dispatcher-6] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1605495655] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [05/29/2026 05:18:31.523] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.161:17355] - Exiting completed [INFO] [05/29/2026 05:18:31.523] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.161:17355] - Shutting down... [INFO] [05/29/2026 05:18:31.523] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.161:17355] - Successfully shut down 05:18:31,523 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.161:17355] - Exiting completed 05:18:31,524 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.161:17355] - Shutting down... 05:18:31,524 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.161:17355] - Successfully shut down [INFO] [05/29/2026 05:18:31.526] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.161:17355/system/remoting-terminator] Shutting down remote daemon. 05:18:31,527 AM [test-pekko.actor.default-dispatcher-13] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [05/29/2026 05:18:31.526] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.161:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 05:18:31,527 AM [test-pekko.actor.default-dispatcher-13] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [05/29/2026 05:18:31.529] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.161:17355/system/remoting-terminator] Remoting shut down. 05:18:31,529 AM [test-pekko.actor.default-dispatcher-14] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [05/29/2026 05:18:31.529] [test-pekko.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger