[DEBUG] [03/04/2026 10:20:56.194] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 10:20:56,194 AM [test-pekko.actor.default-dispatcher-4] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [03/04/2026 10:20:56.194] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [03/04/2026 10:20:56.194] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [03/04/2026 10:20:56.208] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.204:17355] with UID [-5141103828120321597] 10:20:56,209 AM [test-pekko.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.204:17355] with UID [-5141103828120321597] [INFO] [03/04/2026 10:20:56.209] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.204:17355] - Starting up, Pekko version [1.2.1] ... 10:20:56,209 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.204:17355] - Starting up, Pekko version [1.2.1] ... [INFO] [03/04/2026 10:20:56.212] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.204:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [03/04/2026 10:20:56.212] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.204:17355] - Started up successfully 10:20:56,214 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.204:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [03/04/2026 10:20:56.214] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.204:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [03/04/2026 10:20:56.214] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.204:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 10:20:56,214 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.204:17355] - Started up successfully 10:20:56,214 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.204:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 10:20:56,214 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.204:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 10:20:56,227 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:56,314 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 10:20:56,315 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 10:20:56,315 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior420#56839056] 10:20:56,327 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower421#1292871528] 10:20:56,327 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader422#2067895311] 10:20:56,332 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:56,334 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 10:20:56,334 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:20:56,334 AM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 10:20:56,334 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 10:20:56,334 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 10:20:56,334 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 10:20:56,335 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:20:56,335 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 10:20:56,335 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 10:20:56,336 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 10:20:56,336 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:20:56,336 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 10:20:56,337 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior423#442804412] 10:20:56,347 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower424#-1418240480] 10:20:56,348 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader425#614660721] 10:20:56,353 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:56,356 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 10:20:56,356 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 10:20:56,357 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior426#-1279047725] 10:20:56,358 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower427#132422558] 10:20:56,358 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader428#-1474618577] 10:20:56,363 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:56,363 AM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 10:20:56,364 AM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 10:20:56,364 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:20:56,364 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 10:20:56,365 AM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 10:20:56,365 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 10:20:56,365 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 10:20:56,365 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 10:20:56,365 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 10:20:56,366 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 10:20:56,366 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 10:20:56,367 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 10:20:56,367 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior429#2094275459] 10:20:56,368 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower430#-1441817535] 10:20:56,368 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader431#-1031504520] 10:20:56,371 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:56,372 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:20:56,372 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:20:56,372 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:56,372 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 10:20:56,373 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 10:20:56,373 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 10:20:56,373 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 10:20:56,373 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 10:20:56,373 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior432#2036111086] 10:20:56,374 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower433#-2029956446] 10:20:56,374 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader434#-1657116025] 10:20:56,376 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:56,377 AM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 10:20:56,378 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior435#-27406791] 10:20:56,378 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower436#453570474] 10:20:56,378 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader437#-1039164799] 10:20:56,380 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:56,381 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 10:20:56,381 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 10:20:56,381 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior438#716397943] 10:20:56,382 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower439#-1388612118] 10:20:56,382 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader440#-85465116] 10:20:56,384 AM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 10:20:56,384 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:56,385 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 10:20:56,386 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:20:56,386 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:20:56,386 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 10:20:56,386 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 10:20:56,386 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 10:20:56,386 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 10:20:56,386 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 10:20:56,388 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 10:20:56,389 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior441#-1643593388] 10:20:56,390 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower442#-1381153116] 10:20:56,390 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader443#-34842279] 10:20:56,392 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 10:20:56,392 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:56,393 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 10:20:56,393 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 10:20:56,393 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:20:56,394 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 10:20:56,394 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior444#1258203920] 10:20:56,394 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower445#-497637879] 10:20:56,394 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader446#556115185] 10:20:56,396 AM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 10:20:56,396 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:56,397 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 10:20:56,397 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:20:56,397 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:20:56,397 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 10:20:56,397 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 10:20:56,397 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 10:20:56,397 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 10:20:56,398 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 10:20:56,398 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 10:20:56,398 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 10:20:56,398 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 10:20:56,398 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:20:56,398 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 10:20:56,399 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior447#908910456] 10:20:56,399 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower448#-474995408] 10:20:56,399 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader449#-1838754025] 10:20:56,401 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:56,402 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 10:20:56,402 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior450#-533808445] 10:20:56,402 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower451#-2041568972] 10:20:56,403 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader452#318620864] 10:20:56,404 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 10:20:56,404 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:56,405 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 10:20:56,405 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 10:20:56,405 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:20:56,405 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 10:20:56,405 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 10:20:56,405 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 10:20:56,405 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 10:20:56,405 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:20:56,406 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:20:56,406 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 10:20:56,406 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 10:20:56,406 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior453#756227572] 10:20:56,406 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower454#174752053] 10:20:56,407 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader455#1119802640] 10:20:56,408 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 10:20:56,409 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:56,409 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 10:20:56,409 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:20:56,409 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 10:20:56,409 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 10:20:56,409 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 10:20:56,409 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 10:20:56,410 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:20:56,410 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:20:56,410 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 10:20:56,410 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 10:20:56,410 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:20:56,410 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 10:20:56,410 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 10:20:56,412 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 10:20:56,413 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 10:20:56,413 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 10:20:56,413 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 10:20:56,413 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 10:20:56,413 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 10:20:56,414 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 10:20:56,414 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:20:56,415 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 10:20:56,415 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 10:20:56,415 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 10:20:56,415 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 10:20:56,415 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#-67783233] 10:20:56,417 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower457#276700985] 10:20:56,417 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader458#-2079247030] 10:20:56,421 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 10:20:56,421 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:56,422 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 10:20:56,422 AM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 10:20:56,423 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:20:56,423 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 10:20:56,423 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#1115375672] 10:20:56,424 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower460#-1206241287] 10:20:56,424 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader461#-1253164681] 10:20:56,426 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:56,429 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#-1888677964] 10:20:56,429 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower463#307408098] 10:20:56,429 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader464#1428870639] 10:20:56,432 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 10:20:56,432 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:56,432 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 10:20:56,432 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 10:20:56,433 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 10:20:56,433 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:20:56,433 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 10:20:56,433 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 10:20:56,433 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 10:20:56,433 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 10:20:56,433 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:20:56,433 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:20:56,433 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 10:20:56,434 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 10:20:56,434 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 10:20:56,434 AM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 10:20:56,434 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#-55111394] 10:20:56,434 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower466#1810431949] 10:20:56,435 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader467#1599344876] 10:20:56,437 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries 10:20:56,441 AM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:20:56,441 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 10:20:56,443 AM [test-pekko.actor.default-dispatcher-4] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 10:20:56,443 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:20:56,443 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:20:56,443 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 10:20:56,444 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 10:20:56,444 AM [test-pekko.actor.default-dispatcher-4] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 10:20:56,444 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 10:20:56,444 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 10:20:56,444 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 10:20:56,444 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - /tmp/junit-12954442158628251440/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist [WARN] [03/04/2026 10:20:56.445] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@31538ad7 [INFO] [pekkoDeadLetter][03/04/2026 10:20:56.445] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:20:56,446 AM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:20:56,446 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=0, votedFor=null 10:20:56,446 AM [test-pekko.actor.default-dispatcher-4] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 10:20:56,446 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12954442158628251440/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:20:56,446 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12954442158628251440/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:20:56,446 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12954442158628251440/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:20:56,446 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 10:20:56,446 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 10:20:56,446 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 10:20:56,446 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 10:20:56,446 AM [test-pekko.actor.default-dispatcher-4] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed in in 2.320 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 10:20:56,446 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed and can restore from snapshot 10:20:56,447 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12954442158628251440/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:20:56,447 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12954442158628251440/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:20:56,447 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12954442158628251440/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:20:56,447 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 10:20:56,447 AM [test-pekko.actor.default-dispatcher-4] [INFO] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]}" message is greater than follower's term 0 - updating term 10:20:56,449 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:20:56,449 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 10:20:56,449 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 10:20:56,449 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:20:56,449 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 10:20:56,449 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 10:20:56,449 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 10:20:56,449 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 10:20:56,449 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 10:20:56,449 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 10:20:56,449 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:20:56,449 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 5.198 ms 10:20:56,449 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 10:20:56,449 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 10:20:56,449 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 10:20:56,449 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 10:20:56,449 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 10:20:56,449 AM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 10:20:56,449 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 10:20:56,449 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 10:20:56,449 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 10:20:56,449 AM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 10:20:56,450 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 10:20:56,452 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 10:20:56,452 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 10:20:56,452 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 3.098 ms 10:20:56,452 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 6.280 μs 10:20:56,452 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 10:20:56,452 AM [test-pekko.actor.default-dispatcher-4] [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/0x00000007c091c930@264adcd2} 10:20:56,452 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 10:20:56,453 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 10:20:56,453 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 10:20:56,453 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 612.7 μs 10:20:56,453 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 10:20:56,453 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 10:20:56,453 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 10:20:56,453 AM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 10:20:56,453 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 10:20:56,453 AM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 10:20:56,453 AM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 10:20:56,453 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 10:20:56,453 AM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 10:20:56,453 AM [test-pekko.actor.default-dispatcher-4] [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/0x00000007c091c930@264adcd2} 10:20:56,453 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d811780] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-12954442158628251440/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069A80788-1B0D4F0C.tmp 10:20:56,454 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 4.000 ms [WARN] [03/04/2026 10:20:56.454] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][03/04/2026 10:20:56.454] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:20:56,454 AM [test-pekko.actor.default-dispatcher-4] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:20:56,458 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d811780] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-12954442158628251440/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069A80788-1B0D4F0C.v1 10:20:56,458 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d811780] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12954442158628251440/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069A80788-1B0D4F0C.v1 10:20:56,458 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d811780] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12954442158628251440/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:20:56,458 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d811780] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12954442158628251440/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:20:56,458 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d811780] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12954442158628251440/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:20:56,458 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d811780] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2026-03-04T10:20:56.453857036Z, file=/tmp/junit-12954442158628251440/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069A80788-1B0D4F0C.v1, size=555, entryCompress=NONE, stateCompress=NONE} 10:20:56,458 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d811780] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 10:20:56,460 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 10:20:56,460 AM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2026-03-04T10:20:56.453857036Z 10:20:56,460 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 10:20:56,460 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 6.841 ms 10:20:56,460 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 10:20:56,460 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 10:20:56,460 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 10:20:56,460 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 10:20:56,460 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 111.0 μs 10:20:56,460 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 10:20:56,460 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 10:20:56,549 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12954442158628251440/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069A80788-1B0D4F0C.v1 10:20:56,549 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12954442158628251440/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:20:56,549 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12954442158628251440/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:20:56,549 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12954442158628251440/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:20:56,549 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2026-03-04T10:20:56.453857036Z, file=/tmp/junit-12954442158628251440/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069A80788-1B0D4F0C.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 10:20:56,552 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#-850330723] 10:20:56,554 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower469#350545823] 10:20:56,554 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader470#-1768175384] 10:20:56,555 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 10:20:56,555 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#630,testCaptureSnapshotOnLastEntryInAppendEntries-writer-154]/waiting 10:20:56,555 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 94.71 ms 10:20:56,555 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 12.89 μs 10:20:56,555 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 10:20:56,555 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:20:56,555 AM [test-pekko.actor.default-dispatcher-4] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:20:56,555 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 10:20:56,555 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 10:20:56,563 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:56,565 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior471#-1603393242] 10:20:56,566 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower472#1894912998] 10:20:56,566 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader473#1009915103] 10:20:56,568 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 10:20:56,569 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:56,570 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 10:20:56,570 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 10:20:56,570 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior474#1712885298] 10:20:56,571 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower475#-1550045569] 10:20:56,571 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader476#-666171713] 10:20:56,573 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 10:20:56,573 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:56,574 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 10:20:56,574 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 10:20:56,575 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:20:56,575 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 10:20:56,575 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 10:20:56,575 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 10:20:56,575 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 10:20:56,575 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:20:56,575 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:20:56,575 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 10:20:56,575 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 10:20:56,576 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#1433303228] 10:20:56,576 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower478#1857486855] 10:20:56,576 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader479#254913867] 10:20:56,578 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 10:20:56,578 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:56,579 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 10:20:56,580 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 10:20:56,580 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 10:20:56,580 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:20:56,580 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:20:56,580 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 10:20:56,581 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 10:20:56,581 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 10:20:56,581 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:20:56,581 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 10:20:56,581 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#1807804232] 10:20:56,582 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower481#120362236] 10:20:56,582 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader482#1766183154] 10:20:56,584 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:56,584 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior483#1460782403] 10:20:56,585 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower484#1641830256] 10:20:56,585 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader485#365491755] 10:20:56,587 AM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 10:20:56,587 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:56,588 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 10:20:56,588 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 10:20:56,588 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 10:20:56,589 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:20:56,589 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:20:56,589 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 10:20:56,589 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 10:20:56,589 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 10:20:56,590 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:20:56,590 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 10:20:56,590 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 10:20:56,590 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 10:20:56,591 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:20:56,591 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 10:20:56,591 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior486#1840779642] 10:20:56,591 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower487#670919256] 10:20:56,591 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader488#1991461867] 10:20:56,594 AM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 10:20:56,594 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:56,595 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 10:20:56,595 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:20:56,595 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 10:20:56,595 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 10:20:56,595 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 10:20:56,595 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 10:20:56,595 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:20:56,595 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 10:20:56,595 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 10:20:56,595 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 10:20:56,596 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior489#-100925979] 10:20:56,596 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower490#-726232679] 10:20:56,596 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader491#-365220400] 10:20:56,598 AM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 10:20:56,598 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:56,599 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 10:20:56,600 AM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader494 10:20:56,600 AM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader494 10:20:56,601 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 10:20:56,602 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior492#481608181] 10:20:56,603 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower493#-1585957030] 10:20:56,603 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader494#-1498236935] 10:20:56,605 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 10:20:56,605 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:56,606 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 10:20:56,606 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 10:20:56,606 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:20:56,606 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 10:20:56,606 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 10:20:56,606 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 10:20:56,606 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 10:20:56,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} 10:20:56,607 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:20:56,607 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 10:20:56,607 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 10:20:56,607 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior495#-1910300696] 10:20:56,608 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower496#963707065] 10:20:56,608 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader497#1371146601] 10:20:56,610 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 10:20:56,610 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:56,610 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 10:20:56,611 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 10:20:56,611 AM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 10:20:56,611 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:20:56,611 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:20:56,612 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#432525084] 10:20:56,612 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower499#-713565997] 10:20:56,612 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader500#-2143739948] 10:20:56,615 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 10:20:56,617 AM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 10:20:56,617 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] [WARN] [03/04/2026 10:20:56.618] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@74511299 10:20:56,618 AM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:20:56,618 AM [test-pekko.actor.default-dispatcher-4] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 10:20:56,618 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 10:20:56,618 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor [INFO] [pekkoDeadLetter][03/04/2026 10:20:56.618] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:20:56,619 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 10:20:56,619 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 10:20:56,619 AM [test-pekko.actor.default-dispatcher-4] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 10:20:56,619 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 10:20:56,619 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 10:20:56,619 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 10:20:56,619 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - /tmp/junit-12442082552669125546/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 10:20:56,622 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=0, votedFor=null 10:20:56,622 AM [test-pekko.actor.default-dispatcher-4] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=0} 10:20:56,622 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-12442082552669125546/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 10:20:56,622 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-12442082552669125546/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 10:20:56,622 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-12442082552669125546/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 10:20:56,622 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 10:20:56,622 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 10:20:56,622 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 10:20:56,622 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 10:20:56,622 AM [test-pekko.actor.default-dispatcher-4] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed in in 3.032 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 10:20:56,622 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed and can restore from snapshot 10:20:56,623 AM [test-pekko.actor.default-dispatcher-4] [INFO] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]}" message is greater than follower's term 0 - updating term 10:20:56,624 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 10:20:56,624 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 10:20:56,624 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 10:20:56,624 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:20:56,624 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 10:20:56,624 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 10:20:56,624 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 10:20:56,624 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 10:20:56,624 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 10:20:56,624 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 5.316 ms 10:20:56,625 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 10:20:56,625 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 10:20:56,625 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 10:20:56,625 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:20:56,625 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 10:20:56,625 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 10:20:56,625 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 10:20:56,625 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 10:20:56,625 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 10:20:56,625 AM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 10:20:56,625 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 10:20:56,627 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 10:20:56,627 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 10:20:56,627 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 2.786 ms 10:20:56,627 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 3 commands after 1.890 μs 10:20:56,627 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 10:20:56,627 AM [test-pekko.actor.default-dispatcher-4] [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/0x00000007c091c930@1b91ce73} 10:20:56,627 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 2 synchronized callback(s) 10:20:56,629 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 10:20:56,629 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 3 completion(s) pending 10:20:56,629 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 3 commands in 1.493 ms 10:20:56,629 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 3 completion(s) 10:20:56,629 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 10:20:56,629 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 10:20:56,629 AM [test-pekko.actor.default-dispatcher-4] [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/0x00000007c091c930@1b91ce73} 10:20:56,629 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 10:20:56,629 AM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 10:20:56,629 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 10:20:56,629 AM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 10:20:56,629 AM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 10:20:56,629 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 10:20:56,629 AM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 10:20:56,629 AM [test-pekko.actor.default-dispatcher-4] [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/0x00000007c091c930@1b91ce73} 10:20:56,629 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d163862] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-12442082552669125546/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069A80788-25872845.tmp 10:20:56,629 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 4.457 ms [WARN] [03/04/2026 10:20:56.629] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][03/04/2026 10:20:56.630] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:20:56,630 AM [test-pekko.actor.default-dispatcher-4] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:20:56,631 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d163862] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-12442082552669125546/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069A80788-25872845.v1 10:20:56,631 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d163862] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-12442082552669125546/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069A80788-25872845.v1 10:20:56,631 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d163862] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-12442082552669125546/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 10:20:56,631 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d163862] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-12442082552669125546/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 10:20:56,631 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d163862] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-12442082552669125546/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 10:20:56,631 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d163862] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2026-03-04T10:20:56.629614661Z, file=/tmp/junit-12442082552669125546/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069A80788-25872845.v1, size=539, entryCompress=NONE, stateCompress=NONE} 10:20:56,631 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d163862] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 10:20:56,631 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 10:20:56,631 AM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2026-03-04T10:20:56.629614661Z 10:20:56,631 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 10:20:56,631 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 10:20:56,631 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 2.473 ms 10:20:56,631 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 10:20:56,631 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 10:20:56,631 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 10:20:56,632 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 10:20:56,632 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 101.3 μs 10:20:56,632 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 10:20:56,774 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-12442082552669125546/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069A80788-25872845.v1 10:20:56,774 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-12442082552669125546/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 10:20:56,774 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-12442082552669125546/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 10:20:56,774 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-12442082552669125546/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 10:20:56,775 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2026-03-04T10:20:56.629614661Z, file=/tmp/junit-12442082552669125546/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069A80788-25872845.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 10:20:56,777 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#852037094] 10:20:56,788 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower502#-84118770] 10:20:56,789 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader503#-128403904] 10:20:56,789 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 10:20:56,789 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#634,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155]/waiting 10:20:56,789 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 157.6 ms 10:20:56,789 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 15.43 μs 10:20:56,789 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 10:20:56,790 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 10:20:56,790 AM [test-pekko.actor.default-dispatcher-4] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 10:20:56,790 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 10:20:56,790 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 10:20:56,795 AM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 10:20:56,796 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:56,797 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 10:20:56,798 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 10:20:56,798 AM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 10:20:56,798 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:20:56,799 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 10:20:56,799 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior504#935542349] 10:20:56,810 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower505#-124320697] 10:20:56,811 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader506#1647755263] 10:20:56,815 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 10:20:56,815 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:56,816 AM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 10:20:56,818 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 10:20:56,818 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 10:20:56,818 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 10:20:56,819 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 10:20:56,819 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#1235318652] 10:20:56,830 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower508#1177871633] 10:20:56,830 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader509#1050544207] 10:20:56,834 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 10:20:56,835 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:56,836 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 10:20:56,836 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 10:20:56,837 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 10:20:56,837 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 10:20:56,837 AM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 10:20:56,837 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 10:20:56,837 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 10:20:56,837 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 10:20:56,837 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 10:20:56,837 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 10:20:56,837 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:20:56,838 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 10:20:56,838 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 10:20:56,838 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 10:20:56,838 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:20:56,838 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 10:20:56,838 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 10:20:56,838 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 10:20:56,839 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 10:20:56,839 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 10:20:56,839 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 10:20:56,839 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior510#-1655281292] 10:20:56,850 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower511#1086643711] 10:20:56,850 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader512#1893476537] 10:20:56,853 AM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 10:20:56,853 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:56,854 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 10:20:56,854 AM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 10:20:56,855 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#-702072193] 10:20:56,865 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower514#410058683] 10:20:56,865 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader515#1118804109] 10:20:56,869 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 10:20:56,870 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:56,871 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 10:20:56,871 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:20:56,871 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:20:56,871 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 10:20:56,872 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 10:20:56,873 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 10:20:56,873 AM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 10:20:56,873 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:20:56,873 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 10:20:56,873 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 10:20:56,873 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 10:20:56,873 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 10:20:56,873 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:20:56,874 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 10:20:56,874 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 10:20:56,874 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 10:20:56,874 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 10:20:56,875 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior516#-1136375632] 10:20:56,886 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower517#613417589] 10:20:56,886 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518#-1550295031] 10:20:56,890 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 10:20:56,890 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:56,891 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 10:20:56,892 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 10:20:56,892 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 10:20:56,893 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:20:56,893 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:20:56,893 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 10:20:56,894 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 10:20:56,894 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 10:20:56,895 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:20:56,895 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 10:20:56,895 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 10:20:56,896 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 10:20:56,896 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 10:20:56,896 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:20:56,897 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 10:20:56,897 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior519#589799004] 10:20:56,908 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower520#797426991] 10:20:56,908 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader521#584772922] 10:20:56,912 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 10:20:56,912 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:57,113 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.204:17355, Removed) 10:20:57,113 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 10:20:57,113 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 10:20:57,113 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 10:20:57,113 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 10:20:57,113 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior522#89849415] 10:20:57,124 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower523#-1142381188] 10:20:57,125 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader524#1667652344] 10:20:57,129 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:57,129 AM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 10:20:57,381 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior525#464221504] 10:20:57,392 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower526#-7857284] 10:20:57,392 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader527#-512424526] 10:20:57,396 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 10:20:57,397 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:57,399 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 10:20:57,399 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 10:20:57,400 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior528#489478464] 10:20:57,411 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower529#1766677608] 10:20:57,411 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader530#-828061246] 10:20:57,415 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 10:20:57,417 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:57,418 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 10:20:57,418 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 10:20:57,418 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 10:20:57,418 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 10:20:57,418 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 10:20:57,418 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 10:20:57,419 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 10:20:57,419 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:20:57,419 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 10:20:57,419 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 10:20:57,419 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 10:20:57,419 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:20:57,420 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 10:20:57,420 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 10:20:57,420 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 10:20:57,420 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 10:20:57,420 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 10:20:57,420 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 10:20:57,420 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 10:20:57,420 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 10:20:57,420 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior531#-1052724054] 10:20:57,431 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower532#-1577179389] 10:20:57,431 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader533#774669783] 10:20:57,435 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 10:20:57,436 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:57,436 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 10:20:57,436 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:20:57,436 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:20:57,438 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 10:20:57,441 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 10:20:57,442 AM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:20:57,442 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior534#-978962842] 10:20:57,453 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower535#1834412370] 10:20:57,453 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader536#1323618998] 10:20:57,460 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 10:20:57,460 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:57,462 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 10:20:57,463 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 10:20:57,463 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 10:20:57,463 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 10:20:57,463 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 10:20:57,464 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior537#-731679886] 10:20:57,475 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower538#808663896] 10:20:57,475 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader539#1623616032] 10:20:57,480 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries 10:20:57,483 AM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:20:57,483 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [03/04/2026 10:20:57.484] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@6587152b [INFO] [pekkoDeadLetter][03/04/2026 10:20:57.484] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:20:57,484 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. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:20:57,485 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 10:20:57,485 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 10:20:57,485 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 10:20:57,486 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 10:20:57,486 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 10:20:57,486 AM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 10:20:57,486 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 10:20:57,486 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 10:20:57,486 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 10:20:57,486 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/junit-2820162136625359055/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 10:20:57,490 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=0, votedFor=null 10:20:57,490 AM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 10:20:57,490 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-2820162136625359055/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 10:20:57,490 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-2820162136625359055/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 10:20:57,490 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-2820162136625359055/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 10:20:57,490 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 10:20:57,490 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 10:20:57,490 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 10:20:57,490 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 10:20:57,490 AM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 3.816 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 10:20:57,490 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and can restore from snapshot 10:20:57,584 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-2820162136625359055/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 10:20:57,584 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-2820162136625359055/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 10:20:57,584 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-2820162136625359055/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 10:20:57,584 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 10:20:57,584 AM [test-pekko.actor.default-dispatcher-12] [INFO] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]}" message is greater than follower's term 0 - updating term 10:20:57,587 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:20:57,587 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 10:20:57,587 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 10:20:57,587 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:20:57,587 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 10:20:57,587 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 10:20:57,588 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 10:20:57,588 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 10:20:57,588 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 10:20:57,588 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 10:20:57,588 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 10:20:57,588 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 10:20:57,588 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 101.3 ms 10:20:57,588 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:20:57,588 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 10:20:57,588 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 10:20:57,588 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 10:20:57,588 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 10:20:57,588 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 10:20:57,588 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 10:20:57,588 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 10:20:57,588 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 10:20:57,588 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 10:20:57,588 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 10:20:57,588 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 10:20:57,588 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 10:20:57,588 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 10:20:57,588 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 10:20:57,588 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 10:20:57,592 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 10:20:57,592 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 4.154 ms 10:20:57,592 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 10:20:57,592 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 3.550 μs 10:20:57,592 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 10:20:57,592 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c091c930@4bb762d0} 10:20:57,592 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 10:20:57,592 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c091c930@4bb762d0} 10:20:57,592 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 10:20:57,593 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 10:20:57,593 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 10:20:57,593 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 10:20:57,593 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 1.190 ms 10:20:57,593 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 10:20:57,593 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 10:20:57,593 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 10:20:57,593 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 10:20:57,593 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 10:20:57,593 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 10:20:57,593 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 10:20:57,593 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 10:20:57,593 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c091c930@4bb762d0} 10:20:57,593 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 5.239 ms 10:20:57,593 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d184643] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-2820162136625359055/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069A80789-2363E6A9.tmp [WARN] [03/04/2026 10:20:57.594] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][03/04/2026 10:20:57.594] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:20:57,594 AM [test-pekko.actor.default-dispatcher-11] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:20:57,595 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d184643] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-2820162136625359055/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069A80789-2363E6A9.v1 10:20:57,596 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d184643] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-2820162136625359055/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069A80789-2363E6A9.v1 10:20:57,596 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d184643] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-2820162136625359055/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 10:20:57,596 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d184643] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-2820162136625359055/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 10:20:57,596 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d184643] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-2820162136625359055/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 10:20:57,596 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d184643] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-03-04T10:20:57.593749673Z, file=/tmp/junit-2820162136625359055/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069A80789-2363E6A9.v1, size=573, entryCompress=NONE, stateCompress=NONE} 10:20:57,596 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d184643] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 10:20:57,596 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 10:20:57,596 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2026-03-04T10:20:57.593749673Z 10:20:57,596 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 10:20:57,596 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 10:20:57,596 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.189 ms 10:20:57,596 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 10:20:57,596 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 10:20:57,596 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 10:20:57,596 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 165.1 μs 10:20:57,597 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 10:20:57,597 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 10:20:57,740 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-2820162136625359055/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069A80789-2363E6A9.v1 10:20:57,740 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-2820162136625359055/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 10:20:57,740 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-2820162136625359055/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 10:20:57,740 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-2820162136625359055/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 10:20:57,740 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-03-04T10:20:57.593749673Z, file=/tmp/junit-2820162136625359055/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069A80789-2363E6A9.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 10:20:57,744 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 10:20:57,746 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#637,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156]/waiting 10:20:57,746 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 149.3 ms 10:20:57,746 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 20.81 μs 10:20:57,746 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 10:20:57,746 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 10:20:57,746 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 10:20:57,746 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 10:20:57,746 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 10:20:57,747 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 10:20:57,747 AM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [WARN] [03/04/2026 10:20:57.747] [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@3b1254c1 [INFO] [pekkoDeadLetter][03/04/2026 10:20:57.747] [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'. 10:20:57,748 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 10:20:57,748 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 10:20:57,748 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 10:20:57,749 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 10:20:57,749 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 10:20:57,749 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 10:20:57,749 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 10:20:57,749 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 10:20:57,749 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 10:20:57,749 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:20:57,749 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-2820162136625359055/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069A80789-2363E6A9.v1 10:20:57,749 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-2820162136625359055/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 10:20:57,749 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-2820162136625359055/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 10:20:57,749 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-2820162136625359055/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 10:20:57,749 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-03-04T10:20:57.593749673Z, file=/tmp/junit-2820162136625359055/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069A80789-2363E6A9.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 10:20:57,749 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2026-03-04T10:20:57.593749673Z 10:20:57,749 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 10:20:57,750 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 10:20:57,750 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 10:20:57,750 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 10:20:57,750 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 1.291 ms: last log index = 2, last log term = 1, napshot index = 2, snapshot term = 1, journal size = 0 10:20:57,750 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and cannot restore from snapshot 10:20:57,751 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior540#1415083513] 10:20:57,752 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower541#-1650955450] 10:20:57,752 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader542#-1353624740] 10:20:57,752 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 10:20:57,752 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#640,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/waiting 10:20:57,752 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.260 ms 10:20:57,752 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 7.661 μs 10:20:57,752 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 10:20:57,752 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 10:20:57,752 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 10:20:57,752 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 10:20:57,753 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 10:20:57,758 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 10:20:57,758 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:58,59 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 10:20:58,189 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 10:20:58,439 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 10:20:58,640 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 10:20:58,640 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior543#106888875] 10:20:58,652 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower544#788551685] 10:20:58,652 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader545#55308550] 10:20:58,658 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:20:58,660 AM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 10:20:58,660 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 10:20:58,660 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 10:20:58,660 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 10:20:58,661 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior546#272582831] 10:20:58,672 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower547#1886109872] 10:20:58,672 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader548#-1625519685] [INFO] [03/04/2026 10:20:58.674] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 10:20:58,675 AM [test-pekko.actor.default-dispatcher-11] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [03/04/2026 10:20:58.676] [test-pekko.actor.default-dispatcher-11] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.204:17355) [INFO] [pekkoDeadLetter][03/04/2026 10:20:58.676] [test-pekko.actor.default-dispatcher-11] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-66012077] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:20:58,676 AM [test-pekko.actor.default-dispatcher-11] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-66012077] 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] [03/04/2026 10:20:58.677] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.204:17355] - Exiting completed 10:20:58,678 AM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.204:17355] - Exiting completed [INFO] [03/04/2026 10:20:58.677] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.204:17355] - Shutting down... [INFO] [03/04/2026 10:20:58.677] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.204:17355] - Successfully shut down 10:20:58,678 AM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.204:17355] - Shutting down... 10:20:58,678 AM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.204:17355] - Successfully shut down [INFO] [03/04/2026 10:20:58.679] [test-pekko.remote.default-remote-dispatcher-6] [pekko://test@10.30.170.204:17355/system/remoting-terminator] Shutting down remote daemon. 10:20:58,679 AM [test-pekko.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 10:20:58,680 AM [test-pekko.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [03/04/2026 10:20:58.679] [test-pekko.remote.default-remote-dispatcher-6] [pekko://test@10.30.170.204:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 10:20:58,682 AM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [03/04/2026 10:20:58.682] [test-pekko.remote.default-remote-dispatcher-6] [pekko://test@10.30.170.204:17355/system/remoting-terminator] Remoting shut down. [DEBUG] [03/04/2026 10:20:58.682] [test-pekko.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger