[DEBUG] [12/09/2025 00:30:51.025] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 12:30:51,26 AM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [12/09/2025 00:30:51.026] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [12/09/2025 00:30:51.026] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [12/09/2025 00:30:51.039] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.82:17355] with UID [-6567153314454809732] 12:30:51,39 AM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.82:17355] with UID [-6567153314454809732] [INFO] [12/09/2025 00:30:51.040] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.82:17355] - Starting up, Pekko version [1.2.1] ... 12:30:51,42 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.82:17355] - Starting up, Pekko version [1.2.1] ... 12:30:51,43 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.82:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 12:30:51,43 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.82:17355] - Started up successfully 12:30:51,44 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.82:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 12:30:51,44 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.82:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [12/09/2025 00:30:51.042] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.82:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [12/09/2025 00:30:51.042] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.82:17355] - Started up successfully [INFO] [12/09/2025 00:30:51.044] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.82:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [12/09/2025 00:30:51.044] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.82:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 12:30:51,59 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:51,144 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 12:30:51,144 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 12:30:51,145 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior420#-255806155] 12:30:51,156 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower421#1611586052] 12:30:51,156 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader422#1156974678] 12:30:51,161 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:51,164 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 12:30:51,164 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 12:30:51,164 AM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 12:30:51,164 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 12:30:51,165 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 12:30:51,165 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 12:30:51,166 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:30:51,167 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 12:30:51,167 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 12:30:51,169 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 12:30:51,169 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 12:30:51,169 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 12:30:51,170 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior423#138568158] 12:30:51,181 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower424#-2079513952] 12:30:51,181 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader425#1647055881] 12:30:51,184 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:51,187 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 12:30:51,187 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 12:30:51,188 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior426#-86330808] 12:30:51,198 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower427#1099235014] 12:30:51,199 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader428#1054145185] 12:30:51,202 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:51,203 AM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 12:30:51,204 AM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 12:30:51,204 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:30:51,204 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 12:30:51,206 AM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 12:30:51,207 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 12:30:51,208 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 12:30:51,208 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 12:30:51,208 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 12:30:51,209 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 12:30:51,210 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 12:30:51,211 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 12:30:51,212 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior429#1400654219] 12:30:51,222 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower430#24376774] 12:30:51,222 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader431#-1467265904] 12:30:51,227 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:51,227 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 12:30:51,227 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 12:30:51,228 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:51,228 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 12:30:51,229 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 12:30:51,229 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 12:30:51,229 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 12:30:51,229 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 12:30:51,230 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior432#1882140728] 12:30:51,240 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower433#294009406] 12:30:51,240 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader434#-288635990] 12:30:51,243 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:51,244 AM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 12:30:51,245 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior435#-965508310] 12:30:51,255 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower436#-1124382842] 12:30:51,255 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader437#566487892] 12:30:51,259 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:51,261 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 12:30:51,261 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 12:30:51,261 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior438#520831219] 12:30:51,272 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower439#-1900482011] 12:30:51,272 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader440#-1839202931] 12:30:51,276 AM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 12:30:51,276 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:51,279 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 12:30:51,279 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 12:30:51,279 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 12:30:51,280 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 12:30:51,281 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 12:30:51,281 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 12:30:51,281 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 12:30:51,281 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 12:30:51,284 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 12:30:51,285 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior441#1565926927] 12:30:51,295 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower442#360788456] 12:30:51,295 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader443#-1322928504] 12:30:51,298 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 12:30:51,298 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:51,299 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 12:30:51,300 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 12:30:51,300 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:30:51,300 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 12:30:51,300 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior444#933324778] 12:30:51,311 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower445#-1417278905] 12:30:51,311 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader446#-1755208136] 12:30:51,314 AM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 12:30:51,314 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:51,315 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 12:30:51,315 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 12:30:51,315 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 12:30:51,315 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 12:30:51,316 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 12:30:51,316 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 12:30:51,316 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 12:30:51,317 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 12:30:51,317 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 12:30:51,318 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 12:30:51,318 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 12:30:51,318 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:30:51,319 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 12:30:51,319 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior447#-760751586] 12:30:51,330 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower448#1490470124] 12:30:51,330 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader449#237403867] 12:30:51,333 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:51,334 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 12:30:51,335 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior450#89881682] 12:30:51,346 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower451#358261466] 12:30:51,346 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader452#706149736] 12:30:51,349 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 12:30:51,349 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:51,349 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 12:30:51,350 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 12:30:51,350 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 12:30:51,351 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 12:30:51,351 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 12:30:51,351 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 12:30:51,351 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 12:30:51,351 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:30:51,351 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 12:30:51,351 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 12:30:51,351 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 12:30:51,352 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior453#-1658357457] 12:30:51,363 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower454#454600488] 12:30:51,363 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader455#-1090341038] 12:30:51,366 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 12:30:51,366 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:51,367 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 12:30:51,368 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 12:30:51,368 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 12:30:51,368 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 12:30:51,368 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 12:30:51,368 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 12:30:51,368 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:30:51,368 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 12:30:51,368 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 12:30:51,369 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 12:30:51,369 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 12:30:51,369 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 12:30:51,369 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 12:30:51,370 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 12:30:51,370 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 12:30:51,370 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 12:30:51,370 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 12:30:51,370 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 12:30:51,370 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 12:30:51,370 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 12:30:51,371 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:30:51,371 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 12:30:51,371 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 12:30:51,371 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 12:30:51,371 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 12:30:51,372 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#683635700] 12:30:51,383 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower457#414213092] 12:30:51,383 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader458#-194743979] 12:30:51,387 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 12:30:51,387 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:51,387 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 12:30:51,388 AM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 12:30:51,389 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:30:51,389 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 12:30:51,389 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#-249556362] 12:30:51,400 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower460#-946469781] 12:30:51,400 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader461#1566123798] 12:30:51,403 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:51,406 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#835527631] 12:30:51,417 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower463#110057835] 12:30:51,417 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader464#909462222] 12:30:51,421 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 12:30:51,421 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:51,421 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 12:30:51,421 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 12:30:51,422 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 12:30:51,422 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 12:30:51,422 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 12:30:51,422 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 12:30:51,422 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 12:30:51,423 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 12:30:51,423 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:30:51,423 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 12:30:51,423 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 12:30:51,423 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 12:30:51,423 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 12:30:51,423 AM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 12:30:51,424 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#-422079528] 12:30:51,434 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower466#-543043536] 12:30:51,435 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader467#46924082] 12:30:51,438 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries 12:30:51,444 AM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 12:30:51,445 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] [WARN] [12/09/2025 00:30:51.446] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@3f5e8146 [INFO] [pekkoDeadLetter][12/09/2025 00:30:51.446] [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'. 12:30:51,446 AM [test-pekko.actor.default-dispatcher-12] [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'. 12:30:51,446 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 12:30:51,447 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 12:30:51,447 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 12:30:51,447 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 12:30:51,448 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 12:30:51,448 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 12:30:51,448 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 12:30:51,448 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/junit-11877828958918923369/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 12:30:51,448 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 12:30:51,448 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 12:30:51,450 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=0, votedFor=null 12:30:51,450 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 12:30:51,450 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-11877828958918923369/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 12:30:51,450 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-11877828958918923369/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 12:30:51,450 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-11877828958918923369/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 12:30:51,450 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 12:30:51,450 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 12:30:51,450 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 12:30:51,450 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 12:30:51,451 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed in in 2.596 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 12:30:51,451 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed and can restore from snapshot 12:30:51,451 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-11877828958918923369/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 12:30:51,451 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-11877828958918923369/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 12:30:51,451 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-11877828958918923369/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 12:30:51,451 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 12:30:51,451 AM [test-pekko.actor.default-dispatcher-11] [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 12:30:51,453 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 12:30:51,453 AM [test-pekko.actor.default-dispatcher-11] [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]]} 12:30:51,453 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 12:30:51,453 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:30:51,453 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 12:30:51,453 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 12:30:51,453 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 4.839 ms 12:30:51,454 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 12:30:51,454 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 12:30:51,454 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 12:30:51,454 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 12:30:51,454 AM [test-pekko.actor.default-dispatcher-11] [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} 12:30:51,454 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 12:30:51,454 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 12:30:51,454 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 12:30:51,454 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 12:30:51,454 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 12:30:51,454 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 12:30:51,454 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 12:30:51,454 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 12:30:51,454 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 12:30:51,454 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 12:30:51,454 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 12:30:51,457 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 12:30:51,457 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 3.781 ms 12:30:51,457 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 3.190 μs 12:30:51,457 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 12:30:51,457 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 12:30:51,457 AM [test-pekko.actor.default-dispatcher-11] [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/0x00000007c0914238@596eb389} 12:30:51,457 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 12:30:51,458 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 12:30:51,458 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 12:30:51,458 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 1.035 ms 12:30:51,458 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 12:30:51,458 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 12:30:51,458 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 12:30:51,458 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 12:30:51,458 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 12:30:51,458 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 12:30:51,458 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 12:30:51,459 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d188414] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-11877828958918923369/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069376DBB-1B5BE549.tmp 12:30:51,460 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 12:30:51,460 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 12:30:51,460 AM [test-pekko.actor.default-dispatcher-11] [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/0x00000007c0914238@596eb389} 12:30:51,460 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 6.125 ms [WARN] [12/09/2025 00:30:51.460] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][12/09/2025 00:30:51.460] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 12:30:51,461 AM [test-pekko.actor.default-dispatcher-12] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 12:30:51,464 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d188414] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-11877828958918923369/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069376DBB-1B5BE549.v1 12:30:51,464 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d188414] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-11877828958918923369/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069376DBB-1B5BE549.v1 12:30:51,465 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d188414] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-11877828958918923369/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 12:30:51,465 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d188414] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-11877828958918923369/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 12:30:51,465 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d188414] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-11877828958918923369/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 12:30:51,465 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d188414] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-12-09T00:30:51.459007305Z, file=/tmp/junit-11877828958918923369/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069376DBB-1B5BE549.v1, size=555, entryCompress=NONE, stateCompress=NONE} 12:30:51,465 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d188414] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 12:30:51,465 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 12:30:51,465 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-12-09T00:30:51.459007305Z 12:30:51,465 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 12:30:51,465 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 12:30:51,465 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 6.960 ms 12:30:51,465 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 12:30:51,465 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 12:30:51,465 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 12:30:51,465 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 230.6 μs 12:30:51,465 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 12:30:51,465 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 12:30:51,552 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-11877828958918923369/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069376DBB-1B5BE549.v1 12:30:51,552 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-11877828958918923369/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 12:30:51,552 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-11877828958918923369/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 12:30:51,552 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-11877828958918923369/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 12:30:51,552 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-12-09T00:30:51.459007305Z, file=/tmp/junit-11877828958918923369/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069376DBB-1B5BE549.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 12:30:51,556 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#1033670229] 12:30:51,567 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower469#-1978764841] 12:30:51,567 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader470#-2097264559] 12:30:51,567 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 12:30:51,567 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#624,testCaptureSnapshotOnLastEntryInAppendEntries-writer-154]/waiting 12:30:51,568 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 102.2 ms 12:30:51,568 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 13.41 μs 12:30:51,568 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 12:30:51,568 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 12:30:51,568 AM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 12:30:51,568 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 12:30:51,568 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 12:30:51,573 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:51,574 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior471#-280484969] 12:30:51,585 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower472#-106461769] 12:30:51,585 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader473#-1711259153] 12:30:51,587 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 12:30:51,587 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:51,588 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 12:30:51,589 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 12:30:51,589 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior474#-96564587] 12:30:51,600 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower475#1372088556] 12:30:51,600 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader476#47891311] 12:30:51,604 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 12:30:51,604 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:51,605 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 12:30:51,605 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 12:30:51,606 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 12:30:51,606 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 12:30:51,606 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 12:30:51,606 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 12:30:51,606 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 12:30:51,606 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:30:51,606 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 12:30:51,607 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 12:30:51,607 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 12:30:51,608 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#2025726935] 12:30:51,618 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower478#1135965016] 12:30:51,618 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader479#490778294] 12:30:51,622 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 12:30:51,622 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:51,623 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 12:30:51,624 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 12:30:51,624 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 12:30:51,624 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:30:51,625 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 12:30:51,625 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 12:30:51,625 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 12:30:51,625 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 12:30:51,626 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:30:51,626 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 12:30:51,626 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#315228793] 12:30:51,637 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower481#200106347] 12:30:51,637 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader482#1327366559] 12:30:51,640 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:51,640 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior483#1159532081] 12:30:51,651 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower484#350119422] 12:30:51,651 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader485#1830565281] 12:30:51,654 AM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 12:30:51,655 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:51,655 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 12:30:51,656 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 12:30:51,656 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 12:30:51,657 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:30:51,657 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 12:30:51,657 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 12:30:51,658 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 12:30:51,658 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 12:30:51,659 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:30:51,659 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 12:30:51,660 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 12:30:51,660 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 12:30:51,660 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:30:51,661 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 12:30:51,661 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior486#2029286373] 12:30:51,672 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower487#-1536601210] 12:30:51,672 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader488#-1863406372] 12:30:51,675 AM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 12:30:51,675 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:51,676 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 12:30:51,677 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 12:30:51,677 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 12:30:51,677 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 12:30:51,677 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 12:30:51,677 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 12:30:51,677 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:30:51,677 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 12:30:51,677 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 12:30:51,678 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 12:30:51,678 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior489#750521676] 12:30:51,689 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower490#-615049124] 12:30:51,689 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader491#1528855578] 12:30:51,692 AM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 12:30:51,693 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:51,695 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 12:30:51,696 AM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader494 12:30:51,696 AM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader494 12:30:51,698 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 12:30:51,698 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior492#605919774] 12:30:51,709 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower493#-455555579] 12:30:51,709 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader494#-1254772441] 12:30:51,712 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 12:30:51,712 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:51,712 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 12:30:51,713 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 12:30:51,713 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 12:30:51,713 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 12:30:51,713 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 12:30:51,713 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 12:30:51,713 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 12:30:51,713 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:30:51,713 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 12:30:51,713 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 12:30:51,713 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 12:30:51,714 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior495#-2127349191] 12:30:51,725 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower496#-941374181] 12:30:51,725 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader497#-2113864746] 12:30:51,729 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 12:30:51,729 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:51,730 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 12:30:51,731 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 12:30:51,731 AM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 12:30:51,732 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:30:51,732 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 12:30:51,733 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#1784156601] 12:30:51,744 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower499#-1776640705] 12:30:51,744 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader500#1248141989] 12:30:51,757 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 12:30:51,761 AM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 12:30:51,762 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] [WARN] [12/09/2025 00:30:51.762] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@5a3ff515 [INFO] [pekkoDeadLetter][12/09/2025 00:30:51.762] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 12:30:51,762 AM [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'. 12:30:51,763 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 12:30:51,763 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 12:30:51,763 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 12:30:51,764 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 12:30:51,765 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 12:30:51,765 AM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 12:30:51,765 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 12:30:51,765 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 12:30:51,765 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 12:30:51,765 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/junit-6340472794093792461/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 12:30:51,768 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=0, votedFor=null 12:30:51,768 AM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=0} 12:30:51,768 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6340472794093792461/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 12:30:51,768 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6340472794093792461/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 12:30:51,768 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6340472794093792461/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 12:30:51,768 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 12:30:51,768 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 12:30:51,768 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 12:30:51,768 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 12:30:51,769 AM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed in in 3.446 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 12:30:51,769 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed and can restore from snapshot 12:30:51,770 AM [test-pekko.actor.default-dispatcher-12] [INFO] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]}" message is greater than follower's term 0 - updating term 12:30:51,773 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 12:30:51,773 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 12:30:51,773 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 12:30:51,773 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:30:51,773 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 12:30:51,773 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 12:30:51,773 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 8.139 ms 12:30:51,774 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 12:30:51,774 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 12:30:51,774 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 12:30:51,774 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 12:30:51,774 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 12:30:51,774 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 12:30:51,774 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:30:51,774 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 12:30:51,774 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 12:30:51,774 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 12:30:51,774 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 12:30:51,774 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 12:30:51,774 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 12:30:51,774 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 12:30:51,778 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 12:30:51,778 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 4.311 ms 12:30:51,778 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 3 commands after 5.140 μs 12:30:51,778 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 12:30:51,778 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 12:30:51,778 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c0914238@3f26699d} 12:30:51,778 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 2 synchronized callback(s) 12:30:51,780 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 12:30:51,780 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 3 completion(s) pending 12:30:51,780 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 3 commands in 2.489 ms 12:30:51,780 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 12:30:51,780 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 3 completion(s) 12:30:51,780 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 12:30:51,780 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c0914238@3f26699d} 12:30:51,780 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 12:30:51,780 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 12:30:51,780 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 12:30:51,780 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 12:30:51,780 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 12:30:51,781 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 12:30:51,781 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 12:30:51,781 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c0914238@3f26699d} 12:30:51,781 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d839528] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-6340472794093792461/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069376DBB-2E8CC65F.tmp 12:30:51,781 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 6.657 ms [WARN] [12/09/2025 00:30:51.781] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][12/09/2025 00:30:51.781] [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'. 12:30:51,781 AM [test-pekko.actor.default-dispatcher-11] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 12:30:51,783 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d839528] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-6340472794093792461/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069376DBB-2E8CC65F.v1 12:30:51,783 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d839528] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-6340472794093792461/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069376DBB-2E8CC65F.v1 12:30:51,783 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d839528] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6340472794093792461/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 12:30:51,783 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d839528] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6340472794093792461/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 12:30:51,783 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d839528] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6340472794093792461/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 12:30:51,783 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d839528] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-12-09T00:30:51.780977759Z, file=/tmp/junit-6340472794093792461/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069376DBB-2E8CC65F.v1, size=539, entryCompress=NONE, stateCompress=NONE} 12:30:51,783 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d839528] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 12:30:51,783 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 12:30:51,783 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-12-09T00:30:51.780977759Z 12:30:51,783 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 12:30:51,783 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 12:30:51,784 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 3.330 ms 12:30:51,784 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 12:30:51,784 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 12:30:51,784 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 12:30:51,784 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 170.9 μs 12:30:51,784 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 12:30:51,784 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 12:30:51,921 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-6340472794093792461/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069376DBB-2E8CC65F.v1 12:30:51,922 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6340472794093792461/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 12:30:51,922 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6340472794093792461/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 12:30:51,922 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6340472794093792461/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 12:30:51,922 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-12-09T00:30:51.780977759Z, file=/tmp/junit-6340472794093792461/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069376DBB-2E8CC65F.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 12:30:51,923 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#-239284340] 12:30:51,934 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower502#-95918107] 12:30:51,934 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader503#-353172200] 12:30:51,934 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 12:30:51,934 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#627,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155]/waiting 12:30:51,935 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 150.8 ms 12:30:51,935 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 11.29 μs 12:30:51,935 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 12:30:51,935 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 12:30:51,935 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 12:30:51,935 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 12:30:51,935 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 12:30:51,938 AM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 12:30:51,938 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:51,939 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 12:30:51,939 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 12:30:51,939 AM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 12:30:51,939 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:30:51,940 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 12:30:51,940 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior504#-2073358655] 12:30:51,954 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower505#-1452093413] 12:30:51,954 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader506#-259021300] 12:30:51,958 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 12:30:51,958 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:51,958 AM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 12:30:51,959 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 12:30:51,959 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 12:30:51,960 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 12:30:51,960 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 12:30:51,960 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#-2067963842] 12:30:51,971 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower508#268009569] 12:30:51,971 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader509#-837710605] 12:30:51,974 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 12:30:51,974 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:51,975 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 12:30:51,976 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 12:30:51,976 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 12:30:51,976 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 12:30:51,976 AM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 12:30:51,976 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 12:30:51,976 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 12:30:51,976 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 12:30:51,976 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 12:30:51,976 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 12:30:51,976 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:30:51,977 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 12:30:51,977 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 12:30:51,977 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 12:30:51,977 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 12:30:51,977 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 12:30:51,977 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 12:30:51,977 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 12:30:51,977 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 12:30:51,977 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 12:30:51,977 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 12:30:51,978 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior510#-1782949169] 12:30:51,989 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower511#-254669753] 12:30:51,989 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader512#-904445815] 12:30:51,992 AM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 12:30:51,992 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:51,993 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 12:30:51,993 AM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 12:30:51,994 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#1631973497] 12:30:52,4 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower514#2092049959] 12:30:52,4 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader515#1694838305] 12:30:52,7 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 12:30:52,7 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:52,8 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 12:30:52,8 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 12:30:52,8 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 12:30:52,8 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 12:30:52,9 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 12:30:52,10 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 12:30:52,10 AM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 12:30:52,10 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 12:30:52,10 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 12:30:52,10 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 12:30:52,10 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 12:30:52,10 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 12:30:52,10 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:30:52,10 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 12:30:52,10 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 12:30:52,11 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 12:30:52,11 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 12:30:52,11 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior516#366789191] 12:30:52,22 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower517#-1097158616] 12:30:52,22 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518#-672347510] 12:30:52,25 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 12:30:52,25 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:52,25 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 12:30:52,26 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 12:30:52,26 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 12:30:52,27 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:30:52,27 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 12:30:52,27 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 12:30:52,28 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 12:30:52,28 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 12:30:52,29 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:30:52,29 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 12:30:52,29 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 12:30:52,30 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 12:30:52,30 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 12:30:52,31 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:30:52,31 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 12:30:52,31 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior519#-1866955690] 12:30:52,42 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower520#-743580603] 12:30:52,42 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader521#751980561] 12:30:52,45 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 12:30:52,46 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:52,246 AM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.82:17355, Removed) 12:30:52,246 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 12:30:52,246 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 12:30:52,246 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 12:30:52,246 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 12:30:52,247 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior522#-1844138204] 12:30:52,248 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower523#2041542818] 12:30:52,249 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader524#1531225110] 12:30:52,253 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:52,253 AM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 12:30:52,454 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior525#-1654842449] 12:30:52,455 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower526#1192548025] 12:30:52,455 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader527#-637343954] 12:30:52,457 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 12:30:52,458 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:52,459 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 12:30:52,459 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 12:30:52,459 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior528#-1110327531] 12:30:52,470 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower529#-1314657833] 12:30:52,470 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader530#-606260056] 12:30:52,472 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 12:30:52,472 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:52,473 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 12:30:52,473 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 12:30:52,473 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 12:30:52,473 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 12:30:52,473 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 12:30:52,473 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 12:30:52,473 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 12:30:52,474 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:30:52,474 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 12:30:52,474 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 12:30:52,474 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 12:30:52,474 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 12:30:52,474 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 12:30:52,474 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 12:30:52,474 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 12:30:52,474 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 12:30:52,474 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 12:30:52,474 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 12:30:52,474 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 12:30:52,474 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 12:30:52,475 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior531#165555380] 12:30:52,475 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower532#-1256116672] 12:30:52,475 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader533#-309610716] 12:30:52,477 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 12:30:52,477 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:52,478 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 12:30:52,478 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 12:30:52,478 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 12:30:52,478 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 12:30:52,479 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 12:30:52,479 AM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:30:52,481 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior534#-1944617157] 12:30:52,482 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower535#1418820163] 12:30:52,482 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader536#-1935898927] 12:30:52,485 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 12:30:52,485 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:52,485 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 12:30:52,485 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 12:30:52,486 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 12:30:52,486 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 12:30:52,486 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 12:30:52,486 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior537#641365237] 12:30:52,487 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower538#-208022991] 12:30:52,488 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader539#707011616] 12:30:52,491 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries 12:30:52,495 AM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 12:30:52,495 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [12/09/2025 00:30:52.496] [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@4fb0af2c [INFO] [pekkoDeadLetter][12/09/2025 00:30:52.496] [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'. 12:30:52,496 AM [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'. 12:30:52,496 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 12:30:52,496 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 12:30:52,496 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 12:30:52,496 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 12:30:52,497 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 12:30:52,497 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 12:30:52,497 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 12:30:52,497 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/junit-7530480657161577045/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 12:30:52,497 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 12:30:52,497 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 12:30:52,499 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=0, votedFor=null 12:30:52,499 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 12:30:52,499 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7530480657161577045/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 12:30:52,499 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7530480657161577045/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 12:30:52,499 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7530480657161577045/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 12:30:52,499 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 12:30:52,499 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 12:30:52,499 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 12:30:52,499 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 12:30:52,499 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 2.122 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 12:30:52,499 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and can restore from snapshot 12:30:52,501 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7530480657161577045/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 12:30:52,501 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7530480657161577045/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 12:30:52,501 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7530480657161577045/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 12:30:52,501 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 12:30:52,501 AM [test-pekko.actor.default-dispatcher-6] [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 12:30:52,505 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 12:30:52,505 AM [test-pekko.actor.default-dispatcher-6] [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]]} 12:30:52,505 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 12:30:52,505 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:30:52,505 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 12:30:52,505 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 12:30:52,505 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 12:30:52,505 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 12:30:52,505 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 12:30:52,505 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 12:30:52,505 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 7.703 ms 12:30:52,505 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 12:30:52,505 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 12:30:52,505 AM [test-pekko.actor.default-dispatcher-6] [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} 12:30:52,505 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 12:30:52,505 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 12:30:52,505 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 12:30:52,505 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 12:30:52,505 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 12:30:52,505 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 12:30:52,505 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 12:30:52,505 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 12:30:52,505 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 12:30:52,505 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 12:30:52,505 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 12:30:52,505 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 12:30:52,505 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 12:30:52,505 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 12:30:52,505 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 12:30:52,508 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 12:30:52,508 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 12:30:52,508 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 3.329 ms 12:30:52,508 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 12:30:52,508 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 3.250 μs 12:30:52,508 AM [test-pekko.actor.default-dispatcher-6] [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/0x00000007c0914238@7199794f} 12:30:52,508 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 12:30:52,510 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 12:30:52,510 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 12:30:52,510 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 1.578 ms 12:30:52,510 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 12:30:52,510 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 12:30:52,510 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 12:30:52,510 AM [test-pekko.actor.default-dispatcher-6] [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/0x00000007c0914238@7199794f} 12:30:52,510 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 12:30:52,510 AM [test-pekko.actor.default-dispatcher-6] [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] 12:30:52,510 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 12:30:52,510 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 12:30:52,510 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 12:30:52,510 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 12:30:52,510 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 12:30:52,510 AM [test-pekko.actor.default-dispatcher-6] [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/0x00000007c0914238@7199794f} 12:30:52,510 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d346231] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-7530480657161577045/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069376DBC-1E6E4127.tmp 12:30:52,510 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 4.779 ms [WARN] [12/09/2025 00:30:52.510] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][12/09/2025 00:30:52.510] [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'. 12:30:52,511 AM [test-pekko.actor.default-dispatcher-12] [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'. 12:30:52,512 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d346231] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-7530480657161577045/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069376DBC-1E6E4127.v1 12:30:52,512 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d346231] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-7530480657161577045/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069376DBC-1E6E4127.v1 12:30:52,512 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d346231] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7530480657161577045/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 12:30:52,512 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d346231] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7530480657161577045/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 12:30:52,512 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d346231] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7530480657161577045/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 12:30:52,512 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d346231] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-12-09T00:30:52.510542119Z, file=/tmp/junit-7530480657161577045/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069376DBC-1E6E4127.v1, size=573, entryCompress=NONE, stateCompress=NONE} 12:30:52,512 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d346231] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 12:30:52,512 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 12:30:52,512 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-12-09T00:30:52.510542119Z 12:30:52,512 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 12:30:52,513 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 12:30:52,513 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 2.651 ms 12:30:52,513 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 12:30:52,513 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 12:30:52,513 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 12:30:52,513 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 100.5 μs 12:30:52,513 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 12:30:52,513 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 12:30:52,652 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-7530480657161577045/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069376DBC-1E6E4127.v1 12:30:52,652 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7530480657161577045/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 12:30:52,652 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7530480657161577045/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 12:30:52,652 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7530480657161577045/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 12:30:52,652 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-12-09T00:30:52.510542119Z, file=/tmp/junit-7530480657161577045/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069376DBC-1E6E4127.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 12:30:52,654 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 12:30:52,655 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#630,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156]/waiting 12:30:52,655 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 142.3 ms 12:30:52,655 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 14.21 μs 12:30:52,655 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 12:30:52,655 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 12:30:52,655 AM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 12:30:52,655 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 12:30:52,655 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 12:30:52,656 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [12/09/2025 00:30:52.656] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@c467723 [INFO] [pekkoDeadLetter][12/09/2025 00:30:52.656] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 12:30:52,657 AM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 12:30:52,657 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 12:30:52,657 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 12:30:52,657 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 12:30:52,657 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 12:30:52,658 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 12:30:52,658 AM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 12:30:52,658 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 12:30:52,658 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 12:30:52,658 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 12:30:52,658 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 12:30:52,658 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-7530480657161577045/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069376DBC-1E6E4127.v1 12:30:52,658 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7530480657161577045/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 12:30:52,658 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7530480657161577045/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 12:30:52,658 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7530480657161577045/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 12:30:52,658 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-12-09T00:30:52.510542119Z, file=/tmp/junit-7530480657161577045/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069376DBC-1E6E4127.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 12:30:52,658 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-12-09T00:30:52.510542119Z 12:30:52,658 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 12:30:52,659 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 12:30:52,659 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 12:30:52,659 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 12:30:52,659 AM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 943.1 μs: last log index = 2, last log term = 1, napshot index = 2, snapshot term = 1, journal size = 0 12:30:52,659 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and cannot restore from snapshot 12:30:52,660 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior540#1365483132] 12:30:52,670 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower541#-1429227352] 12:30:52,671 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader542#1745083586] 12:30:52,671 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 12:30:52,671 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#633,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/waiting 12:30:52,671 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 13.01 ms 12:30:52,671 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 11.31 μs 12:30:52,671 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 12:30:52,671 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 12:30:52,671 AM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 12:30:52,671 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 12:30:52,671 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 12:30:52,675 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 12:30:52,675 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:52,976 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 12:30:53,106 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 12:30:53,356 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 12:30:53,556 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 12:30:53,557 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior543#1110732246] 12:30:53,567 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower544#701822399] 12:30:53,568 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader545#1476047602] 12:30:53,570 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:30:53,571 AM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 12:30:53,571 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 12:30:53,571 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 12:30:53,571 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 12:30:53,571 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior546#-1473491550] 12:30:53,582 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower547#285454157] 12:30:53,582 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader548#-39766902] [INFO] [12/09/2025 00:30:53.584] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 12:30:53,584 AM [test-pekko.actor.default-dispatcher-12] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [12/09/2025 00:30:53.585] [test-pekko.actor.default-dispatcher-12] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.82:17355) [INFO] [pekkoDeadLetter][12/09/2025 00:30:53.585] [test-pekko.actor.default-dispatcher-12] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-712141455] 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'. 12:30:53,585 AM [test-pekko.actor.default-dispatcher-12] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-712141455] 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] [12/09/2025 00:30:53.585] [test-pekko.actor.internal-dispatcher-10] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.82:17355] - Exiting completed [INFO] [12/09/2025 00:30:53.585] [test-pekko.actor.internal-dispatcher-10] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.82:17355] - Shutting down... 12:30:53,586 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.82:17355] - Exiting completed 12:30:53,586 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.82:17355] - Shutting down... [INFO] [12/09/2025 00:30:53.586] [test-pekko.actor.internal-dispatcher-10] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.82:17355] - Successfully shut down 12:30:53,586 AM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.82:17355] - Successfully shut down [INFO] [12/09/2025 00:30:53.587] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.82:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [12/09/2025 00:30:53.588] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.82:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 12:30:53,588 AM [test-pekko.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 12:30:53,588 AM [test-pekko.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [12/09/2025 00:30:53.591] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.170.82:17355/system/remoting-terminator] Remoting shut down. 12:30:53,591 AM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [12/09/2025 00:30:53.591] [test-pekko.actor.internal-dispatcher-4] [EventStream] shutting down: StandardOutLogger