[DEBUG] [01/20/2026 01:10:57.211] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 01:10:57,212 AM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [01/20/2026 01:10:57.212] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [01/20/2026 01:10:57.212] [main] [EventStream(pekko://test)] Default Loggers started 01:10:57,222 AM [test-pekko.actor.default-dispatcher-7] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.113:17355] with UID [368027303827170314] [INFO] [01/20/2026 01:10:57.222] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.113:17355] with UID [368027303827170314] [INFO] [01/20/2026 01:10:57.223] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.113:17355] - Starting up, Pekko version [1.2.1] ... 01:10:57,223 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.113:17355] - Starting up, Pekko version [1.2.1] ... [INFO] [01/20/2026 01:10:57.226] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.113:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [01/20/2026 01:10:57.226] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.113:17355] - Started up successfully 01:10:57,227 AM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.113:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 01:10:57,227 AM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.113:17355] - Started up successfully [INFO] [01/20/2026 01:10:57.233] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.113:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [01/20/2026 01:10:57.233] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.113:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 01:10:57,234 AM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.113:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 01:10:57,234 AM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.113:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 01:10:57,241 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:57,377 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 01:10:57,378 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 01:10:57,379 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior420#74075010] 01:10:57,394 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower421#-1252431408] 01:10:57,396 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader422#-1196806400] 01:10:57,404 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:57,407 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]]} 01:10:57,407 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:10:57,407 AM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 01:10:57,407 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 01:10:57,407 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 01:10:57,408 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 01:10:57,408 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} 01:10:57,408 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 01:10:57,408 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 01:10:57,410 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 01:10:57,410 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 01:10:57,410 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 01:10:57,444 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior423#-561385696] 01:10:57,449 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower424#-215779004] 01:10:57,450 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader425#2102122812] 01:10:57,457 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:57,459 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 01:10:57,459 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 01:10:57,460 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior426#832850398] 01:10:57,460 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower427#1445723901] 01:10:57,461 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader428#1470754963] 01:10:57,464 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:57,464 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 01:10:57,465 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 01:10:57,466 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} 01:10:57,466 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 01:10:57,466 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 01:10:57,467 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 01:10:57,467 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 01:10:57,467 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. 01:10:57,467 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 01:10:57,468 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 01:10:57,469 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 01:10:57,469 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 01:10:57,470 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior429#1609117195] 01:10:57,475 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower430#1634472372] 01:10:57,475 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader431#2003640698] 01:10:57,478 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:57,478 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 01:10:57,479 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 01:10:57,479 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:57,479 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 01:10:57,479 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 01:10:57,480 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 01:10:57,480 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 01:10:57,480 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 01:10:57,480 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior432#-399238606] 01:10:57,481 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower433#-1239942667] 01:10:57,481 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader434#-397814413] 01:10:57,483 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:57,484 AM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 01:10:57,485 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior435#-997443446] 01:10:57,485 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower436#1323692008] 01:10:57,485 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader437#-716582231] 01:10:57,487 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:57,488 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 01:10:57,488 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 01:10:57,489 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior438#-1166824720] 01:10:57,489 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower439#1606448] 01:10:57,489 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader440#1619763930] 01:10:57,492 AM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 01:10:57,492 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:57,494 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 01:10:57,494 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 01:10:57,494 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:10:57,494 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 01:10:57,495 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 01:10:57,495 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 01:10:57,495 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 01:10:57,495 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 01:10:57,499 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 01:10:57,500 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior441#377196690] 01:10:57,501 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower442#-1133335868] 01:10:57,501 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader443#-1149832319] 01:10:57,504 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 01:10:57,504 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:57,505 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]]} 01:10:57,505 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 01:10:57,505 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} 01:10:57,506 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 01:10:57,506 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior444#836223124] 01:10:57,506 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower445#-245668141] 01:10:57,507 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader446#-861326542] 01:10:57,509 AM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 01:10:57,509 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:57,509 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 01:10:57,509 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 01:10:57,509 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:10:57,510 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 01:10:57,510 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 01:10:57,510 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 01:10:57,510 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 01:10:57,510 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 01:10:57,511 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 01:10:57,511 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]]} 01:10:57,511 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 01:10:57,511 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} 01:10:57,511 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 01:10:57,512 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior447#1875278339] 01:10:57,512 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower448#330995350] 01:10:57,512 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader449#-1572071758] 01:10:57,514 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:57,515 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 01:10:57,515 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior450#-1602660786] 01:10:57,516 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower451#175862449] 01:10:57,516 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader452#438518944] 01:10:57,518 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 01:10:57,519 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:57,519 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 01:10:57,519 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]]} 01:10:57,519 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:10:57,520 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 01:10:57,520 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 01:10:57,520 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 01:10:57,520 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 01:10:57,520 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} 01:10:57,520 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 01:10:57,520 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 01:10:57,520 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 01:10:57,520 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior453#-1167884972] 01:10:57,521 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower454#998139556] 01:10:57,521 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader455#1661631054] 01:10:57,523 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 01:10:57,524 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:57,524 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]]} 01:10:57,524 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:10:57,525 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 01:10:57,525 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 01:10:57,525 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 01:10:57,525 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 01:10:57,525 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} 01:10:57,525 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 01:10:57,525 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 01:10:57,525 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 01:10:57,525 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 01:10:57,525 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 01:10:57,525 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 01:10:57,526 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]]} 01:10:57,526 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 01:10:57,526 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 01:10:57,526 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 01:10:57,526 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 01:10:57,526 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 01:10:57,526 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 01:10:57,526 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} 01:10:57,526 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 01:10:57,526 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 01:10:57,526 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 01:10:57,526 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 01:10:57,527 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#91345851] 01:10:57,527 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower457#1313027123] 01:10:57,528 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader458#45289440] 01:10:57,530 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 01:10:57,530 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:57,531 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 01:10:57,531 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 01:10:57,531 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} 01:10:57,531 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 01:10:57,532 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#-1286486010] 01:10:57,532 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower460#-828213254] 01:10:57,532 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader461#-1417915936] 01:10:57,535 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:57,537 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#-124697277] 01:10:57,538 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower463#-1525729703] 01:10:57,538 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader464#264016360] 01:10:57,540 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 01:10:57,540 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:57,540 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 01:10:57,541 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 01:10:57,541 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]]} 01:10:57,542 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:10:57,542 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 01:10:57,542 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 01:10:57,542 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 01:10:57,542 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 01:10:57,542 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} 01:10:57,542 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 01:10:57,542 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 01:10:57,542 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 01:10:57,542 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 01:10:57,542 AM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 01:10:57,542 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#2119724564] 01:10:57,543 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower466#-1076905018] 01:10:57,543 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader467#-420046433] 01:10:57,546 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries 01:10:57,551 AM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 01:10:57,552 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 01:10:57,554 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 01:10:57,554 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 01:10:57,554 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 01:10:57,555 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 01:10:57,556 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 01:10:57,556 AM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 01:10:57,556 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 01:10:57,556 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/junit-8798371967665853781/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 01:10:57,556 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 01:10:57,556 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands [WARN] [01/20/2026 01:10:57.556] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@13bc33d8 [INFO] [pekkoDeadLetter][01/20/2026 01:10:57.557] [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'. 01:10:57,558 AM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 01:10:57,559 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=0, votedFor=null 01:10:57,559 AM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 01:10:57,559 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8798371967665853781/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 01:10:57,559 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8798371967665853781/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 01:10:57,559 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8798371967665853781/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 01:10:57,559 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 01:10:57,559 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 01:10:57,559 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 01:10:57,559 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 01:10:57,560 AM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed in in 3.740 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 01:10:57,560 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed and can restore from snapshot 01:10:57,561 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8798371967665853781/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 01:10:57,561 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8798371967665853781/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 01:10:57,561 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8798371967665853781/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 01:10:57,561 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 01:10:57,561 AM [test-pekko.actor.default-dispatcher-12] [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 01:10:57,563 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 01:10:57,563 AM [test-pekko.actor.default-dispatcher-12] [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]]} 01:10:57,563 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 01:10:57,563 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:10:57,563 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 01:10:57,563 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 01:10:57,563 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 01:10:57,563 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 01:10:57,563 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 01:10:57,563 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 01:10:57,563 AM [test-pekko.actor.default-dispatcher-12] [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} 01:10:57,563 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 7.477 ms 01:10:57,563 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 01:10:57,563 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 01:10:57,564 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 01:10:57,564 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 01:10:57,564 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 01:10:57,564 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 01:10:57,564 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 01:10:57,564 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 01:10:57,564 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 01:10:57,564 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 01:10:57,564 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 01:10:57,567 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 01:10:57,567 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 01:10:57,567 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 3.604 ms 01:10:57,567 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 01:10:57,567 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 2.220 μs 01:10:57,567 AM [test-pekko.actor.default-dispatcher-12] [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/0x00000007c0915f68@4e68d58e} 01:10:57,567 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 01:10:57,568 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 01:10:57,568 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 01:10:57,568 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 01:10:57,568 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 901.9 μs 01:10:57,568 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 01:10:57,568 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 01:10:57,568 AM [test-pekko.actor.default-dispatcher-12] [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] 01:10:57,568 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 01:10:57,568 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 01:10:57,568 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 01:10:57,568 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 01:10:57,568 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 01:10:57,568 AM [test-pekko.actor.default-dispatcher-12] [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/0x00000007c0915f68@4e68d58e} 01:10:57,568 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d339398] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-8798371967665853781/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000696ED621-21E6BDCB.tmp 01:10:57,568 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 4.734 ms [WARN] [01/20/2026 01:10:57.569] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][01/20/2026 01:10:57.569] [test-pekko.actor.default-dispatcher-7] [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'. 01:10:57,569 AM [test-pekko.actor.default-dispatcher-7] [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'. 01:10:57,573 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d339398] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-8798371967665853781/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000696ED621-21E6BDCB.v1 01:10:57,573 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d339398] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8798371967665853781/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 01:10:57,573 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d339398] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8798371967665853781/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 01:10:57,573 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d339398] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8798371967665853781/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 01:10:57,573 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d339398] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8798371967665853781/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000696ED621-21E6BDCB.v1 01:10:57,573 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d339398] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2026-01-20T01:10:57.568769995Z, file=/tmp/junit-8798371967665853781/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000696ED621-21E6BDCB.v1, size=555, entryCompress=NONE, stateCompress=NONE} 01:10:57,574 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d339398] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 01:10:57,574 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 01:10:57,574 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2026-01-20T01:10:57.568769995Z 01:10:57,574 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 01:10:57,574 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 5.816 ms 01:10:57,574 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 01:10:57,574 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 01:10:57,574 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 01:10:57,574 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 01:10:57,574 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 142.1 μs 01:10:57,574 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 01:10:57,574 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 01:10:57,662 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8798371967665853781/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 01:10:57,662 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8798371967665853781/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 01:10:57,662 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8798371967665853781/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 01:10:57,662 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8798371967665853781/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000696ED621-21E6BDCB.v1 01:10:57,663 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2026-01-20T01:10:57.568769995Z, file=/tmp/junit-8798371967665853781/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000696ED621-21E6BDCB.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 01:10:57,666 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#-1644489678] 01:10:57,668 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower469#-1119796436] 01:10:57,668 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader470#2016587848] 01:10:57,669 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 01:10:57,669 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#630,testCaptureSnapshotOnLastEntryInAppendEntries-writer-154]/waiting 01:10:57,669 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 94.87 ms 01:10:57,669 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 23.45 μs 01:10:57,669 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 01:10:57,669 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 01:10:57,669 AM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 01:10:57,669 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 01:10:57,670 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 01:10:57,680 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:57,681 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior471#-1837889432] 01:10:57,692 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower472#-1214276224] 01:10:57,692 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader473#1830403569] 01:10:57,700 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 01:10:57,700 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:57,702 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 01:10:57,702 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 01:10:57,703 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior474#1012430536] 01:10:57,714 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower475#-1049266486] 01:10:57,714 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader476#407638690] 01:10:57,720 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 01:10:57,720 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:57,721 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 01:10:57,722 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]]} 01:10:57,722 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:10:57,722 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 01:10:57,722 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 01:10:57,722 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 01:10:57,722 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 01:10:57,722 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} 01:10:57,723 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 01:10:57,723 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 01:10:57,723 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 01:10:57,724 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#-1324959922] 01:10:57,734 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower478#1587753675] 01:10:57,734 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader479#243883779] 01:10:57,739 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 01:10:57,739 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:57,740 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 01:10:57,741 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]]} 01:10:57,743 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 01:10:57,746 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} 01:10:57,746 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 01:10:57,746 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 01:10:57,747 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]]} 01:10:57,748 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 01:10:57,748 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} 01:10:57,748 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 01:10:57,749 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#353736464] 01:10:57,760 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower481#-1826844862] 01:10:57,760 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader482#1038755203] 01:10:57,766 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:57,766 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior483#1760758666] 01:10:57,777 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower484#551734752] 01:10:57,778 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader485#1302244156] 01:10:57,782 AM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 01:10:57,782 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:57,783 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 01:10:57,784 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]]} 01:10:57,784 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 01:10:57,785 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} 01:10:57,785 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 01:10:57,785 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 01:10:57,786 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]]} 01:10:57,786 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 01:10:57,786 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} 01:10:57,786 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 01:10:57,787 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]]} 01:10:57,787 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 01:10:57,787 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} 01:10:57,787 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 01:10:57,788 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior486#551983927] 01:10:57,798 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower487#97052461] 01:10:57,798 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader488#795622810] 01:10:57,803 AM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 01:10:57,803 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:57,804 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]]} 01:10:57,805 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:10:57,805 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 01:10:57,805 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 01:10:57,805 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 01:10:57,805 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 01:10:57,805 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} 01:10:57,805 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 01:10:57,805 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 01:10:57,805 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 01:10:57,806 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior489#-711340989] 01:10:57,816 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower490#1388880221] 01:10:57,816 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader491#-1632779130] 01:10:57,822 AM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 01:10:57,822 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:57,824 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 01:10:57,826 AM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader494 01:10:57,826 AM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader494 01:10:57,828 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 01:10:57,828 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior492#-819961836] 01:10:57,839 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower493#1961831706] 01:10:57,839 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader494#210379644] 01:10:57,842 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 01:10:57,842 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:57,843 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 01:10:57,843 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]]} 01:10:57,844 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:10:57,844 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 01:10:57,844 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 01:10:57,844 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 01:10:57,844 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 01:10:57,844 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} 01:10:57,844 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 01:10:57,844 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 01:10:57,844 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 01:10:57,845 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior495#-1448327727] 01:10:57,856 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower496#1136725520] 01:10:57,856 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader497#147628980] 01:10:57,860 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 01:10:57,860 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:57,861 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 01:10:57,862 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]]} 01:10:57,862 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 01:10:57,862 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} 01:10:57,863 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 01:10:57,864 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#-844313310] 01:10:57,874 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower499#1391584464] 01:10:57,875 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader500#-1771136746] 01:10:57,879 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 01:10:57,883 AM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 01:10:57,884 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] [WARN] [01/20/2026 01:10:57.884] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@304cefff [INFO] [pekkoDeadLetter][01/20/2026 01:10:57.884] [test-pekko.actor.default-dispatcher-12] [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'. 01:10:57,884 AM [test-pekko.actor.default-dispatcher-12] [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'. 01:10:57,885 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 01:10:57,885 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 01:10:57,885 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 01:10:57,886 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 01:10:57,886 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 01:10:57,886 AM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 01:10:57,886 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 01:10:57,886 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/junit-5220462865050121386/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 01:10:57,886 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 01:10:57,886 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 01:10:57,889 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=0, votedFor=null 01:10:57,889 AM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=0} 01:10:57,889 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-5220462865050121386/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 01:10:57,889 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-5220462865050121386/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 01:10:57,889 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-5220462865050121386/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 01:10:57,889 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 01:10:57,889 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 01:10:57,889 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 01:10:57,890 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 01:10:57,890 AM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed in in 3.575 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 01:10:57,890 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed and can restore from snapshot 01:10:57,890 AM [test-pekko.actor.default-dispatcher-7] [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 01:10:57,894 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 01:10:57,894 AM [test-pekko.actor.default-dispatcher-7] [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]]} 01:10:57,894 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 01:10:57,894 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:10:57,894 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 01:10:57,894 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 01:10:57,894 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 7.329 ms 01:10:57,894 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 01:10:57,894 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 01:10:57,894 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 01:10:57,894 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 01:10:57,894 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 01:10:57,894 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 01:10:57,894 AM [test-pekko.actor.default-dispatcher-7] [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} 01:10:57,894 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 01:10:57,894 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 01:10:57,894 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 01:10:57,894 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 01:10:57,894 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 01:10:57,894 AM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 01:10:57,894 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 01:10:57,897 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 01:10:57,897 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 2.855 ms 01:10:57,897 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 3 commands after 2.350 μs 01:10:57,897 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 01:10:57,897 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 01:10:57,897 AM [test-pekko.actor.default-dispatcher-7] [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/0x00000007c0915f68@4b65f4f8} 01:10:57,897 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 2 synchronized callback(s) 01:10:57,898 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 01:10:57,898 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 3 completion(s) pending 01:10:57,898 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 3 commands in 1.512 ms 01:10:57,898 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 01:10:57,898 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 3 completion(s) 01:10:57,898 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 01:10:57,898 AM [test-pekko.actor.default-dispatcher-7] [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/0x00000007c0915f68@4b65f4f8} 01:10:57,898 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 01:10:57,898 AM [test-pekko.actor.default-dispatcher-7] [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] 01:10:57,898 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 01:10:57,898 AM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 01:10:57,898 AM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 01:10:57,899 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d142536] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-5220462865050121386/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000696ED621-3594C782.tmp 01:10:57,899 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 01:10:57,899 AM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 01:10:57,899 AM [test-pekko.actor.default-dispatcher-7] [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/0x00000007c0915f68@4b65f4f8} 01:10:57,899 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 4.678 ms [WARN] [01/20/2026 01:10:57.899] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][01/20/2026 01:10:57.899] [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'. 01:10:57,899 AM [test-pekko.actor.default-dispatcher-12] [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'. 01:10:57,900 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d142536] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-5220462865050121386/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000696ED621-3594C782.v1 01:10:57,900 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d142536] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-5220462865050121386/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000696ED621-3594C782.v1 01:10:57,901 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d142536] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-5220462865050121386/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 01:10:57,901 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d142536] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-5220462865050121386/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 01:10:57,901 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d142536] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-5220462865050121386/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 01:10:57,901 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d142536] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2026-01-20T01:10:57.898942850Z, file=/tmp/junit-5220462865050121386/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000696ED621-3594C782.v1, size=539, entryCompress=NONE, stateCompress=NONE} 01:10:57,901 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d142536] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 01:10:57,901 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 01:10:57,901 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2026-01-20T01:10:57.898942850Z 01:10:57,901 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 01:10:57,901 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 01:10:57,901 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 2.750 ms 01:10:57,901 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 01:10:57,901 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 01:10:57,901 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 01:10:57,901 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 112.9 μs 01:10:57,901 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 01:10:57,901 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 01:10:58,42 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-5220462865050121386/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000696ED621-3594C782.v1 01:10:58,42 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-5220462865050121386/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 01:10:58,42 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-5220462865050121386/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 01:10:58,42 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-5220462865050121386/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 01:10:58,42 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2026-01-20T01:10:57.898942850Z, file=/tmp/junit-5220462865050121386/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000696ED621-3594C782.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 01:10:58,44 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#1738306606] 01:10:58,46 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower502#66562074] 01:10:58,46 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader503#258582281] 01:10:58,46 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 01:10:58,46 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#633,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155]/waiting 01:10:58,47 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 145.6 ms 01:10:58,47 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 18.17 μs 01:10:58,47 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 01:10:58,47 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 01:10:58,47 AM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 01:10:58,47 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 01:10:58,47 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 01:10:58,52 AM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 01:10:58,52 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:58,53 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 01:10:58,53 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]]} 01:10:58,54 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 01:10:58,54 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} 01:10:58,54 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 01:10:58,54 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior504#846363899] 01:10:58,55 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower505#1690426098] 01:10:58,55 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader506#-1812693275] 01:10:58,57 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 01:10:58,57 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:58,58 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 01:10:58,58 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 01:10:58,58 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 01:10:58,58 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 01:10:58,59 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 01:10:58,59 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#-2007457393] 01:10:58,59 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower508#-136563473] 01:10:58,60 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader509#-907257859] 01:10:58,62 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 01:10:58,62 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:58,63 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 01:10:58,63 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]]} 01:10:58,63 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 01:10:58,63 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 01:10:58,63 AM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 01:10:58,63 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 01:10:58,63 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 01:10:58,63 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 01:10:58,63 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 01:10:58,63 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 01:10:58,63 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} 01:10:58,63 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 01:10:58,63 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 01:10:58,64 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 01:10:58,64 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 01:10:58,64 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 01:10:58,64 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 01:10:58,64 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 01:10:58,64 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 01:10:58,64 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 01:10:58,64 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 01:10:58,64 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior510#1881501050] 01:10:58,65 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower511#-30796873] 01:10:58,65 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader512#1334860459] 01:10:58,67 AM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 01:10:58,67 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:58,67 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 01:10:58,67 AM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 01:10:58,68 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#95214245] 01:10:58,68 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower514#346325538] 01:10:58,68 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader515#348810343] 01:10:58,71 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 01:10:58,72 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:58,73 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 01:10:58,73 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 01:10:58,73 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:10:58,73 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 01:10:58,74 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 01:10:58,74 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]]} 01:10:58,74 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 01:10:58,74 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:10:58,74 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 01:10:58,74 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 01:10:58,74 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 01:10:58,74 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 01:10:58,75 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} 01:10:58,75 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 01:10:58,75 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 01:10:58,75 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 01:10:58,75 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 01:10:58,75 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior516#-115782117] 01:10:58,76 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower517#270839975] 01:10:58,76 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518#837476617] 01:10:58,79 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 01:10:58,79 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:58,79 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 01:10:58,80 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]]} 01:10:58,80 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 01:10:58,80 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} 01:10:58,80 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 01:10:58,80 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 01:10:58,81 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]]} 01:10:58,81 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 01:10:58,81 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} 01:10:58,81 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 01:10:58,81 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 01:10:58,82 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]]} 01:10:58,82 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 01:10:58,82 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} 01:10:58,82 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 01:10:58,82 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior519#1365212956] 01:10:58,83 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower520#687261533] 01:10:58,83 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader521#1544789496] 01:10:58,86 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 01:10:58,86 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:58,287 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.113:17355, Removed) 01:10:58,287 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 01:10:58,287 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 01:10:58,287 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 01:10:58,287 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 01:10:58,287 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior522#289528466] 01:10:58,299 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower523#1058756357] 01:10:58,299 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader524#216755535] 01:10:58,305 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:58,305 AM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 01:10:58,556 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior525#252594823] 01:10:58,567 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower526#546360630] 01:10:58,567 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader527#923767849] 01:10:58,571 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 01:10:58,571 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:58,572 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 01:10:58,572 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 01:10:58,573 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior528#-914664792] 01:10:58,584 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower529#2049580855] 01:10:58,584 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader530#672422274] 01:10:58,587 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 01:10:58,587 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:58,588 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]]} 01:10:58,588 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 01:10:58,588 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 01:10:58,588 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 01:10:58,588 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 01:10:58,588 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 01:10:58,588 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 01:10:58,588 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} 01:10:58,588 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 01:10:58,588 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 01:10:58,588 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 01:10:58,588 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 01:10:58,588 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 01:10:58,589 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 01:10:58,589 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 01:10:58,589 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 01:10:58,589 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 01:10:58,589 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 01:10:58,589 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 01:10:58,589 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 01:10:58,590 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior531#1131153268] 01:10:58,601 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower532#-1140868331] 01:10:58,601 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader533#2004939405] 01:10:58,604 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 01:10:58,606 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:58,607 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 01:10:58,608 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 01:10:58,608 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:10:58,608 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 01:10:58,609 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]]} 01:10:58,609 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} 01:10:58,610 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior534#895902677] 01:10:58,611 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower535#135821687] 01:10:58,611 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader536#2027408576] 01:10:58,614 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 01:10:58,614 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:58,615 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 01:10:58,615 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]]} 01:10:58,616 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 01:10:58,616 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 01:10:58,616 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 01:10:58,616 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior537#1237539257] 01:10:58,617 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower538#33623454] 01:10:58,617 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader539#-1213258069] 01:10:58,620 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries 01:10:58,623 AM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 01:10:58,624 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [01/20/2026 01:10:58.624] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@104c2dfc [INFO] [pekkoDeadLetter][01/20/2026 01:10:58.624] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 01:10:58,624 AM [test-pekko.actor.default-dispatcher-7] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 01:10:58,625 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 01:10:58,625 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 01:10:58,626 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 01:10:58,626 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 01:10:58,627 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 01:10:58,627 AM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 01:10:58,627 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 01:10:58,627 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 01:10:58,627 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 01:10:58,627 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/junit-16563901147640518391/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 01:10:58,631 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=0, votedFor=null 01:10:58,631 AM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 01:10:58,631 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-16563901147640518391/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 01:10:58,631 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-16563901147640518391/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 01:10:58,631 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-16563901147640518391/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 01:10:58,631 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 01:10:58,631 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 01:10:58,631 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 01:10:58,632 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 01:10:58,632 AM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 4.326 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 01:10:58,632 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and can restore from snapshot 01:10:58,633 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-16563901147640518391/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 01:10:58,633 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-16563901147640518391/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 01:10:58,633 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-16563901147640518391/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 01:10:58,633 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 01:10:58,633 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 01:10:58,635 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 01:10:58,635 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]]} 01:10:58,635 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 01:10:58,635 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:10:58,635 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 01:10:58,635 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 01:10:58,635 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 01:10:58,635 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 01:10:58,635 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 01:10:58,635 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 7.866 ms 01:10:58,635 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 01:10:58,635 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 01:10:58,635 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 01:10:58,635 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} 01:10:58,635 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 01:10:58,635 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 01:10:58,635 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 01:10:58,635 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 01:10:58,635 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 01:10:58,635 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 01:10:58,635 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 01:10:58,635 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 01:10:58,635 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 01:10:58,635 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 01:10:58,635 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 01:10:58,635 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 01:10:58,635 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 01:10:58,635 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 01:10:58,636 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 01:10:58,638 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 01:10:58,638 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 3.126 ms 01:10:58,638 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 01:10:58,638 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 2.770 μs 01:10:58,638 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 01:10:58,638 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/0x00000007c0915f68@4a1e98a6} 01:10:58,638 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 01:10:58,640 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 01:10:58,640 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 01:10:58,640 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 01:10:58,640 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 1.542 ms 01:10:58,640 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 01:10:58,640 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 01:10:58,640 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/0x00000007c0915f68@4a1e98a6} 01:10:58,640 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 01:10:58,640 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] 01:10:58,640 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 01:10:58,640 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 01:10:58,640 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 01:10:58,640 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 01:10:58,640 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 01:10:58,640 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/0x00000007c0915f68@4a1e98a6} 01:10:58,640 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d861475] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-16563901147640518391/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000696ED622-262EB935.tmp 01:10:58,640 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 4.713 ms [WARN] [01/20/2026 01:10:58.640] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] 01:10:58,641 AM [test-pekko.actor.default-dispatcher-12] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][01/20/2026 01:10:58.641] [test-pekko.actor.default-dispatcher-13] [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'. 01:10:58,642 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d861475] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-16563901147640518391/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000696ED622-262EB935.v1 01:10:58,642 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d861475] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-16563901147640518391/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000696ED622-262EB935.v1 01:10:58,643 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d861475] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-16563901147640518391/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 01:10:58,643 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d861475] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-16563901147640518391/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 01:10:58,643 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d861475] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-16563901147640518391/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 01:10:58,643 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d861475] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-01-20T01:10:58.640596277Z, file=/tmp/junit-16563901147640518391/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000696ED622-262EB935.v1, size=573, entryCompress=NONE, stateCompress=NONE} 01:10:58,643 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d861475] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 01:10:58,643 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 01:10:58,643 AM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2026-01-20T01:10:58.640596277Z 01:10:58,643 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 01:10:58,643 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 01:10:58,643 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.100 ms 01:10:58,643 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 01:10:58,643 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 01:10:58,643 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 01:10:58,643 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 01:10:58,643 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 121.0 μs 01:10:58,643 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 01:10:58,784 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-16563901147640518391/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000696ED622-262EB935.v1 01:10:58,784 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-16563901147640518391/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 01:10:58,784 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-16563901147640518391/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 01:10:58,784 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-16563901147640518391/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 01:10:58,784 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-01-20T01:10:58.640596277Z, file=/tmp/junit-16563901147640518391/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000696ED622-262EB935.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 01:10:58,786 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 01:10:58,797 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#637,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156]/waiting 01:10:58,797 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 154.2 ms 01:10:58,798 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 14.85 μs 01:10:58,798 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 01:10:58,798 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 01:10:58,798 AM [test-pekko.actor.default-dispatcher-13] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 01:10:58,798 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 01:10:58,798 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 01:10:58,799 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [01/20/2026 01:10:58.799] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@6e498e03 [INFO] [pekkoDeadLetter][01/20/2026 01:10:58.799] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 01:10:58,799 AM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 01:10:58,800 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 01:10:58,800 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 01:10:58,800 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 01:10:58,801 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 01:10:58,802 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 01:10:58,802 AM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 01:10:58,802 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 01:10:58,802 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 01:10:58,802 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 01:10:58,802 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 01:10:58,802 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-16563901147640518391/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000696ED622-262EB935.v1 01:10:58,802 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-16563901147640518391/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 01:10:58,802 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-16563901147640518391/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 01:10:58,802 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-16563901147640518391/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 01:10:58,802 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-01-20T01:10:58.640596277Z, file=/tmp/junit-16563901147640518391/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000696ED622-262EB935.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 01:10:58,802 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2026-01-20T01:10:58.640596277Z 01:10:58,803 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 01:10:58,803 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 01:10:58,803 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 01:10:58,803 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 01:10:58,804 AM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 1.715 ms: last log index = 2, last log term = 1, napshot index = 2, snapshot term = 1, journal size = 0 01:10:58,804 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and cannot restore from snapshot 01:10:58,899 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior540#-1410568002] 01:10:58,901 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower541#-1926174437] 01:10:58,901 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader542#565995539] 01:10:58,901 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 01:10:58,901 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#640,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/waiting 01:10:58,902 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 99.80 ms 01:10:58,902 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 11.72 μs 01:10:58,902 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 01:10:58,902 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 01:10:58,902 AM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 01:10:58,902 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 01:10:58,902 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 01:10:58,908 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 01:10:58,908 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:59,208 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 01:10:59,339 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 01:10:59,589 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 01:10:59,789 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 01:10:59,790 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior543#-1982720844] 01:10:59,801 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower544#-857495884] 01:10:59,801 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader545#-976070242] 01:10:59,807 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:10:59,808 AM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 01:10:59,808 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 01:10:59,808 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 01:10:59,809 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 01:10:59,809 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior546#585440709] 01:10:59,820 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower547#1473272131] 01:10:59,820 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader548#-1570263377] [INFO] [01/20/2026 01:10:59.822] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 01:10:59,822 AM [test-pekko.actor.default-dispatcher-11] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [01/20/2026 01:10:59.823] [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.113:17355) [INFO] [pekkoDeadLetter][01/20/2026 01:10:59.823] [test-pekko.actor.default-dispatcher-12] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-564956782] 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'. 01:10:59,824 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#-564956782] 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] [01/20/2026 01:10:59.824] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.113:17355] - Exiting completed 01:10:59,824 AM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.113:17355] - Exiting completed 01:10:59,824 AM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.113:17355] - Shutting down... [INFO] [01/20/2026 01:10:59.824] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.113:17355] - Shutting down... [INFO] [01/20/2026 01:10:59.825] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.113:17355] - Successfully shut down 01:10:59,825 AM [test-pekko.actor.default-dispatcher-13] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.113:17355] - Successfully shut down [INFO] [01/20/2026 01:10:59.827] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.113:17355/system/remoting-terminator] Shutting down remote daemon. 01:10:59,827 AM [test-pekko.actor.default-dispatcher-13] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 01:10:59,828 AM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [01/20/2026 01:10:59.828] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.113:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [01/20/2026 01:10:59.830] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.113:17355/system/remoting-terminator] Remoting shut down. 01:10:59,830 AM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [01/20/2026 01:10:59.831] [test-pekko.actor.internal-dispatcher-4] [EventStream] shutting down: StandardOutLogger