[DEBUG] [11/29/2025 15:33:16.874] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 03:33:16,875 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [11/29/2025 15:33:16.875] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [11/29/2025 15:33:16.875] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [11/29/2025 15:33:16.903] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.62:17355] with UID [-7847780543009655933] 03:33:16,903 PM [test-pekko.actor.default-dispatcher-7] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.62:17355] with UID [-7847780543009655933] [INFO] [11/29/2025 15:33:16.904] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.62:17355] - Starting up, Pekko version [1.2.1] ... 03:33:16,904 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.62:17355] - Starting up, Pekko version [1.2.1] ... 03:33:16,910 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.62:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 03:33:16,910 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.62:17355] - Started up successfully [INFO] [11/29/2025 15:33:16.909] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.62:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [11/29/2025 15:33:16.909] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.62:17355] - Started up successfully [INFO] [11/29/2025 15:33:16.911] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.62:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [11/29/2025 15:33:16.911] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.62:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 03:33:16,911 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.62:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 03:33:16,911 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.62:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 03:33:16,926 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:17,61 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 03:33:17,62 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 03:33:17,62 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior332#1825594374] 03:33:17,74 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower333#-1987656050] 03:33:17,74 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader334#-1546176204] 03:33:17,79 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:17,82 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 03:33:17,83 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 03:33:17,84 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 03:33:17,84 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 03:33:17,84 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 03:33:17,84 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 03:33:17,85 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 03:33:17,85 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 03:33:17,85 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 03:33:17,86 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 03:33:17,86 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 03:33:17,86 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 03:33:17,87 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior335#926603622] 03:33:17,97 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower336#-2077011342] 03:33:17,97 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader337#2048502819] 03:33:17,100 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:17,102 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 03:33:17,102 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 03:33:17,103 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior338#-735244376] 03:33:17,113 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower339#68690941] 03:33:17,114 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader340#-556199988] 03:33:17,116 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:17,117 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 03:33:17,118 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 03:33:17,118 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 03:33:17,118 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 03:33:17,119 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 03:33:17,120 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 03:33:17,120 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 03:33:17,120 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 03:33:17,120 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 03:33:17,121 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 03:33:17,122 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 03:33:17,122 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 03:33:17,123 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior341#739154664] 03:33:17,134 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower342#-1508364005] 03:33:17,134 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader343#-49233663] 03:33:17,140 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:17,141 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 03:33:17,142 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 03:33:17,142 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:17,145 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 03:33:17,146 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 03:33:17,146 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 03:33:17,147 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 03:33:17,147 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 03:33:17,147 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior344#294920075] 03:33:17,158 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower345#1762122815] 03:33:17,158 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader346#1575348250] 03:33:17,166 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:17,168 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 03:33:17,169 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior347#-2125942842] 03:33:17,179 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower348#-1767085209] 03:33:17,180 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader349#-1054656866] 03:33:17,187 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:17,189 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 03:33:17,189 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 03:33:17,190 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior350#2033647736] 03:33:17,201 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower351#646855937] 03:33:17,201 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader352#985715964] 03:33:17,206 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 03:33:17,206 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:17,209 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 03:33:17,209 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 03:33:17,209 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 03:33:17,209 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 03:33:17,212 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 03:33:17,213 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 03:33:17,213 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 03:33:17,213 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 03:33:17,218 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 03:33:17,219 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior353#-995755057] 03:33:17,230 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower354#1517833067] 03:33:17,232 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader355#1135252570] 03:33:17,237 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 03:33:17,237 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:17,238 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 03:33:17,239 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 03:33:17,239 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 03:33:17,239 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 03:33:17,240 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior356#545512482] 03:33:17,250 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower357#-1790864193] 03:33:17,250 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader358#1931166758] 03:33:17,253 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 03:33:17,253 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:17,254 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 03:33:17,254 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 03:33:17,254 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 03:33:17,254 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 03:33:17,255 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 03:33:17,255 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 03:33:17,255 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 03:33:17,256 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 03:33:17,256 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 03:33:17,256 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 03:33:17,256 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 03:33:17,257 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 03:33:17,257 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 03:33:17,258 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior359#-53335319] 03:33:17,268 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower360#1077445973] 03:33:17,269 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader361#-335366571] 03:33:17,273 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:17,274 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 03:33:17,274 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior362#212217009] 03:33:17,285 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower363#-1655112205] 03:33:17,285 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader364#315123498] 03:33:17,290 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 03:33:17,290 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:17,291 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 03:33:17,291 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 03:33:17,291 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 03:33:17,291 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 03:33:17,291 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 03:33:17,291 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 03:33:17,292 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 03:33:17,292 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 03:33:17,292 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 03:33:17,292 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 03:33:17,292 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 03:33:17,293 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior365#757626232] 03:33:17,303 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower366#-157620648] 03:33:17,304 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader367#314812039] 03:33:17,307 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 03:33:17,307 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:17,308 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 03:33:17,308 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 03:33:17,308 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 03:33:17,308 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 03:33:17,308 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 03:33:17,308 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 03:33:17,308 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 03:33:17,308 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 03:33:17,308 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 03:33:17,309 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 03:33:17,309 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 03:33:17,309 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 03:33:17,309 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 03:33:17,311 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 03:33:17,311 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 03:33:17,311 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 03:33:17,311 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 03:33:17,311 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 03:33:17,311 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 03:33:17,311 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 03:33:17,311 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 03:33:17,311 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 03:33:17,312 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 03:33:17,312 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 03:33:17,312 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 03:33:17,313 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior368#2053233969] 03:33:17,323 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower369#-1507883347] 03:33:17,324 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader370#-1632574746] 03:33:17,328 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 03:33:17,329 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:17,329 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 03:33:17,331 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 03:33:17,332 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 03:33:17,332 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 03:33:17,333 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior371#-241797556] 03:33:17,344 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower372#-985865731] 03:33:17,344 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader373#-1987120540] 03:33:17,349 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:17,353 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior374#-2033642723] 03:33:17,364 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower375#1175968292] 03:33:17,364 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader376#441020084] 03:33:17,368 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 03:33:17,368 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:17,368 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 03:33:17,369 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 03:33:17,371 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 03:33:17,371 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 03:33:17,371 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 03:33:17,371 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 03:33:17,371 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 03:33:17,371 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 03:33:17,371 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 03:33:17,372 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 03:33:17,372 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 03:33:17,372 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 03:33:17,372 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 03:33:17,372 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 03:33:17,373 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior377#736779998] 03:33:17,384 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower378#-890752276] 03:33:17,384 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader379#1951408912] 03:33:17,389 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries 03:33:17,395 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 03:33:17,396 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] [WARN] [11/29/2025 15:33:17.396] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@61d62b21 [INFO] [pekkoDeadLetter][11/29/2025 15:33:17.396] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 03:33:17,397 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 03:33:17,397 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 03:33:17,397 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 03:33:17,397 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 03:33:17,398 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 03:33:17,398 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 03:33:17,398 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 03:33:17,398 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 03:33:17,398 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/junit-4038203799613009955/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 03:33:17,398 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 03:33:17,398 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 03:33:17,401 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=0, votedFor=null 03:33:17,401 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 03:33:17,401 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4038203799613009955/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 03:33:17,401 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4038203799613009955/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 03:33:17,401 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4038203799613009955/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 03:33:17,401 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 03:33:17,401 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 03:33:17,401 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 03:33:17,401 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 03:33:17,402 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed in in 3.193 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 03:33:17,402 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed and can restore from snapshot 03:33:17,402 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4038203799613009955/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 03:33:17,402 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4038203799613009955/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 03:33:17,403 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4038203799613009955/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 03:33:17,403 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 03:33:17,403 PM [test-pekko.actor.default-dispatcher-7] [INFO] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]}" message is greater than follower's term 0 - updating term 03:33:17,405 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 03:33:17,405 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 03:33:17,405 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 03:33:17,405 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 03:33:17,405 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 03:33:17,405 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 03:33:17,405 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 03:33:17,405 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 03:33:17,406 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 03:33:17,406 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 03:33:17,406 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 03:33:17,406 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 03:33:17,406 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 03:33:17,406 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 7.116 ms 03:33:17,406 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 03:33:17,406 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 03:33:17,406 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 03:33:17,406 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 03:33:17,406 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 03:33:17,406 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 03:33:17,406 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 03:33:17,406 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 03:33:17,406 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 03:33:17,409 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 03:33:17,410 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 03:33:17,410 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 3.841 ms 03:33:17,410 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 03:33:17,410 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c093a4d0@754ce12d} 03:33:17,410 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 03:33:17,410 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 29.26 μs 03:33:17,411 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 03:33:17,411 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 03:33:17,411 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 03:33:17,411 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 993.2 μs 03:33:17,411 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 03:33:17,411 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 03:33:17,411 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 03:33:17,411 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 03:33:17,411 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 03:33:17,411 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 03:33:17,411 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 03:33:17,411 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 03:33:17,411 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c093a4d0@754ce12d} 03:33:17,411 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 5.172 ms 03:33:17,411 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d160667] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-4038203799613009955/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000692B123D-18850B79.tmp [WARN] [11/29/2025 15:33:17.411] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] 03:33:17,411 PM [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'. [INFO] [pekkoDeadLetter][11/29/2025 15:33:17.411] [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'. 03:33:17,422 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d160667] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-4038203799613009955/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000692B123D-18850B79.v1 03:33:17,422 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d160667] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4038203799613009955/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 03:33:17,422 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d160667] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4038203799613009955/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 03:33:17,422 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d160667] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4038203799613009955/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 03:33:17,422 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d160667] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-4038203799613009955/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000692B123D-18850B79.v1 03:33:17,422 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d160667] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-11-29T15:33:17.411372409Z, file=/tmp/junit-4038203799613009955/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000692B123D-18850B79.v1, size=555, entryCompress=NONE, stateCompress=NONE} 03:33:17,422 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d160667] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 03:33:17,422 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 03:33:17,422 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-11-29T15:33:17.411372409Z 03:33:17,422 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 03:33:17,423 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 03:33:17,423 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 11.92 ms 03:33:17,423 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 03:33:17,423 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 03:33:17,423 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 03:33:17,423 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 190.0 μs 03:33:17,423 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 03:33:17,423 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 03:33:17,504 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4038203799613009955/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 03:33:17,504 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4038203799613009955/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 03:33:17,504 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4038203799613009955/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 03:33:17,504 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-4038203799613009955/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000692B123D-18850B79.v1 03:33:17,505 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-11-29T15:33:17.411372409Z, file=/tmp/junit-4038203799613009955/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000692B123D-18850B79.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 03:33:17,507 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior380#-781394440] 03:33:17,510 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower381#1541919517] 03:33:17,510 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader382#1894888879] 03:33:17,510 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 03:33:17,510 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#641,testCaptureSnapshotOnLastEntryInAppendEntries-writer-151]/waiting 03:33:17,511 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 87.80 ms 03:33:17,511 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 41.53 μs 03:33:17,511 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 03:33:17,511 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 03:33:17,511 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 03:33:17,511 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 03:33:17,511 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 03:33:17,516 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:17,517 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior383#1246117842] 03:33:17,530 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower384#375188254] 03:33:17,530 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader385#488494920] 03:33:17,537 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 03:33:17,537 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:17,538 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 03:33:17,538 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 03:33:17,539 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior386#-1218660960] 03:33:17,550 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower387#-2118469957] 03:33:17,550 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader388#-126987492] 03:33:17,553 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 03:33:17,553 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:17,554 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 03:33:17,555 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 03:33:17,555 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 03:33:17,556 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 03:33:17,556 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 03:33:17,556 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 03:33:17,556 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 03:33:17,556 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 03:33:17,556 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 03:33:17,556 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 03:33:17,557 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 03:33:17,558 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior389#428133827] 03:33:17,568 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower390#-1763621406] 03:33:17,569 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader391#737202402] 03:33:17,573 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 03:33:17,573 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:17,574 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 03:33:17,575 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 03:33:17,575 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 03:33:17,575 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 03:33:17,576 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 03:33:17,576 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 03:33:17,576 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 03:33:17,577 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 03:33:17,577 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 03:33:17,577 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 03:33:17,577 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior392#-529321302] 03:33:17,588 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower393#1087927225] 03:33:17,588 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader394#1409912101] 03:33:17,593 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:17,593 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior395#1236406125] 03:33:17,604 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower396#-106398492] 03:33:17,604 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader397#416217058] 03:33:17,608 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 03:33:17,608 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:17,609 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 03:33:17,610 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 03:33:17,610 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 03:33:17,611 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 03:33:17,611 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 03:33:17,611 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 03:33:17,612 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 03:33:17,612 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 03:33:17,612 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 03:33:17,613 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 03:33:17,613 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 03:33:17,613 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 03:33:17,614 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 03:33:17,614 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 03:33:17,614 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior398#-1705071668] 03:33:17,625 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower399#-1536946901] 03:33:17,625 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader400#-710344314] 03:33:17,630 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 03:33:17,631 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:17,632 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 03:33:17,633 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 03:33:17,633 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 03:33:17,633 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 03:33:17,633 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 03:33:17,633 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 03:33:17,633 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 03:33:17,633 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 03:33:17,633 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 03:33:17,633 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 03:33:17,634 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior401#555375030] 03:33:17,645 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower402#1088953035] 03:33:17,645 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader403#295496570] 03:33:17,650 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 03:33:17,650 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:17,652 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 03:33:17,653 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader406 03:33:17,653 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader406 03:33:17,655 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 03:33:17,655 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior404#2027289110] 03:33:17,666 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower405#1464545266] 03:33:17,666 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader406#-450077296] 03:33:17,670 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 03:33:17,670 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:17,671 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 03:33:17,671 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 03:33:17,672 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 03:33:17,672 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 03:33:17,672 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 03:33:17,672 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 03:33:17,672 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 03:33:17,672 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 03:33:17,672 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 03:33:17,672 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 03:33:17,672 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 03:33:17,673 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior407#-2103599904] 03:33:17,684 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower408#-352323100] 03:33:17,684 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader409#-154726990] 03:33:17,688 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 03:33:17,688 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:17,689 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 03:33:17,690 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 03:33:17,690 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 03:33:17,690 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 03:33:17,691 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 03:33:17,691 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior410#1653797709] 03:33:17,702 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower411#1780658761] 03:33:17,702 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader412#-1256436543] 03:33:17,706 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 03:33:17,714 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 03:33:17,715 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] [WARN] [11/29/2025 15:33:17.715] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@24d4a97f [INFO] [pekkoDeadLetter][11/29/2025 15:33:17.715] [test-pekko.actor.default-dispatcher-7] [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'. 03:33:17,715 PM [test-pekko.actor.default-dispatcher-6] [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'. 03:33:17,716 PM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 03:33:17,716 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 03:33:17,716 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 03:33:17,717 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 03:33:17,718 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 03:33:17,718 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 03:33:17,718 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 03:33:17,718 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 03:33:17,718 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 03:33:17,718 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/junit-2134839251931274922/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 03:33:17,722 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=0, votedFor=null 03:33:17,722 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=0} 03:33:17,722 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2134839251931274922/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 03:33:17,723 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2134839251931274922/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 03:33:17,723 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2134839251931274922/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 03:33:17,723 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 03:33:17,723 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 03:33:17,723 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 03:33:17,723 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 03:33:17,723 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed in in 4.551 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 03:33:17,723 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed and can restore from snapshot 03:33:17,724 PM [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 03:33:17,726 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 03:33:17,726 PM [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]]} 03:33:17,726 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 03:33:17,726 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 03:33:17,726 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 03:33:17,726 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 03:33:17,726 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 7.969 ms 03:33:17,726 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 03:33:17,726 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 03:33:17,726 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 03:33:17,726 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 03:33:17,726 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 03:33:17,726 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 03:33:17,726 PM [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} 03:33:17,726 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 03:33:17,726 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 03:33:17,726 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 03:33:17,726 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 03:33:17,726 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 03:33:17,726 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 03:33:17,727 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 03:33:17,730 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 03:33:17,730 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 4.117 ms 03:33:17,730 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 3 commands after 4.130 μs 03:33:17,730 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 03:33:17,730 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 03:33:17,730 PM [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/0x00000007c093a4d0@2b819f46} 03:33:17,730 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 2 synchronized callback(s) 03:33:17,732 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 03:33:17,732 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 3 completion(s) pending 03:33:17,732 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 3 commands in 1.799 ms 03:33:17,732 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 3 completion(s) 03:33:17,732 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 03:33:17,732 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 03:33:17,732 PM [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/0x00000007c093a4d0@2b819f46} 03:33:17,732 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 03:33:17,732 PM [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] 03:33:17,732 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 03:33:17,732 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 03:33:17,732 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 03:33:17,733 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 03:33:17,733 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 03:33:17,733 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d813755] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-2134839251931274922/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000692B123D-2BAE1B08.tmp 03:33:17,733 PM [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/0x00000007c093a4d0@2b819f46} 03:33:17,733 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 6.145 ms [WARN] [11/29/2025 15:33:17.733] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][11/29/2025 15:33:17.733] [test-pekko.actor.default-dispatcher-6] [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'. 03:33:17,733 PM [test-pekko.actor.default-dispatcher-7] [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'. 03:33:17,735 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d813755] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-2134839251931274922/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000692B123D-2BAE1B08.v1 03:33:17,735 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d813755] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2134839251931274922/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 03:33:17,735 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d813755] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2134839251931274922/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 03:33:17,735 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d813755] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2134839251931274922/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 03:33:17,735 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d813755] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-2134839251931274922/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000692B123D-2BAE1B08.v1 03:33:17,735 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d813755] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-11-29T15:33:17.732830472Z, file=/tmp/junit-2134839251931274922/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000692B123D-2BAE1B08.v1, size=539, entryCompress=NONE, stateCompress=NONE} 03:33:17,736 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d813755] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 03:33:17,736 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 03:33:17,736 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-11-29T15:33:17.732830472Z 03:33:17,736 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 03:33:17,736 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 03:33:17,736 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 3.800 ms 03:33:17,736 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 03:33:17,736 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 03:33:17,736 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 03:33:17,736 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 172.5 μs 03:33:17,736 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 03:33:17,736 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 03:33:17,877 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2134839251931274922/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 03:33:17,877 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2134839251931274922/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 03:33:17,877 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2134839251931274922/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 03:33:17,877 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-2134839251931274922/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000692B123D-2BAE1B08.v1 03:33:17,877 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-11-29T15:33:17.732830472Z, file=/tmp/junit-2134839251931274922/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000692B123D-2BAE1B08.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 03:33:17,880 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior413#1210770133] 03:33:17,891 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower414#-1328035956] 03:33:17,892 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader415#-275381133] 03:33:17,892 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 03:33:17,892 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#644,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152]/waiting 03:33:17,892 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 156.1 ms 03:33:17,892 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 31.69 μs 03:33:17,892 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 03:33:17,893 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 03:33:17,893 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 03:33:17,893 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 03:33:17,893 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 03:33:17,899 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 03:33:17,899 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:17,900 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 03:33:17,901 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 03:33:17,901 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 03:33:17,901 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 03:33:17,902 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 03:33:17,902 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior416#-1648575174] 03:33:17,913 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower417#-820064092] 03:33:17,913 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader418#109307709] 03:33:17,917 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 03:33:17,917 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:17,918 PM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 03:33:17,919 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 03:33:17,919 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 03:33:17,919 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 03:33:17,920 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 03:33:17,921 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior419#-1995463862] 03:33:17,931 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower420#716433181] 03:33:17,932 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader421#-1599581926] 03:33:17,936 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 03:33:17,936 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:17,937 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 03:33:17,938 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 03:33:17,938 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 03:33:17,938 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 03:33:17,938 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 03:33:17,938 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 03:33:17,938 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 03:33:17,938 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 03:33:17,938 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 03:33:17,938 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 03:33:17,939 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 03:33:17,939 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 03:33:17,939 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 03:33:17,939 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 03:33:17,939 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 03:33:17,939 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 03:33:17,939 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 03:33:17,939 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 03:33:17,940 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 03:33:17,940 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 03:33:17,940 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 03:33:17,940 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior422#-1082737266] 03:33:17,951 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower423#-1309716821] 03:33:17,951 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader424#-322073103] 03:33:17,956 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 03:33:17,956 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:17,957 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 03:33:17,957 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 03:33:17,958 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior425#996450915] 03:33:17,969 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower426#405346231] 03:33:17,969 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader427#959830407] 03:33:17,973 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 03:33:17,973 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:17,974 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 03:33:17,974 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 03:33:17,974 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 03:33:17,974 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 03:33:17,975 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 03:33:17,976 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 03:33:17,976 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 03:33:17,976 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 03:33:17,976 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 03:33:17,976 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 03:33:17,976 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 03:33:17,976 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 03:33:17,976 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 03:33:17,977 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 03:33:17,977 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 03:33:17,977 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 03:33:17,977 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 03:33:17,978 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior428#-1371142521] 03:33:17,989 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower429#1515965264] 03:33:17,989 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader430#524267392] 03:33:17,994 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 03:33:17,994 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:17,994 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 03:33:17,995 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 03:33:17,995 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 03:33:17,996 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 03:33:17,996 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 03:33:17,996 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 03:33:17,997 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 03:33:17,997 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 03:33:17,998 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 03:33:18,0 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 03:33:18,0 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 03:33:18,0 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 03:33:18,0 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 03:33:18,1 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 03:33:18,1 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 03:33:18,1 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior431#-2034780486] 03:33:18,12 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower432#1467841549] 03:33:18,12 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader433#1772274797] 03:33:18,18 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 03:33:18,18 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:18,219 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.171.62:17355, Removed) 03:33:18,219 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 03:33:18,219 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 03:33:18,219 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 03:33:18,219 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 03:33:18,219 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior434#1701814779] 03:33:18,231 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower435#1922926932] 03:33:18,231 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader436#1655494063] 03:33:18,236 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:18,237 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 03:33:18,388 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior437#-339111219] 03:33:18,399 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower438#-1354484671] 03:33:18,400 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader439#2111535820] 03:33:18,404 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 03:33:18,405 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:18,410 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 03:33:18,410 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 03:33:18,411 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior440#-635697472] 03:33:18,432 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower441#-1097780984] 03:33:18,432 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader442#31499895] 03:33:18,439 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 03:33:18,439 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:18,443 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 03:33:18,443 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 03:33:18,443 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 03:33:18,443 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 03:33:18,443 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 03:33:18,443 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 03:33:18,443 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 03:33:18,443 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 03:33:18,444 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 03:33:18,444 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 03:33:18,445 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 03:33:18,445 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 03:33:18,446 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 03:33:18,446 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 03:33:18,446 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 03:33:18,446 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 03:33:18,446 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 03:33:18,446 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 03:33:18,446 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 03:33:18,446 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 03:33:18,447 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior443#42686999] 03:33:18,458 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower444#-1946005779] 03:33:18,458 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader445#557117274] 03:33:18,463 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 03:33:18,463 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:18,464 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 03:33:18,464 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 03:33:18,464 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 03:33:18,464 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 03:33:18,465 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 03:33:18,466 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 03:33:18,467 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior446#905397220] 03:33:18,477 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower447#994128014] 03:33:18,478 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader448#-1053091297] 03:33:18,482 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 03:33:18,482 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:18,483 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 03:33:18,484 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 03:33:18,484 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 03:33:18,484 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 03:33:18,485 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 03:33:18,485 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior449#2012528864] 03:33:18,496 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower450#-1630826793] 03:33:18,496 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader451#-957752480] 03:33:18,500 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries 03:33:18,504 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 03:33:18,505 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [11/29/2025 15:33:18.505] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@6ede8d49 [INFO] [pekkoDeadLetter][11/29/2025 15:33:18.505] [test-pekko.actor.default-dispatcher-12] [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'. 03:33:18,506 PM [test-pekko.actor.default-dispatcher-12] [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'. 03:33:18,506 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 03:33:18,506 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 03:33:18,506 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 03:33:18,507 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 03:33:18,508 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 03:33:18,508 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 03:33:18,508 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 03:33:18,508 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 03:33:18,508 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 03:33:18,508 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/junit-5815846513979134142/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 03:33:18,515 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=0, votedFor=null 03:33:18,515 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 03:33:18,515 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5815846513979134142/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 03:33:18,515 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5815846513979134142/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 03:33:18,515 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5815846513979134142/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 03:33:18,515 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 03:33:18,515 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 03:33:18,515 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 03:33:18,515 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 03:33:18,516 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 7.722 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 03:33:18,516 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and can restore from snapshot 03:33:18,516 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5815846513979134142/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 03:33:18,516 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5815846513979134142/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 03:33:18,516 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5815846513979134142/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 03:33:18,516 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 03:33:18,516 PM [test-pekko.actor.default-dispatcher-7] [INFO] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]}" message is greater than follower's term 0 - updating term 03:33:18,519 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 03:33:18,519 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 03:33:18,519 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 03:33:18,519 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 03:33:18,519 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 03:33:18,519 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 03:33:18,520 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 03:33:18,520 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 03:33:18,520 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 03:33:18,520 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 03:33:18,520 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 03:33:18,520 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 03:33:18,520 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 03:33:18,520 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 11.86 ms 03:33:18,520 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 03:33:18,520 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 03:33:18,520 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 03:33:18,520 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 03:33:18,520 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 03:33:18,520 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 03:33:18,520 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 03:33:18,520 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 03:33:18,520 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 03:33:18,520 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 03:33:18,520 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 03:33:18,520 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 03:33:18,520 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 03:33:18,520 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 03:33:18,520 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 03:33:18,527 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 03:33:18,527 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 03:33:18,527 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 7.402 ms 03:33:18,527 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 03:33:18,527 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 4.680 μs 03:33:18,527 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c093a4d0@7b73e8dd} 03:33:18,527 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 03:33:18,527 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c093a4d0@7b73e8dd} 03:33:18,527 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 03:33:18,529 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 03:33:18,529 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 03:33:18,529 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 1.833 ms 03:33:18,529 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 03:33:18,529 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 03:33:18,529 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 03:33:18,529 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 03:33:18,529 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 03:33:18,529 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 03:33:18,529 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 03:33:18,529 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 03:33:18,529 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 03:33:18,529 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c093a4d0@7b73e8dd} 03:33:18,529 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d910131] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-5815846513979134142/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000692B123E-1F93E756.tmp 03:33:18,529 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 9.345 ms [WARN] [11/29/2025 15:33:18.530] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][11/29/2025 15:33:18.530] [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'. 03:33:18,530 PM [test-pekko.actor.default-dispatcher-6] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 03:33:18,535 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d910131] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-5815846513979134142/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000692B123E-1F93E756.v1 03:33:18,535 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d910131] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5815846513979134142/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 03:33:18,535 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d910131] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5815846513979134142/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 03:33:18,535 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d910131] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5815846513979134142/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 03:33:18,535 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d910131] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-5815846513979134142/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000692B123E-1F93E756.v1 03:33:18,536 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d910131] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-11-29T15:33:18.529786710Z, file=/tmp/junit-5815846513979134142/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000692B123E-1F93E756.v1, size=573, entryCompress=NONE, stateCompress=NONE} 03:33:18,536 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d910131] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 03:33:18,536 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 03:33:18,536 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-11-29T15:33:18.529786710Z 03:33:18,536 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 03:33:18,536 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 03:33:18,536 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 7.241 ms 03:33:18,537 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 03:33:18,537 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 03:33:18,537 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 03:33:18,537 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 288.2 μs 03:33:18,537 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 03:33:18,537 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 03:33:18,668 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5815846513979134142/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 03:33:18,669 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5815846513979134142/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 03:33:18,669 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5815846513979134142/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 03:33:18,669 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-5815846513979134142/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000692B123E-1F93E756.v1 03:33:18,669 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-11-29T15:33:18.529786710Z, file=/tmp/junit-5815846513979134142/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000692B123E-1F93E756.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 03:33:18,671 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 03:33:18,672 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#647,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153]/waiting 03:33:18,672 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 135.5 ms 03:33:18,672 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 23.03 μs 03:33:18,672 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 03:33:18,673 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 03:33:18,673 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 03:33:18,673 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 03:33:18,673 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 03:33:18,674 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [11/29/2025 15:33:18.674] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@f08e7ba [INFO] [pekkoDeadLetter][11/29/2025 15:33:18.675] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 03:33:18,675 PM [test-pekko.actor.default-dispatcher-7] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 03:33:18,675 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 03:33:18,676 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 03:33:18,676 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 03:33:18,676 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 03:33:18,677 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 03:33:18,677 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 03:33:18,677 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 03:33:18,677 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 03:33:18,677 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 03:33:18,677 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 03:33:18,677 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5815846513979134142/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 03:33:18,677 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5815846513979134142/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 03:33:18,677 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5815846513979134142/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 03:33:18,677 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-5815846513979134142/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000692B123E-1F93E756.v1 03:33:18,678 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-11-29T15:33:18.529786710Z, file=/tmp/junit-5815846513979134142/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000692B123E-1F93E756.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 03:33:18,678 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-11-29T15:33:18.529786710Z 03:33:18,678 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 03:33:18,679 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 03:33:18,679 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 03:33:18,679 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 03:33:18,679 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 1.714 ms: last log index = 2, last log term = 1, napshot index = 2, snapshot term = 1, journal size = 0 03:33:18,679 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and cannot restore from snapshot 03:33:18,680 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior452#1741002234] 03:33:18,680 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower453#1764909911] 03:33:18,681 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader454#-153261537] 03:33:18,681 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 03:33:18,681 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#650,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-154]/waiting 03:33:18,681 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 4.072 ms 03:33:18,681 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 9.150 μs 03:33:18,681 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 03:33:18,681 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 03:33:18,681 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 03:33:18,681 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 03:33:18,681 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 03:33:18,689 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 03:33:18,689 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:18,990 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 03:33:19,120 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 03:33:19,371 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 03:33:19,571 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 03:33:19,572 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior455#175609856] 03:33:19,583 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower456#-8429475] 03:33:19,583 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader457#-210024654] 03:33:19,589 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:33:19,590 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 03:33:19,590 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 03:33:19,590 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 03:33:19,590 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 03:33:19,591 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior458#-2009158022] 03:33:19,602 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower459#1011158899] 03:33:19,602 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader460#1406083432] 03:33:19,605 PM [test-pekko.actor.default-dispatcher-7] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [11/29/2025 15:33:19.604] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 03:33:19,606 PM [test-pekko.actor.default-dispatcher-7] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1795643414] 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'. 03:33:19,607 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.62:17355] - Exiting completed [WARN] [11/29/2025 15:33:19.606] [test-pekko.actor.default-dispatcher-6] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.62:17355) 03:33:19,607 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.62:17355] - Shutting down... [INFO] [pekkoDeadLetter][11/29/2025 15:33:19.606] [test-pekko.actor.default-dispatcher-7] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1795643414] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [11/29/2025 15:33:19.606] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.62:17355] - Exiting completed [INFO] [11/29/2025 15:33:19.607] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.62:17355] - Shutting down... [INFO] [11/29/2025 15:33:19.607] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.62:17355] - Successfully shut down 03:33:19,608 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.62:17355] - Successfully shut down [INFO] [11/29/2025 15:33:19.610] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.62:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [11/29/2025 15:33:19.611] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.62:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 03:33:19,611 PM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 03:33:19,611 PM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. 03:33:19,613 PM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [11/29/2025 15:33:19.613] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.62:17355/system/remoting-terminator] Remoting shut down. [DEBUG] [11/29/2025 15:33:19.613] [test-pekko.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger