[DEBUG] [01/10/2026 10:29:30.977] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 10:29:30,978 AM [test-pekko.actor.default-dispatcher-4] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [01/10/2026 10:29:30.978] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [01/10/2026 10:29:30.978] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [01/10/2026 10:29:30.992] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.178:17355] with UID [-7636589465337080312] [INFO] [01/10/2026 10:29:30.992] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.178:17355] - Starting up, Pekko version [1.2.1] ... 10:29:30,993 AM [test-pekko.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.178:17355] with UID [-7636589465337080312] 10:29:30,993 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.178:17355] - Starting up, Pekko version [1.2.1] ... [INFO] [01/10/2026 10:29:30.995] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.178:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [01/10/2026 10:29:30.995] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.178:17355] - Started up successfully 10:29:30,995 AM [test-pekko.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.178:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 10:29:30,995 AM [test-pekko.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.178:17355] - Started up successfully [INFO] [01/10/2026 10:29:30.996] [test-pekko.actor.internal-dispatcher-7] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.178:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 10:29:30,996 AM [test-pekko.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.178:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [01/10/2026 10:29:30.996] [test-pekko.actor.internal-dispatcher-7] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.178:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 10:29:30,996 AM [test-pekko.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.178:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 10:29:31,8 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:31,108 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 10:29:31,109 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 10:29:31,109 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior420#-290266009] 10:29:31,121 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower421#-1373264994] 10:29:31,121 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader422#2026579267] 10:29:31,125 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:31,128 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]]} 10:29:31,128 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:29:31,128 AM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 10:29:31,128 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 10:29:31,129 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 10:29:31,129 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 10:29:31,129 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} 10:29:31,130 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 10:29:31,130 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 10:29:31,132 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 10:29:31,132 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:29:31,132 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 10:29:31,133 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior423#92149432] 10:29:31,143 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower424#492428813] 10:29:31,143 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader425#1199820780] 10:29:31,147 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:31,149 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 10:29:31,149 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 10:29:31,149 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior426#-522715178] 10:29:31,160 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower427#574249241] 10:29:31,160 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader428#-763215365] 10:29:31,164 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:31,164 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 10:29:31,165 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 10:29:31,166 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} 10:29:31,166 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 10:29:31,167 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 10:29:31,168 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 10:29:31,168 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 10:29:31,168 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. 10:29:31,168 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 10:29:31,169 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 10:29:31,170 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 10:29:31,170 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 10:29:31,171 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior429#1141457459] 10:29:31,182 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower430#-1482713852] 10:29:31,182 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader431#1652915843] 10:29:31,184 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:31,185 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:29:31,185 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:29:31,185 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:31,185 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 10:29:31,186 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 10:29:31,186 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 10:29:31,186 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 10:29:31,186 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 10:29:31,186 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior432#-33844073] 10:29:31,197 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower433#-664179255] 10:29:31,197 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader434#303701869] 10:29:31,201 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:31,202 AM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 10:29:31,204 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior435#-2096258773] 10:29:31,216 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower436#-1142355040] 10:29:31,216 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader437#-678759904] 10:29:31,220 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:31,221 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 10:29:31,221 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 10:29:31,222 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior438#1192742705] 10:29:31,232 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower439#847085196] 10:29:31,233 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader440#-1973266138] 10:29:31,236 AM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 10:29:31,236 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:31,239 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 10:29:31,239 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:29:31,239 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:29:31,239 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 10:29:31,240 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 10:29:31,240 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 10:29:31,240 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 10:29:31,240 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 10:29:31,243 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 10:29:31,244 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior441#1199217354] 10:29:31,255 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower442#-208736494] 10:29:31,255 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader443#-901812106] 10:29:31,258 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 10:29:31,258 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:31,260 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]]} 10:29:31,260 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 10:29:31,261 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} 10:29:31,261 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 10:29:31,261 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior444#1396740159] 10:29:31,272 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower445#-1992860292] 10:29:31,272 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader446#1655952618] 10:29:31,276 AM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 10:29:31,276 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:31,277 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 10:29:31,277 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:29:31,277 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:29:31,277 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 10:29:31,278 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 10:29:31,278 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 10:29:31,278 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 10:29:31,279 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 10:29:31,279 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 10:29:31,280 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]]} 10:29:31,280 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 10:29:31,281 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} 10:29:31,281 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 10:29:31,281 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior447#-234034872] 10:29:31,292 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower448#-1504985508] 10:29:31,292 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader449#-811294365] 10:29:31,296 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:31,297 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 10:29:31,298 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior450#-2012312115] 10:29:31,309 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower451#-200565217] 10:29:31,309 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader452#807708095] 10:29:31,313 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 10:29:31,313 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:31,314 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 10:29:31,314 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]]} 10:29:31,315 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:29:31,315 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 10:29:31,315 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 10:29:31,315 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 10:29:31,315 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 10:29:31,315 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} 10:29:31,315 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:29:31,315 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 10:29:31,316 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 10:29:31,317 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior453#-235519480] 10:29:31,327 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower454#744875630] 10:29:31,327 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader455#2040504672] 10:29:31,331 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 10:29:31,331 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:31,332 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]]} 10:29:31,332 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:29:31,332 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 10:29:31,332 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 10:29:31,332 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 10:29:31,333 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 10:29:31,333 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} 10:29:31,333 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:29:31,333 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 10:29:31,333 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 10:29:31,333 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:29:31,333 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 10:29:31,333 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 10:29:31,334 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]]} 10:29:31,334 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 10:29:31,334 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 10:29:31,335 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 10:29:31,335 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 10:29:31,335 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 10:29:31,335 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 10:29:31,335 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} 10:29:31,335 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 10:29:31,335 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 10:29:31,335 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 10:29:31,335 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 10:29:31,336 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#-699195657] 10:29:31,346 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower457#425194546] 10:29:31,346 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader458#-1947350064] 10:29:31,349 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 10:29:31,350 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:31,351 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 10:29:31,351 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 10:29:31,352 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} 10:29:31,352 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 10:29:31,353 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#405956721] 10:29:31,363 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower460#-1294503318] 10:29:31,363 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader461#980987661] 10:29:31,367 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:31,370 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#177900152] 10:29:31,381 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower463#-1249246880] 10:29:31,381 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader464#1490793014] 10:29:31,384 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 10:29:31,385 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:31,385 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 10:29:31,385 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 10:29:31,386 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]]} 10:29:31,386 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:29:31,386 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 10:29:31,386 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 10:29:31,386 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 10:29:31,386 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 10:29:31,387 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} 10:29:31,387 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:29:31,387 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 10:29:31,387 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 10:29:31,387 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 10:29:31,387 AM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 10:29:31,388 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#1961838702] 10:29:31,399 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower466#-735649217] 10:29:31,399 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader467#-1420224397] 10:29:31,405 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries 10:29:31,408 AM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:29:31,408 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 10:29:31,409 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 10:29:31,409 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:29:31,409 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:29:31,410 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 [WARN] [01/10/2026 10:29:31.410] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@30e4e41b 10:29:31,410 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 10:29:31,410 AM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 10:29:31,410 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 10:29:31,410 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/junit-17438766810274791207/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 10:29:31,410 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 10:29:31,410 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands [INFO] [pekkoDeadLetter][01/10/2026 10:29:31.410] [test-pekko.actor.default-dispatcher-4] [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'. 10:29:31,411 AM [test-pekko.actor.default-dispatcher-4] [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'. 10:29:31,412 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=0, votedFor=null 10:29:31,412 AM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 10:29:31,412 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17438766810274791207/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:29:31,412 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17438766810274791207/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:29:31,412 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17438766810274791207/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:29:31,412 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 10:29:31,412 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 10:29:31,412 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 10:29:31,412 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 10:29:31,412 AM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed in in 2.113 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 10:29:31,412 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed and can restore from snapshot 10:29:31,413 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17438766810274791207/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:29:31,413 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17438766810274791207/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:29:31,413 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17438766810274791207/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:29:31,413 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 10:29:31,413 AM [test-pekko.actor.default-dispatcher-5] [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 10:29:31,414 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:29:31,414 AM [test-pekko.actor.default-dispatcher-5] [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]]} 10:29:31,414 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 10:29:31,415 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:29:31,415 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 10:29:31,415 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 10:29:31,415 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 10:29:31,415 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 10:29:31,415 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 10:29:31,415 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 10:29:31,415 AM [test-pekko.actor.default-dispatcher-5] [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} 10:29:31,415 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 10:29:31,415 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 4.210 ms 10:29:31,415 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 10:29:31,415 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 10:29:31,415 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 10:29:31,415 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 10:29:31,415 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 10:29:31,415 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 10:29:31,415 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 10:29:31,415 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 10:29:31,415 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 10:29:31,415 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 10:29:31,419 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 10:29:31,419 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 10:29:31,419 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 3.929 ms 10:29:31,419 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 10:29:31,419 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 4.240 μs 10:29:31,419 AM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c0914930@1217d22e} 10:29:31,419 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 10:29:31,419 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 10:29:31,419 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 10:29:31,419 AM [test-pekko.actor.default-dispatcher-5] [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] 10:29:31,419 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 116.0 μs 10:29:31,419 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 10:29:31,419 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 10:29:31,419 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 10:29:31,419 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 10:29:31,419 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 10:29:31,419 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 10:29:31,419 AM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c0914930@1217d22e} 10:29:31,419 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d73095] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-17438766810274791207/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069622A0B-18FE6D3F.tmp 10:29:31,419 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 4.153 ms 10:29:31,419 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) [WARN] [01/10/2026 10:29:31.419] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][01/10/2026 10:29:31.419] [test-pekko.actor.default-dispatcher-5] [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'. 10:29:31,419 AM [test-pekko.actor.default-dispatcher-5] [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'. 10:29:31,424 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d73095] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-17438766810274791207/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069622A0B-18FE6D3F.v1 10:29:31,424 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d73095] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-17438766810274791207/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069622A0B-18FE6D3F.v1 10:29:31,424 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d73095] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17438766810274791207/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:29:31,424 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d73095] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17438766810274791207/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:29:31,424 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d73095] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17438766810274791207/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:29:31,425 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d73095] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2026-01-10T10:29:31.419327295Z, file=/tmp/junit-17438766810274791207/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069622A0B-18FE6D3F.v1, size=555, entryCompress=NONE, stateCompress=NONE} 10:29:31,425 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d73095] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 10:29:31,426 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 10:29:31,427 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2026-01-10T10:29:31.419327295Z 10:29:31,427 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 10:29:31,427 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 10:29:31,427 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 7.869 ms 10:29:31,427 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 10:29:31,427 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 10:29:31,427 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 10:29:31,427 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 10:29:31,427 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 263.1 μs 10:29:31,427 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 10:29:31,514 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-17438766810274791207/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069622A0B-18FE6D3F.v1 10:29:31,514 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17438766810274791207/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:29:31,514 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17438766810274791207/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:29:31,514 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17438766810274791207/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:29:31,514 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2026-01-10T10:29:31.419327295Z, file=/tmp/junit-17438766810274791207/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069622A0B-18FE6D3F.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 10:29:31,517 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#-1149293734] 10:29:31,528 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower469#1134012907] 10:29:31,528 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader470#1263827622] 10:29:31,528 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 10:29:31,528 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#623,testCaptureSnapshotOnLastEntryInAppendEntries-writer-154]/waiting 10:29:31,529 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 101.6 ms 10:29:31,529 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 16.13 μs 10:29:31,529 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 10:29:31,529 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:29:31,529 AM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:29:31,529 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 10:29:31,529 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 10:29:31,536 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:31,538 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior471#-1279085014] 10:29:31,548 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower472#-521330037] 10:29:31,549 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader473#307196935] 10:29:31,554 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 10:29:31,555 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:31,556 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 10:29:31,556 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 10:29:31,557 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior474#1511575247] 10:29:31,568 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower475#-506283667] 10:29:31,568 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader476#-567637245] 10:29:31,572 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 10:29:31,572 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:31,573 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 10:29:31,574 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]]} 10:29:31,574 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:29:31,574 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 10:29:31,574 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 10:29:31,574 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 10:29:31,575 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 10:29:31,575 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} 10:29:31,575 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:29:31,575 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 10:29:31,575 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 10:29:31,576 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#2142084907] 10:29:31,587 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower478#468241980] 10:29:31,587 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader479#-983687501] 10:29:31,591 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 10:29:31,591 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:31,592 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 10:29:31,592 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]]} 10:29:31,593 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 10:29:31,593 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} 10:29:31,593 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:29:31,593 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 10:29:31,594 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]]} 10:29:31,594 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 10:29:31,595 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} 10:29:31,595 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 10:29:31,596 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#-838927728] 10:29:31,606 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower481#-626444511] 10:29:31,606 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader482#53547886] 10:29:31,610 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:31,611 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior483#621898677] 10:29:31,621 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower484#-705249037] 10:29:31,621 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader485#-1863502058] 10:29:31,625 AM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 10:29:31,625 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:31,626 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 10:29:31,627 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]]} 10:29:31,627 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 10:29:31,628 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} 10:29:31,628 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:29:31,628 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 10:29:31,629 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]]} 10:29:31,629 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 10:29:31,629 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} 10:29:31,630 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 10:29:31,631 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]]} 10:29:31,631 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 10:29:31,631 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} 10:29:31,632 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 10:29:31,632 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior486#-688465759] 10:29:31,643 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower487#-1092742403] 10:29:31,643 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader488#-1327574407] 10:29:31,645 AM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 10:29:31,645 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:31,646 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]]} 10:29:31,646 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:29:31,646 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 10:29:31,646 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 10:29:31,646 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 10:29:31,646 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 10:29:31,646 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} 10:29:31,646 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 10:29:31,646 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 10:29:31,646 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 10:29:31,647 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior489#-1522599180] 10:29:31,657 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower490#-1497308710] 10:29:31,657 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader491#-2009484789] 10:29:31,659 AM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 10:29:31,660 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:31,660 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 10:29:31,661 AM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader494 10:29:31,661 AM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader494 10:29:31,662 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 10:29:31,663 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior492#-1524938297] 10:29:31,673 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower493#191570094] 10:29:31,673 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader494#-1133990906] 10:29:31,675 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 10:29:31,675 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:31,676 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 10:29:31,676 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]]} 10:29:31,676 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:29:31,676 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 10:29:31,676 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 10:29:31,676 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 10:29:31,676 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 10:29:31,676 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} 10:29:31,676 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:29:31,676 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 10:29:31,677 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 10:29:31,677 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior495#-2069760633] 10:29:31,687 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower496#-717750225] 10:29:31,687 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader497#1987959364] 10:29:31,689 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 10:29:31,689 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:31,690 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 10:29:31,690 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]]} 10:29:31,690 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 10:29:31,690 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} 10:29:31,690 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:29:31,691 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#304774730] 10:29:31,701 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower499#121516413] 10:29:31,701 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader500#-327301021] 10:29:31,703 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 10:29:31,706 AM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 10:29:31,706 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 10:29:31,707 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 10:29:31,707 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 10:29:31,707 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor [WARN] [01/10/2026 10:29:31.707] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@5e605a11 [INFO] [pekkoDeadLetter][01/10/2026 10:29:31.707] [test-pekko.actor.default-dispatcher-11] [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'. 10:29:31,707 AM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:29:31,707 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 10:29:31,708 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 10:29:31,708 AM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 10:29:31,708 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 10:29:31,708 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 10:29:31,708 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 10:29:31,708 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/junit-14245244683393566708/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 10:29:31,711 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=0, votedFor=null 10:29:31,711 AM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=0} 10:29:31,711 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-14245244683393566708/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 10:29:31,711 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-14245244683393566708/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 10:29:31,711 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-14245244683393566708/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 10:29:31,711 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 10:29:31,711 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 10:29:31,711 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 10:29:31,711 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 10:29:31,711 AM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed in in 3.545 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 10:29:31,711 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed and can restore from snapshot 10:29:31,712 AM [test-pekko.actor.default-dispatcher-12] [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 10:29:31,713 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 10:29:31,713 AM [test-pekko.actor.default-dispatcher-12] [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]]} 10:29:31,713 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 10:29:31,713 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:29:31,713 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 10:29:31,713 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 10:29:31,713 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 10:29:31,713 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 10:29:31,713 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 10:29:31,713 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 10:29:31,714 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 10:29:31,714 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 10:29:31,713 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 5.619 ms 10:29:31,714 AM [test-pekko.actor.default-dispatcher-12] [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} 10:29:31,714 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 10:29:31,714 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 10:29:31,714 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 10:29:31,714 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 10:29:31,714 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 10:29:31,714 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 10:29:31,714 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 10:29:31,718 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 10:29:31,718 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 10:29:31,718 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 4.193 ms 10:29:31,718 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 10:29:31,718 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 4.141 μs 10:29:31,718 AM [test-pekko.actor.default-dispatcher-12] [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/0x00000007c0914930@3f0a7614} 10:29:31,718 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 10:29:31,718 AM [test-pekko.actor.default-dispatcher-12] [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/0x00000007c0914930@3f0a7614} 10:29:31,718 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 1 synchronized callback(s) 10:29:31,719 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 10:29:31,719 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 10:29:31,719 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 10:29:31,719 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 10:29:31,719 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 819.8 μs 10:29:31,719 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 10:29:31,719 AM [test-pekko.actor.default-dispatcher-12] [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] 10:29:31,719 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 10:29:31,719 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 10:29:31,719 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 10:29:31,719 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 10:29:31,719 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 10:29:31,719 AM [test-pekko.actor.default-dispatcher-12] [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/0x00000007c0914930@3f0a7614} 10:29:31,719 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 5.165 ms 10:29:31,719 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d562043] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-14245244683393566708/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069622A0B-2ADEB9A3.tmp [WARN] [01/10/2026 10:29:31.719] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][01/10/2026 10:29:31.719] [test-pekko.actor.default-dispatcher-5] [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'. 10:29:31,719 AM [test-pekko.actor.default-dispatcher-5] [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'. 10:29:31,721 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d562043] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-14245244683393566708/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069622A0B-2ADEB9A3.v1 10:29:31,721 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d562043] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-14245244683393566708/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069622A0B-2ADEB9A3.v1 10:29:31,721 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d562043] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-14245244683393566708/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 10:29:31,721 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d562043] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-14245244683393566708/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 10:29:31,721 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d562043] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-14245244683393566708/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 10:29:31,721 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d562043] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2026-01-10T10:29:31.719239587Z, file=/tmp/junit-14245244683393566708/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069622A0B-2ADEB9A3.v1, size=539, entryCompress=NONE, stateCompress=NONE} 10:29:31,721 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d562043] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 10:29:31,721 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 10:29:31,721 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2026-01-10T10:29:31.719239587Z 10:29:31,721 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 10:29:31,721 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 10:29:31,721 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 2.618 ms 10:29:31,721 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 10:29:31,721 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 10:29:31,721 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 10:29:31,721 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 10:29:31,721 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 182.1 μs 10:29:31,722 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 10:29:31,863 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-14245244683393566708/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069622A0B-2ADEB9A3.v1 10:29:31,863 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-14245244683393566708/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 10:29:31,863 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-14245244683393566708/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 10:29:31,863 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-14245244683393566708/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 10:29:31,863 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2026-01-10T10:29:31.719239587Z, file=/tmp/junit-14245244683393566708/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069622A0B-2ADEB9A3.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 10:29:31,865 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#-381889520] 10:29:31,876 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower502#-378142842] 10:29:31,876 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader503#-379799114] 10:29:31,876 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 10:29:31,876 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#627,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155]/waiting 10:29:31,876 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 154.9 ms 10:29:31,876 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 10.94 μs 10:29:31,877 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 10:29:31,877 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 10:29:31,877 AM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 10:29:31,877 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 10:29:31,877 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 10:29:31,881 AM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 10:29:31,881 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:31,881 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 10:29:31,882 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]]} 10:29:31,882 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 10:29:31,882 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} 10:29:31,882 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 10:29:31,883 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior504#-1943195589] 10:29:31,893 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower505#53964260] 10:29:31,893 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader506#-501559939] 10:29:31,896 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 10:29:31,896 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:31,897 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 10:29:31,897 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 10:29:31,897 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 10:29:31,897 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 10:29:31,897 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 10:29:31,898 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#660597369] 10:29:31,908 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower508#1371754459] 10:29:31,909 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader509#-387269063] 10:29:31,912 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 10:29:31,912 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:31,913 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 10:29:31,913 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]]} 10:29:31,914 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 10:29:31,914 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 10:29:31,914 AM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 10:29:31,914 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 10:29:31,914 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 10:29:31,914 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 10:29:31,914 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 10:29:31,914 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 10:29:31,914 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} 10:29:31,914 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 10:29:31,914 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 10:29:31,915 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 10:29:31,915 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:29:31,915 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 10:29:31,915 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 10:29:31,915 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 10:29:31,915 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 10:29:31,915 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 10:29:31,915 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 10:29:31,916 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior510#649028530] 10:29:31,926 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower511#1775495862] 10:29:31,927 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader512#1399540924] 10:29:31,930 AM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 10:29:31,930 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:31,931 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 10:29:31,931 AM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 10:29:31,932 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#442992735] 10:29:31,942 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower514#-651956265] 10:29:31,943 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader515#1832854572] 10:29:31,945 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 10:29:31,946 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:31,946 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 10:29:31,946 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:29:31,947 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:29:31,947 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 10:29:31,947 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 10:29:31,948 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]]} 10:29:31,948 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 10:29:31,948 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:29:31,948 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 10:29:31,948 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 10:29:31,948 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 10:29:31,949 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 10:29:31,949 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} 10:29:31,949 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 10:29:31,949 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 10:29:31,949 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 10:29:31,949 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 10:29:31,950 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior516#1470283994] 10:29:31,961 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower517#-859352376] 10:29:31,961 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518#-2003554526] 10:29:31,973 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 10:29:31,973 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:31,974 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 10:29:31,974 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]]} 10:29:31,974 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 10:29:31,975 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} 10:29:31,975 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:29:31,975 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 10:29:31,975 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]]} 10:29:31,975 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 10:29:31,975 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} 10:29:31,975 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 10:29:31,976 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 10:29:31,976 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]]} 10:29:31,976 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 10:29:31,976 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} 10:29:31,976 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 10:29:31,977 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior519#-1135574554] 10:29:31,987 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower520#-549199573] 10:29:31,987 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader521#452649669] 10:29:31,991 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 10:29:31,991 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:32,191 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.178:17355, Removed) 10:29:32,191 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 10:29:32,191 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 10:29:32,191 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 10:29:32,191 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 10:29:32,191 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior522#1216014297] 10:29:32,202 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower523#-1889095319] 10:29:32,203 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader524#1956230218] 10:29:32,207 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:32,207 AM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 10:29:32,409 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior525#1233298251] 10:29:32,420 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower526#-1667258578] 10:29:32,420 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader527#1523486430] 10:29:32,424 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 10:29:32,424 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:32,426 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 10:29:32,426 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 10:29:32,427 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior528#-2092675415] 10:29:32,438 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower529#1333787052] 10:29:32,438 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader530#251978737] 10:29:32,441 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 10:29:32,441 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:32,442 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]]} 10:29:32,442 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 10:29:32,442 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 10:29:32,442 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 10:29:32,442 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 10:29:32,442 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 10:29:32,442 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 10:29:32,443 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} 10:29:32,443 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 10:29:32,443 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 10:29:32,443 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 10:29:32,443 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:29:32,443 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 10:29:32,443 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 10:29:32,443 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 10:29:32,443 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 10:29:32,444 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 10:29:32,444 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 10:29:32,444 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 10:29:32,444 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 10:29:32,445 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior531#1446368452] 10:29:32,455 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower532#-1998535181] 10:29:32,456 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader533#-700093328] 10:29:32,459 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 10:29:32,459 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:32,459 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 10:29:32,460 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:29:32,460 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:29:32,460 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 10:29:32,461 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]]} 10:29:32,462 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} 10:29:32,462 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior534#903810832] 10:29:32,472 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower535#1878139581] 10:29:32,473 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader536#-1077625814] 10:29:32,476 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 10:29:32,476 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:32,476 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 10:29:32,477 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]]} 10:29:32,477 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 10:29:32,477 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 10:29:32,478 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 10:29:32,478 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior537#-1743751716] 10:29:32,489 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower538#-91159050] 10:29:32,489 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader539#-1774614390] 10:29:32,493 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries 10:29:32,496 AM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:29:32,496 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [01/10/2026 10:29:32.497] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@3c60a6c7 [INFO] [pekkoDeadLetter][01/10/2026 10:29:32.497] [test-pekko.actor.default-dispatcher-5] [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'. 10:29:32,497 AM [test-pekko.actor.default-dispatcher-4] [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'. 10:29:32,498 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 10:29:32,498 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 10:29:32,498 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 10:29:32,499 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 10:29:32,499 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 10:29:32,499 AM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 10:29:32,499 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 10:29:32,499 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 10:29:32,499 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 10:29:32,500 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/junit-3103309715006248206/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 10:29:32,504 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=0, votedFor=null 10:29:32,504 AM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 10:29:32,504 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3103309715006248206/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 10:29:32,504 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3103309715006248206/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 10:29:32,504 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3103309715006248206/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 10:29:32,504 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 10:29:32,504 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 10:29:32,504 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 10:29:32,504 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 10:29:32,504 AM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 4.546 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 10:29:32,504 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and can restore from snapshot 10:29:32,505 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3103309715006248206/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 10:29:32,505 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3103309715006248206/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 10:29:32,505 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3103309715006248206/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 10:29:32,505 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 10:29:32,505 AM [test-pekko.actor.default-dispatcher-12] [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 10:29:32,509 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:29:32,509 AM [test-pekko.actor.default-dispatcher-12] [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]]} 10:29:32,509 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 10:29:32,509 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:29:32,509 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 10:29:32,509 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 10:29:32,509 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 10:29:32,509 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 10:29:32,509 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 10:29:32,509 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 9.701 ms 10:29:32,509 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 10:29:32,509 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 10:29:32,509 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 10:29:32,509 AM [test-pekko.actor.default-dispatcher-12] [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} 10:29:32,509 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 10:29:32,509 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 10:29:32,509 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 10:29:32,509 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 10:29:32,509 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 10:29:32,509 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 10:29:32,509 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 10:29:32,509 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 10:29:32,509 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 10:29:32,509 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 10:29:32,509 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 10:29:32,509 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 10:29:32,509 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 10:29:32,509 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 10:29:32,510 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 10:29:32,513 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 10:29:32,513 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 3.665 ms 10:29:32,513 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 10:29:32,513 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 2.870 μs 10:29:32,513 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 10:29:32,513 AM [test-pekko.actor.default-dispatcher-12] [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/0x00000007c0914930@1b4d99d4} 10:29:32,513 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 10:29:32,514 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 10:29:32,514 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 10:29:32,514 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 10:29:32,514 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 1.374 ms 10:29:32,514 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 10:29:32,514 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 10:29:32,514 AM [test-pekko.actor.default-dispatcher-12] [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/0x00000007c0914930@1b4d99d4} 10:29:32,514 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 10:29:32,514 AM [test-pekko.actor.default-dispatcher-12] [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] 10:29:32,514 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 10:29:32,514 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 10:29:32,514 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 10:29:32,514 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 10:29:32,515 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 10:29:32,515 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d408104] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-3103309715006248206/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069622A0C-1EB14DBD.tmp 10:29:32,515 AM [test-pekko.actor.default-dispatcher-12] [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/0x00000007c0914930@1b4d99d4} 10:29:32,515 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 5.031 ms [WARN] [01/10/2026 10:29:32.515] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][01/10/2026 10:29:32.515] [test-pekko.actor.default-dispatcher-12] [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'. 10:29:32,515 AM [test-pekko.actor.default-dispatcher-5] [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'. 10:29:32,516 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d408104] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-3103309715006248206/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069622A0C-1EB14DBD.v1 10:29:32,516 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d408104] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-3103309715006248206/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069622A0C-1EB14DBD.v1 10:29:32,516 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d408104] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3103309715006248206/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 10:29:32,516 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d408104] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3103309715006248206/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 10:29:32,516 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d408104] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3103309715006248206/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 10:29:32,516 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d408104] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-01-10T10:29:32.514936253Z, file=/tmp/junit-3103309715006248206/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069622A0C-1EB14DBD.v1, size=573, entryCompress=NONE, stateCompress=NONE} 10:29:32,516 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d408104] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 10:29:32,517 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 10:29:32,517 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2026-01-10T10:29:32.514936253Z 10:29:32,517 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 10:29:32,517 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 10:29:32,517 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 2.365 ms 10:29:32,517 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 10:29:32,517 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 10:29:32,517 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 10:29:32,517 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 77.10 μs 10:29:32,517 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 10:29:32,517 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 10:29:32,656 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-3103309715006248206/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069622A0C-1EB14DBD.v1 10:29:32,656 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3103309715006248206/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 10:29:32,656 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3103309715006248206/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 10:29:32,656 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3103309715006248206/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 10:29:32,656 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-01-10T10:29:32.514936253Z, file=/tmp/junit-3103309715006248206/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069622A0C-1EB14DBD.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 10:29:32,658 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 10:29:32,669 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#630,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156]/waiting 10:29:32,669 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 152.0 ms 10:29:32,669 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 14.37 μs 10:29:32,669 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 10:29:32,669 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 10:29:32,669 AM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 10:29:32,669 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 10:29:32,669 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 10:29:32,670 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [01/10/2026 10:29:32.670] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@17f2e9f9 [INFO] [pekkoDeadLetter][01/10/2026 10:29:32.670] [test-pekko.actor.default-dispatcher-4] [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'. 10:29:32,671 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 10:29:32,671 AM [test-pekko.actor.default-dispatcher-5] [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'. 10:29:32,671 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 10:29:32,671 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 10:29:32,672 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 10:29:32,672 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 10:29:32,672 AM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 10:29:32,672 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 10:29:32,672 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 10:29:32,672 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 10:29:32,672 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:29:32,673 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-3103309715006248206/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069622A0C-1EB14DBD.v1 10:29:32,673 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3103309715006248206/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 10:29:32,673 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3103309715006248206/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 10:29:32,673 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3103309715006248206/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 10:29:32,673 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-01-10T10:29:32.514936253Z, file=/tmp/junit-3103309715006248206/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069622A0C-1EB14DBD.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 10:29:32,673 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2026-01-10T10:29:32.514936253Z 10:29:32,673 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 10:29:32,674 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 10:29:32,674 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 10:29:32,674 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 10:29:32,674 AM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 1.551 ms: last log index = 2, last log term = 1, napshot index = 2, snapshot term = 1, journal size = 0 10:29:32,674 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and cannot restore from snapshot 10:29:32,675 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior540#-1456657972] 10:29:32,685 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower541#-2052284158] 10:29:32,686 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader542#-1756723209] 10:29:32,686 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 10:29:32,686 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#633,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/waiting 10:29:32,686 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 13.51 ms 10:29:32,686 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 9.661 μs 10:29:32,686 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 10:29:32,686 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 10:29:32,686 AM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 10:29:32,686 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 10:29:32,686 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 10:29:32,690 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 10:29:32,690 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:32,991 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 10:29:33,121 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 10:29:33,372 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 10:29:33,572 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 10:29:33,572 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior543#1725051481] 10:29:33,584 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower544#1133247996] 10:29:33,584 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader545#88814799] 10:29:33,590 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:29:33,591 AM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 10:29:33,591 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 10:29:33,591 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 10:29:33,591 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 10:29:33,592 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior546#1267846535] 10:29:33,602 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower547#-689238621] 10:29:33,603 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader548#-542822750] [INFO] [01/10/2026 10:29:33.605] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 10:29:33,605 AM [test-pekko.actor.default-dispatcher-12] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [01/10/2026 10:29:33.606] [test-pekko.actor.default-dispatcher-12] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.178:17355) [INFO] [pekkoDeadLetter][01/10/2026 10:29:33.606] [test-pekko.actor.default-dispatcher-5] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-109260629] 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'. 10:29:33,606 AM [test-pekko.actor.default-dispatcher-12] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-109260629] 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'. 10:29:33,608 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.178:17355] - Exiting completed [INFO] [01/10/2026 10:29:33.607] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.178:17355] - Exiting completed 10:29:33,608 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.178:17355] - Shutting down... [INFO] [01/10/2026 10:29:33.607] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.178:17355] - Shutting down... 10:29:33,608 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.178:17355] - Successfully shut down [INFO] [01/10/2026 10:29:33.607] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.178:17355] - Successfully shut down [INFO] [01/10/2026 10:29:33.610] [test-pekko.remote.default-remote-dispatcher-6] [pekko://test@10.30.171.178:17355/system/remoting-terminator] Shutting down remote daemon. 10:29:33,610 AM [test-pekko.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [01/10/2026 10:29:33.610] [test-pekko.remote.default-remote-dispatcher-6] [pekko://test@10.30.171.178:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 10:29:33,610 AM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [01/10/2026 10:29:33.612] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.171.178:17355/system/remoting-terminator] Remoting shut down. 10:29:33,612 AM [test-pekko.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [01/10/2026 10:29:33.612] [test-pekko.actor.internal-dispatcher-7] [EventStream] shutting down: StandardOutLogger