[DEBUG] [03/14/2026 18:29:52.072] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 06:29:52,72 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [03/14/2026 18:29:52.073] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [03/14/2026 18:29:52.073] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [03/14/2026 18:29:52.081] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.39:17355] with UID [5974656337459683403] 06:29:52,81 PM [test-pekko.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.39:17355] with UID [5974656337459683403] [INFO] [03/14/2026 18:29:52.082] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.39:17355] - Starting up, Pekko version [1.0.3] ... 06:29:52,82 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.39:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [03/14/2026 18:29:52.084] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.39:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 06:29:52,84 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.39:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [03/14/2026 18:29:52.084] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.39:17355] - Started up successfully 06:29:52,84 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.39:17355] - Started up successfully [INFO] [03/14/2026 18:29:52.085] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.39:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [03/14/2026 18:29:52.085] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.39:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 06:29:52,85 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.39:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 06:29:52,85 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.39:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 06:29:52,97 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:52,196 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 06:29:52,196 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 06:29:52,197 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior425#-1420536306] 06:29:52,208 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower426#1382818032] 06:29:52,208 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader427#1946014995] 06:29:52,212 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:52,216 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 06:29:52,216 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:29:52,216 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 06:29:52,216 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 06:29:52,217 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 06:29:52,217 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 06:29:52,217 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:29:52,217 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 06:29:52,217 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 06:29:52,218 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 06:29:52,218 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:29:52,218 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 06:29:52,219 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior428#347622476] 06:29:52,230 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower429#144656911] 06:29:52,230 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader430#-1938324676] 06:29:52,234 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:52,235 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 06:29:52,236 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 06:29:52,236 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior431#1122602708] 06:29:52,247 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower432#1969493410] 06:29:52,247 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader433#-330183464] 06:29:52,249 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:52,250 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 06:29:52,251 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 06:29:52,251 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:29:52,252 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 06:29:52,252 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 06:29:52,253 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 06:29:52,253 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 06:29:52,253 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 06:29:52,253 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 06:29:52,254 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 06:29:52,255 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 06:29:52,255 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 06:29:52,256 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior434#-1077413648] 06:29:52,267 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower435#-1628884392] 06:29:52,267 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader436#1290543998] 06:29:52,269 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:52,269 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:29:52,270 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:29:52,270 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:52,270 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 06:29:52,271 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 06:29:52,271 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 06:29:52,271 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 06:29:52,272 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 06:29:52,272 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior437#1839566840] 06:29:52,282 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower438#-2000030034] 06:29:52,283 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader439#439389460] 06:29:52,285 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:52,286 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 06:29:52,286 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior440#-1123339838] 06:29:52,297 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower441#-1556341393] 06:29:52,297 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader442#1126535179] 06:29:52,300 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:52,301 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 06:29:52,302 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 06:29:52,302 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior443#87642527] 06:29:52,313 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower444#1335031689] 06:29:52,313 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader445#-89359233] 06:29:52,316 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 06:29:52,316 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:52,319 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 06:29:52,319 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:29:52,319 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 06:29:52,320 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 06:29:52,320 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 06:29:52,320 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 06:29:52,320 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 06:29:52,321 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 06:29:52,323 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 06:29:52,324 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior446#847647739] 06:29:52,334 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower447#-1718107189] 06:29:52,334 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader448#-337079186] 06:29:52,338 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 06:29:52,338 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:52,340 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 06:29:52,340 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 06:29:52,340 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:29:52,341 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 06:29:52,341 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior449#1556079592] 06:29:52,352 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower450#-1879943998] 06:29:52,352 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader451#-953918332] 06:29:52,355 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 06:29:52,355 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:52,355 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 06:29:52,356 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:29:52,356 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 06:29:52,356 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 06:29:52,356 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 06:29:52,357 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 06:29:52,357 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 06:29:52,358 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 06:29:52,358 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:29:52,359 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:29:52,359 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 06:29:52,359 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:29:52,360 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 06:29:52,360 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior452#-1970987297] 06:29:52,371 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower453#-896405917] 06:29:52,371 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader454#-2049552884] 06:29:52,374 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:52,375 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 06:29:52,376 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior455#561199950] 06:29:52,387 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower456#-580795841] 06:29:52,387 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader457#-1968842795] 06:29:52,391 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 06:29:52,391 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:52,392 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:29:52,392 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:29:52,393 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:29:52,393 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 06:29:52,393 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 06:29:52,393 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 06:29:52,393 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 06:29:52,393 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:29:52,393 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:29:52,393 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 06:29:52,394 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 06:29:52,394 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior458#1324843061] 06:29:52,405 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower459#-2132779562] 06:29:52,405 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader460#1784635509] 06:29:52,408 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 06:29:52,408 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:52,409 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 06:29:52,409 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:29:52,410 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 06:29:52,410 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 06:29:52,410 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 06:29:52,410 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 06:29:52,410 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:29:52,410 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:29:52,410 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 06:29:52,411 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 06:29:52,411 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:29:52,411 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 06:29:52,411 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 06:29:52,412 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 06:29:52,412 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 06:29:52,412 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 06:29:52,412 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 06:29:52,412 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 06:29:52,412 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 06:29:52,413 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 06:29:52,413 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:29:52,413 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 06:29:52,413 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 06:29:52,413 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 06:29:52,413 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 06:29:52,414 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior461#-440735499] 06:29:52,424 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower462#-1612114131] 06:29:52,425 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader463#1599683858] 06:29:52,428 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 06:29:52,428 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:52,429 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 06:29:52,430 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 06:29:52,430 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:29:52,430 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 06:29:52,431 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior464#-2028071736] 06:29:52,442 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower465#587131552] 06:29:52,442 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader466#1693044149] 06:29:52,445 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:52,449 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior467#-2128982473] 06:29:52,460 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower468#1031665266] 06:29:52,461 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader469#979789593] 06:29:52,464 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 06:29:52,464 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:52,464 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 06:29:52,465 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:29:52,465 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:29:52,466 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:29:52,466 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 06:29:52,466 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 06:29:52,466 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 06:29:52,466 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 06:29:52,466 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:29:52,466 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:29:52,466 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 06:29:52,466 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 06:29:52,466 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 06:29:52,466 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 06:29:52,467 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior470#1384213041] 06:29:52,477 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower471#-382120069] 06:29:52,477 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader472#64155867] 06:29:52,481 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [03/14/2026 18:29:52.483] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@6ab6f6f4 [INFO] [pekkoDeadLetter][03/14/2026 18:29:52.484] [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'. 06:29:52,484 PM [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'. 06:29:52,486 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 06:29:52,486 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:29:52,486 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:29:52,486 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 06:29:52,487 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:29:52,487 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 06:29:52,503 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/junit-12969187042319708008/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 06:29:52,503 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12969187042319708008/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:29:52,503 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12969187042319708008/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:29:52,503 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 06:29:52,503 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:29:52,503 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 06:29:52,507 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:29:52,507 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 06:29:52,507 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 06:29:52,507 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:29:52,507 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 06:29:52,507 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 06:29:52,507 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-12969187042319708008/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069B5A920-1E464105.tmp 06:29:52,513 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-12969187042319708008/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069B5A920-1E464105.v1 06:29:52,513 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12969187042319708008/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069B5A920-1E464105.v1 06:29:52,513 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12969187042319708008/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:29:52,513 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12969187042319708008/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:29:52,513 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12969187042319708008/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:29:52,513 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2026-03-14T18:29:52.507920645Z, file=/tmp/junit-12969187042319708008/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069B5A920-1E464105.v1, size=419, entryCompress=NONE, stateCompress=NONE} 06:29:52,513 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot completed in 5.900 ms, resetting timer for the next recovery snapshot 06:29:52,513 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 06:29:52,513 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 06:29:52,513 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 06:29:52,513 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 06:29:52,513 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 06:29:52,513 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: journal recovery completedin 147.3 μs with journalIndex=1 06:29:52,513 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 06:29:52,514 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: writer thread VirtualThread[#825,testCaptureSnapshotOnLastEntryInAppendEntries-writer-158]/runnable started 06:29:52,514 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 06:29:52,514 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 06:29:52,514 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 06:29:52,615 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12969187042319708008/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069B5A920-1E464105.v1 06:29:52,615 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12969187042319708008/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:29:52,615 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12969187042319708008/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:29:52,615 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12969187042319708008/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:29:52,615 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2026-03-14T18:29:52.507920645Z, file=/tmp/junit-12969187042319708008/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069B5A920-1E464105.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 06:29:52,618 PM [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]]} 06:29:52,618 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 06:29:52,618 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 06:29:52,618 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 06:29:52,618 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 06:29:52,619 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 104.3 ms 06:29:52,619 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 06:29:52,619 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 06:29:52,619 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 06:29:52,619 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 06:29:52,619 PM [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} 06:29:52,619 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 06:29:52,619 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 06:29:52,619 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 06:29:52,619 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 06:29:52,619 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 06:29:52,619 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 06:29:52,620 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 06:29:52,620 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 06:29:52,620 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 06:29:52,620 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 06:29:52,620 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 06:29:52,623 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 06:29:52,624 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 06:29:52,624 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 06:29:52,624 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 4.906 ms 06:29:52,624 PM [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/0x00000007c09444d0@44004d0f} 06:29:52,624 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 7.460 μs 06:29:52,624 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 06:29:52,624 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 06:29:52,625 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 06:29:52,625 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 894.7 μs 06:29:52,625 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 06:29:52,625 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 06:29:52,625 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 06:29:52,625 PM [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] 06:29:52,625 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 06:29:52,625 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 06:29:52,625 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 06:29:52,625 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 06:29:52,625 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 06:29:52,625 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d284515] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-12969187042319708008/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069B5A920-25456EAE.tmp 06:29:52,625 PM [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/0x00000007c09444d0@44004d0f} 06:29:52,625 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 5.301 ms 06:29:52,625 PM [test-pekko.actor.default-dispatcher-12] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [WARN] [03/14/2026 18:29:52.625] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][03/14/2026 18:29:52.625] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 06:29:52,627 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d284515] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-12969187042319708008/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069B5A920-25456EAE.v1 06:29:52,627 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d284515] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12969187042319708008/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069B5A920-1E464105.v1 06:29:52,627 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d284515] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12969187042319708008/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:29:52,627 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d284515] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12969187042319708008/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:29:52,627 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d284515] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12969187042319708008/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:29:52,627 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d284515] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12969187042319708008/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069B5A920-25456EAE.v1 06:29:52,627 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d284515] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2026-03-14T18:29:52.507920645Z, file=/tmp/junit-12969187042319708008/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069B5A920-1E464105.v1, size=419, entryCompress=NONE, stateCompress=NONE} 06:29:52,627 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d284515] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2026-03-14T18:29:52.625307310Z, file=/tmp/junit-12969187042319708008/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069B5A920-25456EAE.v1, size=555, entryCompress=NONE, stateCompress=NONE} 06:29:52,627 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d284515] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 06:29:52,627 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 06:29:52,627 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2026-03-14T18:29:52.625307310Z 06:29:52,627 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 06:29:52,627 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 2.829 ms 06:29:52,627 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 06:29:52,627 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 06:29:52,627 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 06:29:52,627 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 06:29:52,628 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 96.08 μs 06:29:52,628 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 06:29:52,628 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 06:29:52,821 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12969187042319708008/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:29:52,821 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12969187042319708008/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:29:52,821 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12969187042319708008/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:29:52,821 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12969187042319708008/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069B5A920-25456EAE.v1 06:29:52,821 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2026-03-14T18:29:52.625307310Z, file=/tmp/junit-12969187042319708008/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069B5A920-25456EAE.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 06:29:52,824 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior473#40169427] 06:29:52,835 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower474#-1762399307] 06:29:52,835 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader475#810497068] 06:29:52,835 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 06:29:52,835 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#825,testCaptureSnapshotOnLastEntryInAppendEntries-writer-158]/waiting 06:29:52,835 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 207.9 ms 06:29:52,836 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 13.57 μs 06:29:52,836 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 06:29:52,836 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminated thread VirtualThread[#825,testCaptureSnapshotOnLastEntryInAppendEntries-writer-158]/terminated 06:29:52,836 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:29:52,836 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:29:52,836 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:29:52,836 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:29:52,841 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:52,842 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior476#-816096599] 06:29:52,843 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower477#1843397451] 06:29:52,843 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader478#-110719311] 06:29:52,845 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 06:29:52,846 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:52,846 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 06:29:52,847 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 06:29:52,847 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior479#827448525] 06:29:52,848 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower480#1089810833] 06:29:52,848 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader481#-686238594] 06:29:52,851 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 06:29:52,851 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:52,851 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:29:52,852 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:29:52,852 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:29:52,852 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 06:29:52,852 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 06:29:52,852 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 06:29:52,852 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 06:29:52,852 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:29:52,852 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:29:52,852 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 06:29:52,852 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 06:29:52,853 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior482#298983851] 06:29:52,853 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower483#888690758] 06:29:52,853 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader484#801512991] 06:29:52,855 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 06:29:52,855 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:52,856 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:29:52,856 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:29:52,856 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 06:29:52,856 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:29:52,856 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:29:52,857 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 06:29:52,857 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:29:52,857 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 06:29:52,864 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:29:52,864 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 06:29:52,866 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior485#-1379483806] 06:29:52,869 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower486#2082427191] 06:29:52,869 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader487#146733960] 06:29:52,875 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:52,875 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior488#1647651297] 06:29:52,875 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower489#-1992194623] 06:29:52,875 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader490#1796407771] 06:29:52,877 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 06:29:52,877 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:52,878 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:29:52,879 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:29:52,879 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 06:29:52,879 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:29:52,879 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:29:52,879 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 06:29:52,880 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:29:52,880 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 06:29:52,880 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:29:52,880 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 06:29:52,881 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:29:52,881 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 06:29:52,881 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:29:52,881 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 06:29:52,881 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior491#1636717769] 06:29:52,882 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower492#-1621565104] 06:29:52,882 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader493#461898239] 06:29:52,884 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 06:29:52,884 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:52,885 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 06:29:52,885 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:29:52,885 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 06:29:52,885 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 06:29:52,885 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 06:29:52,885 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 06:29:52,886 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:29:52,886 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 06:29:52,886 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 06:29:52,886 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 06:29:52,886 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior494#794827247] 06:29:52,887 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower495#469754590] 06:29:52,887 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader496#105882559] 06:29:52,889 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 06:29:52,889 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:52,890 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 06:29:52,891 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader499 06:29:52,891 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader499 06:29:52,892 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 06:29:52,893 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior497#-291720903] 06:29:52,893 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower498#-720665781] 06:29:52,893 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader499#-1562451973] 06:29:52,895 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 06:29:52,896 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:52,896 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:29:52,896 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:29:52,896 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:29:52,897 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 06:29:52,897 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 06:29:52,897 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 06:29:52,897 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 06:29:52,897 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:29:52,897 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:29:52,897 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 06:29:52,897 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 06:29:52,926 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior500#-4863564] 06:29:52,941 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower501#246379436] 06:29:52,941 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader502#542476307] 06:29:52,951 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 06:29:52,951 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:52,953 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:29:52,953 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:29:52,954 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 06:29:52,954 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:29:52,955 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:29:52,956 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior503#201774637] 06:29:52,967 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower504#619842924] 06:29:52,967 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader505#-1988065191] 06:29:52,971 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [03/14/2026 18:29:52.973] [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@63ef7d7a [INFO] [pekkoDeadLetter][03/14/2026 18:29:52.973] [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'. 06:29:52,973 PM [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'. 06:29:52,974 PM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 06:29:52,974 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 06:29:52,974 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 06:29:52,975 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 06:29:52,976 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:29:52,976 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 06:29:52,978 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/junit-6621206976423796550/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 06:29:52,979 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6621206976423796550/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 06:29:52,979 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6621206976423796550/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 06:29:52,979 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 06:29:52,979 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 06:29:52,979 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 06:29:52,983 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 06:29:52,983 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 06:29:52,983 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: taking snapshot to clear Pekko persistence to 1 06:29:52,983 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:29:52,983 PM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Taking snapshot on entry with index -1 06:29:52,983 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 06:29:52,983 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-6621206976423796550/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069B5A920-3A9B7076.tmp 06:29:52,986 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-6621206976423796550/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069B5A920-3A9B7076.v1 06:29:52,986 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-6621206976423796550/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069B5A920-3A9B7076.v1 06:29:52,986 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6621206976423796550/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 06:29:52,986 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6621206976423796550/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 06:29:52,986 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6621206976423796550/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 06:29:52,986 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2026-03-14T18:29:52.983265398Z, file=/tmp/junit-6621206976423796550/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069B5A920-3A9B7076.v1, size=419, entryCompress=NONE, stateCompress=NONE} 06:29:52,986 PM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot completed in 3.781 ms, resetting timer for the next recovery snapshot 06:29:52,987 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed and cannot restore from snapshot 06:29:52,987 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 06:29:52,987 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 06:29:52,987 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 06:29:52,987 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 06:29:52,987 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal recovery completedin 361.8 μs with journalIndex=1 06:29:52,987 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Journal recovery completed and cannot restore from snapshot 06:29:52,987 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: writer thread VirtualThread[#830,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159]/runnable started 06:29:52,987 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 06:29:52,987 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 06:29:52,988 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: ignoring DeleteMessagesSuccess(1) 06:29:52,989 PM [test-pekko.actor.default-dispatcher-11] [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]]} 06:29:52,989 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 06:29:52,989 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 06:29:52,989 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 06:29:52,989 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 06:29:52,989 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 06:29:52,989 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 06:29:52,989 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 06:29:52,989 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 06:29:52,989 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 06:29:52,989 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 06:29:52,989 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 1.503 ms 06:29:52,989 PM [test-pekko.actor.default-dispatcher-11] [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} 06:29:52,989 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 06:29:52,989 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 06:29:52,989 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 06:29:52,989 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 06:29:52,989 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 06:29:52,989 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 06:29:52,989 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 06:29:52,993 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 06:29:52,993 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 06:29:52,993 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 3.571 ms 06:29:52,993 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 3 commands after 4.730 μs 06:29:52,993 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 06:29:52,993 PM [test-pekko.actor.default-dispatcher-11] [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/0x00000007c09444d0@6d8d5a5f} 06:29:52,993 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 2 synchronized callback(s) 06:29:52,994 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 06:29:52,994 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 3 completion(s) pending 06:29:52,994 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 3 completion(s) 06:29:52,994 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 06:29:52,994 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 3 commands in 1.741 ms 06:29:52,994 PM [test-pekko.actor.default-dispatcher-11] [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/0x00000007c09444d0@6d8d5a5f} 06:29:52,994 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 06:29:52,994 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 06:29:52,995 PM [test-pekko.actor.default-dispatcher-11] [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] 06:29:52,995 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 06:29:52,995 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 06:29:52,995 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 06:29:52,995 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 06:29:52,995 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 06:29:52,995 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d151508] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-6621206976423796550/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069B5A920-3B50D8FB.tmp 06:29:52,995 PM [test-pekko.actor.default-dispatcher-11] [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/0x00000007c09444d0@6d8d5a5f} 06:29:52,995 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 5.522 ms [WARN] [03/14/2026 18:29:52.995] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] 06:29:52,995 PM [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'. [INFO] [pekkoDeadLetter][03/14/2026 18:29:52.995] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 06:29:52,997 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d151508] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-6621206976423796550/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069B5A920-3B50D8FB.v1 06:29:52,997 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d151508] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-6621206976423796550/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069B5A920-3A9B7076.v1 06:29:52,997 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d151508] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-6621206976423796550/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069B5A920-3B50D8FB.v1 06:29:52,997 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d151508] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6621206976423796550/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 06:29:52,997 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d151508] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6621206976423796550/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 06:29:52,997 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d151508] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6621206976423796550/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 06:29:52,997 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d151508] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2026-03-14T18:29:52.983265398Z, file=/tmp/junit-6621206976423796550/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069B5A920-3A9B7076.v1, size=419, entryCompress=NONE, stateCompress=NONE} 06:29:52,997 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d151508] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2026-03-14T18:29:52.995154171Z, file=/tmp/junit-6621206976423796550/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069B5A920-3B50D8FB.v1, size=539, entryCompress=NONE, stateCompress=NONE} 06:29:52,997 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d151508] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 06:29:52,998 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 06:29:52,998 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2026-03-14T18:29:52.995154171Z 06:29:52,998 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 06:29:52,998 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 06:29:52,998 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 3.276 ms 06:29:52,998 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 06:29:52,998 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 06:29:52,998 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 06:29:52,998 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 175.4 μs 06:29:52,998 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 06:29:52,998 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 06:29:53,140 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-6621206976423796550/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069B5A920-3B50D8FB.v1 06:29:53,140 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6621206976423796550/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 06:29:53,140 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6621206976423796550/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 06:29:53,140 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6621206976423796550/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 06:29:53,140 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2026-03-14T18:29:52.995154171Z, file=/tmp/junit-6621206976423796550/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069B5A920-3B50D8FB.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 06:29:53,142 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior506#850059203] 06:29:53,153 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower507#528238074] 06:29:53,153 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader508#371931940] 06:29:53,153 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 06:29:53,153 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#830,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159]/waiting 06:29:53,154 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 155.5 ms 06:29:53,154 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 14.72 μs 06:29:53,154 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 06:29:53,154 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminated thread VirtualThread[#830,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159]/terminated 06:29:53,154 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 06:29:53,154 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 06:29:53,154 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 06:29:53,154 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 06:29:53,159 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 06:29:53,159 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:53,163 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:29:53,164 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 06:29:53,164 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 06:29:53,165 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:29:53,165 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 06:29:53,165 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior509#-1277082496] 06:29:53,176 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower510#-1986308038] 06:29:53,176 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader511#1141246684] 06:29:53,180 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 06:29:53,180 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:53,181 PM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 06:29:53,182 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 06:29:53,182 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 06:29:53,182 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 06:29:53,182 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 06:29:53,183 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior512#1178597470] 06:29:53,194 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower513#-2060759748] 06:29:53,194 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader514#1362636777] 06:29:53,199 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 06:29:53,199 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:53,199 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 06:29:53,200 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 06:29:53,200 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 06:29:53,200 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 06:29:53,200 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:29:53,200 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 06:29:53,200 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 06:29:53,200 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 06:29:53,200 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 06:29:53,200 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 06:29:53,201 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 06:29:53,201 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:29:53,201 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 06:29:53,201 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 06:29:53,201 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 06:29:53,201 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:29:53,202 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 06:29:53,202 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 06:29:53,202 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 06:29:53,202 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 06:29:53,202 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 06:29:53,202 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 06:29:53,202 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior515#-366589616] 06:29:53,213 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower516#-693014060] 06:29:53,213 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader517#873048298] 06:29:53,217 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 06:29:53,217 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:53,218 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 06:29:53,218 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 06:29:53,219 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior518#338302584] 06:29:53,229 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower519#1758622251] 06:29:53,230 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader520#-708560205] 06:29:53,233 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 06:29:53,233 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:53,234 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 06:29:53,234 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:29:53,234 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 06:29:53,234 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 06:29:53,235 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 06:29:53,236 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 06:29:53,236 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 06:29:53,236 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:29:53,236 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 06:29:53,236 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 06:29:53,236 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 06:29:53,236 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 06:29:53,236 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:29:53,237 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 06:29:53,237 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 06:29:53,237 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 06:29:53,237 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 06:29:53,238 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior521#-1827339427] 06:29:53,248 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower522#-213521771] 06:29:53,249 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader523#-1173806600] 06:29:53,252 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 06:29:53,252 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:53,253 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:29:53,254 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:29:53,254 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 06:29:53,254 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:29:53,255 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:29:53,255 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 06:29:53,255 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:29:53,256 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 06:29:53,256 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:29:53,256 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 06:29:53,256 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 06:29:53,257 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:29:53,257 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 06:29:53,258 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:29:53,258 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 06:29:53,259 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior524#885863930] 06:29:53,269 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower525#1480608224] 06:29:53,269 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader526#495940077] 06:29:53,273 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 06:29:53,274 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:53,474 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:29:53,474 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.171.39:17355, Removed) 06:29:53,474 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 06:29:53,474 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 06:29:53,474 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 06:29:53,474 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 06:29:53,475 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior527#498014124] 06:29:53,475 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower528#1448017964] 06:29:53,476 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader529#-1719100996] 06:29:53,479 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:53,480 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 06:29:53,681 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:29:53,681 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior530#-541755597] 06:29:53,682 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower531#-972115852] 06:29:53,682 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader532#1012190994] 06:29:53,684 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 06:29:53,684 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:53,685 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 06:29:53,685 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 06:29:53,686 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior533#1836313206] 06:29:53,686 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower534#-1923791601] 06:29:53,686 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader535#524718645] 06:29:53,688 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 06:29:53,688 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:53,689 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 06:29:53,689 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 06:29:53,689 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 06:29:53,689 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 06:29:53,689 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 06:29:53,689 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 06:29:53,689 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 06:29:53,689 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:29:53,689 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 06:29:53,690 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 06:29:53,690 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 06:29:53,690 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:29:53,690 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 06:29:53,690 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 06:29:53,690 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 06:29:53,690 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 06:29:53,690 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 06:29:53,690 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 06:29:53,690 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 06:29:53,690 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 06:29:53,691 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior536#1635862060] 06:29:53,691 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower537#980611585] 06:29:53,691 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader538#152425091] 06:29:53,693 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 06:29:53,693 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:53,693 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 06:29:53,693 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:29:53,694 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 06:29:53,694 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 06:29:53,694 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 06:29:53,694 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:29:53,695 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior539#586007837] 06:29:53,695 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower540#181706766] 06:29:53,695 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader541#775224468] 06:29:53,697 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 06:29:53,697 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:53,698 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 06:29:53,698 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 06:29:53,698 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 06:29:53,698 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 06:29:53,698 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 06:29:53,699 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior542#-1977296887] 06:29:53,699 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower543#-169848708] 06:29:53,699 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader544#1148243030] 06:29:53,701 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [03/14/2026 18:29:53.703] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@48a52555 [INFO] [pekkoDeadLetter][03/14/2026 18:29:53.703] [test-pekko.actor.default-dispatcher-6] [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'. 06:29:53,703 PM [test-pekko.actor.default-dispatcher-6] [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'. 06:29:53,703 PM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 06:29:53,703 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 06:29:53,703 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 06:29:53,704 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 06:29:53,704 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:29:53,704 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 06:29:53,706 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 06:29:53,706 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 06:29:53,706 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 06:29:53,706 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 06:29:53,706 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:29:53,706 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 06:29:53,708 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:29:53,708 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 06:29:53,708 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 06:29:53,708 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:29:53,708 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Taking snapshot on entry with index -1 06:29:53,708 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 06:29:53,708 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069B5A921-2A3B1033.tmp 06:29:53,711 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069B5A921-2A3B1033.v1 06:29:53,711 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 06:29:53,711 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 06:29:53,711 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 06:29:53,711 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069B5A921-2A3B1033.v1 06:29:53,711 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2026-03-14T18:29:53.708513843Z, file=/tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069B5A921-2A3B1033.v1, size=419, entryCompress=NONE, stateCompress=NONE} 06:29:53,711 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot completed in 2.956 ms, resetting timer for the next recovery snapshot 06:29:53,711 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 06:29:53,711 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 06:29:53,711 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 06:29:53,711 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 06:29:53,711 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 06:29:53,711 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 126.3 μs with journalIndex=1 06:29:53,711 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 06:29:53,711 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: writer thread VirtualThread[#833,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160]/runnable started 06:29:53,711 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 06:29:53,711 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 06:29:53,712 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 06:29:53,813 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 06:29:53,813 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 06:29:53,813 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 06:29:53,813 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069B5A921-2A3B1033.v1 06:29:53,813 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2026-03-14T18:29:53.708513843Z, file=/tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069B5A921-2A3B1033.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 06:29:53,813 PM [test-pekko.actor.default-dispatcher-5] [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]]} 06:29:53,813 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 06:29:53,813 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 06:29:53,813 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 06:29:53,813 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 06:29:53,813 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 06:29:53,813 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 06:29:53,814 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 06:29:53,814 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 06:29:53,814 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 06:29:53,814 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 06:29:53,814 PM [test-pekko.actor.default-dispatcher-5] [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} 06:29:53,814 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 102.2 ms 06:29:53,814 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 06:29:53,814 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 06:29:53,814 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 06:29:53,814 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 06:29:53,814 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 06:29:53,814 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 06:29:53,814 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 06:29:53,814 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 06:29:53,814 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 06:29:53,814 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 06:29:53,814 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 06:29:53,814 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 06:29:53,814 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 06:29:53,814 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 06:29:53,814 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 06:29:53,818 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 06:29:53,818 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 4.609 ms 06:29:53,818 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 06:29:53,818 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 4.930 μs 06:29:53,818 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 06:29:53,818 PM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c09444d0@7dae7018} 06:29:53,818 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 06:29:53,818 PM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c09444d0@7dae7018} 06:29:53,818 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 06:29:53,819 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 06:29:53,819 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 06:29:53,819 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 962.6 μs 06:29:53,819 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 06:29:53,819 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 06:29:53,819 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 06:29:53,819 PM [test-pekko.actor.default-dispatcher-5] [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] 06:29:53,819 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 06:29:53,820 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 06:29:53,820 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 06:29:53,820 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 06:29:53,820 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 06:29:53,820 PM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c09444d0@7dae7018} 06:29:53,820 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d691423] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069B5A921-30E0D79D.tmp 06:29:53,820 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 5.719 ms [WARN] [03/14/2026 18:29:53.820] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][03/14/2026 18:29:53.820] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 06:29:53,820 PM [test-pekko.actor.default-dispatcher-5] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 06:29:53,822 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d691423] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069B5A921-30E0D79D.v1 06:29:53,822 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d691423] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069B5A921-30E0D79D.v1 06:29:53,822 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d691423] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 06:29:53,822 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d691423] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 06:29:53,822 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d691423] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 06:29:53,822 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d691423] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069B5A921-2A3B1033.v1 06:29:53,822 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d691423] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2026-03-14T18:29:53.708513843Z, file=/tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069B5A921-2A3B1033.v1, size=419, entryCompress=NONE, stateCompress=NONE} 06:29:53,822 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d691423] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-03-14T18:29:53.820041629Z, file=/tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069B5A921-30E0D79D.v1, size=573, entryCompress=NONE, stateCompress=NONE} 06:29:53,822 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d691423] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 06:29:53,823 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 06:29:53,823 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2026-03-14T18:29:53.820041629Z 06:29:53,823 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 06:29:53,823 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 06:29:53,823 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.317 ms 06:29:53,823 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 06:29:53,823 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 06:29:53,823 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 06:29:53,823 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 180.8 μs 06:29:53,823 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 06:29:53,823 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 06:29:54,65 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069B5A921-30E0D79D.v1 06:29:54,65 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 06:29:54,65 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 06:29:54,65 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 06:29:54,65 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-03-14T18:29:53.820041629Z, file=/tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069B5A921-30E0D79D.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 06:29:54,67 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 06:29:54,69 PM [test-pekko.actor.default-dispatcher-5] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 06:29:54,78 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#833,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160]/waiting 06:29:54,78 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 255.0 ms 06:29:54,78 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 13.85 μs 06:29:54,78 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 06:29:54,78 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminated thread VirtualThread[#833,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160]/terminated 06:29:54,78 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 06:29:54,78 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 06:29:54,78 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 06:29:54,78 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [03/14/2026 18:29:54.079] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@46749542 [INFO] [pekkoDeadLetter][03/14/2026 18:29:54.079] [test-pekko.actor.default-dispatcher-6] [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'. 06:29:54,79 PM [test-pekko.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 06:29:54,80 PM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 06:29:54,80 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 06:29:54,80 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 06:29:54,80 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 06:29:54,80 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 06:29:54,80 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 06:29:54,82 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:29:54,82 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069B5A921-30E0D79D.v1 06:29:54,82 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 06:29:54,82 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 06:29:54,82 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 06:29:54,82 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-03-14T18:29:53.820041629Z, file=/tmp/junit-12028715877163797819/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069B5A921-30E0D79D.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 06:29:54,82 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 06:29:54,83 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2026-03-14T18:29:53.820041629Z 06:29:54,83 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:29:54,83 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 162.6 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 06:29:54,83 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 305.3 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 06:29:54,83 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 06:29:54,83 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:29:54,83 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 06:29:54,83 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 06:29:54,83 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 06:29:54,83 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 06:29:54,83 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 06:29:54,83 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 151.8 μs with journalIndex=4 06:29:54,83 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 06:29:54,84 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: writer thread VirtualThread[#838,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161]/runnable started 06:29:54,84 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 06:29:54,84 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 06:29:54,180 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior545#-1141099735] 06:29:54,190 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower546#-1272900404] 06:29:54,190 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader547#1326406220] 06:29:54,190 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 06:29:54,191 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#838,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161]/waiting 06:29:54,191 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 107.2 ms 06:29:54,191 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 14.84 μs 06:29:54,191 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 06:29:54,191 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminated thread VirtualThread[#838,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161]/terminated 06:29:54,191 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 06:29:54,191 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 06:29:54,191 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 06:29:54,191 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 06:29:54,195 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 06:29:54,195 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:54,495 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 06:29:54,626 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:29:54,626 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 06:29:54,876 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 06:29:55,76 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 06:29:55,77 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior548#526937456] 06:29:55,79 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower549#-238734774] 06:29:55,79 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader550#-1056447322] 06:29:55,84 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:29:55,85 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:29:55,85 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 06:29:55,85 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 06:29:55,85 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 06:29:55,86 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 06:29:55,86 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior551#1648951152] 06:29:55,97 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower552#710738082] 06:29:55,97 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader553#874866018] 06:29:55,99 PM [test-pekko.actor.default-dispatcher-12] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [03/14/2026 18:29:55.099] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [03/14/2026 18:29:55.100] [test-pekko.actor.default-dispatcher-5] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.39:17355) [INFO] [pekkoDeadLetter][03/14/2026 18:29:55.100] [test-pekko.actor.default-dispatcher-5] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#116018165] 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'. 06:29:55,100 PM [test-pekko.actor.default-dispatcher-6] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#116018165] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [03/14/2026 18:29:55.100] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.39:17355] - Exiting completed 06:29:55,100 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.39:17355] - Exiting completed [INFO] [03/14/2026 18:29:55.100] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.39:17355] - Shutting down... 06:29:55,101 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.39:17355] - Shutting down... [INFO] [03/14/2026 18:29:55.101] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.39:17355] - Successfully shut down 06:29:55,101 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.39:17355] - Successfully shut down [INFO] [03/14/2026 18:29:55.102] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.39:17355/system/remoting-terminator] Shutting down remote daemon. 06:29:55,103 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [03/14/2026 18:29:55.103] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.39:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 06:29:55,103 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [03/14/2026 18:29:55.105] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.171.39:17355/system/remoting-terminator] Remoting shut down. 06:29:55,105 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [03/14/2026 18:29:55.105] [test-pekko.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger