[DEBUG] [09/16/2025 21:58:16.144] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 09:58:16,145 PM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [09/16/2025 21:58:16.145] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [09/16/2025 21:58:16.145] [main] [EventStream(pekko://test)] Default Loggers started 09:58:16,162 PM [test-pekko.actor.default-dispatcher-7] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.26:17355] with UID [2677905931034079226] 09:58:16,162 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.26:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [09/16/2025 21:58:16.161] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.26:17355] with UID [2677905931034079226] [INFO] [09/16/2025 21:58:16.161] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.26:17355] - Starting up, Pekko version [1.0.3] ... 09:58:16,167 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.26:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [09/16/2025 21:58:16.167] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.26:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [09/16/2025 21:58:16.167] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.26:17355] - Started up successfully [INFO] [09/16/2025 21:58:16.168] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.26:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 09:58:16,169 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.26:17355] - Started up successfully 09:58:16,169 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.26:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [09/16/2025 21:58:16.169] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.26:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 09:58:16,169 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.26:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 09:58:16,183 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:16,284 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 09:58:16,284 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 09:58:16,285 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior425#452606164] 09:58:16,286 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower426#832682308] 09:58:16,286 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader427#1567389055] 09:58:16,289 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:16,290 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]]} 09:58:16,290 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:58:16,290 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 09:58:16,290 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 09:58:16,290 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 09:58:16,291 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 09:58:16,291 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} 09:58:16,291 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 09:58:16,291 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 09:58:16,292 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:58:16,292 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:58:16,292 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 09:58:16,292 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior428#-19010775] 09:58:16,293 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower429#1800474471] 09:58:16,293 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader430#597036231] 09:58:16,296 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:16,297 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 09:58:16,297 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 09:58:16,297 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior431#1008403387] 09:58:16,298 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower432#-164636214] 09:58:16,298 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader433#663828366] 09:58:16,300 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:16,301 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 09:58:16,301 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 09:58:16,302 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} 09:58:16,302 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 09:58:16,302 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 09:58:16,303 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 09:58:16,303 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 09:58:16,303 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. 09:58:16,303 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 09:58:16,304 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 09:58:16,304 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 09:58:16,305 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 09:58:16,306 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior434#-581592622] 09:58:16,306 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower435#758784255] 09:58:16,306 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader436#1729303191] 09:58:16,309 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:16,309 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:58:16,309 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:58:16,309 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:16,309 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 09:58:16,310 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 09:58:16,310 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 09:58:16,310 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 09:58:16,310 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 09:58:16,310 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior437#-289387300] 09:58:16,311 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower438#915458405] 09:58:16,311 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader439#-1964319767] 09:58:16,313 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:16,314 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 09:58:16,315 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior440#-1095909960] 09:58:16,315 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower441#712498571] 09:58:16,315 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader442#-44641123] 09:58:16,318 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:16,319 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 09:58:16,319 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 09:58:16,319 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior443#1449772473] 09:58:16,320 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower444#-1210564952] 09:58:16,320 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader445#1428792684] 09:58:16,322 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 09:58:16,322 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:16,323 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:58:16,324 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:58:16,324 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:58:16,324 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:58:16,324 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 09:58:16,324 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 09:58:16,324 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 09:58:16,324 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 09:58:16,326 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 09:58:16,327 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior446#1331463936] 09:58:16,327 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower447#-1750990382] 09:58:16,327 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader448#-1030229666] 09:58:16,330 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 09:58:16,330 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:16,331 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]]} 09:58:16,331 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 09:58:16,331 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} 09:58:16,331 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 09:58:16,331 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior449#-847848586] 09:58:16,332 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower450#-1625425484] 09:58:16,332 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader451#1626816198] 09:58:16,334 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 09:58:16,334 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:16,334 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:58:16,334 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:58:16,334 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:58:16,334 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:58:16,335 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 09:58:16,335 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 09:58:16,335 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 09:58:16,335 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 09:58:16,335 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 09:58:16,336 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]]} 09:58:16,336 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 09:58:16,336 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} 09:58:16,336 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 09:58:16,336 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior452#2009787668] 09:58:16,337 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower453#502268897] 09:58:16,337 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader454#-1232819028] 09:58:16,339 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:16,339 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 09:58:16,340 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior455#1587295793] 09:58:16,340 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower456#2099170125] 09:58:16,341 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader457#312269427] 09:58:16,342 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 09:58:16,343 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:16,343 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 09:58:16,343 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]]} 09:58:16,344 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:58:16,344 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:58:16,344 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:58:16,344 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:58:16,344 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:58:16,344 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} 09:58:16,344 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:58:16,344 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 09:58:16,344 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 09:58:16,344 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior458#2105171402] 09:58:16,345 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower459#1783391198] 09:58:16,345 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader460#1391356469] 09:58:16,347 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 09:58:16,347 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:16,348 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]]} 09:58:16,348 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:58:16,348 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 09:58:16,348 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 09:58:16,348 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:58:16,348 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 09:58:16,348 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} 09:58:16,348 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:58:16,348 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 09:58:16,348 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:58:16,348 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:58:16,348 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 09:58:16,348 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 09:58:16,349 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]]} 09:58:16,349 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:58:16,349 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 09:58:16,349 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 09:58:16,349 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 09:58:16,349 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 09:58:16,349 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 09:58:16,349 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} 09:58:16,349 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 09:58:16,349 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 09:58:16,350 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:58:16,350 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:58:16,350 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior461#-1521094378] 09:58:16,350 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower462#239475099] 09:58:16,350 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader463#-2041062005] 09:58:16,352 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 09:58:16,353 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:16,353 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 09:58:16,354 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 09:58:16,354 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} 09:58:16,354 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 09:58:16,354 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior464#-615505860] 09:58:16,355 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower465#1864945299] 09:58:16,355 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader466#-552284579] 09:58:16,357 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:16,359 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior467#385052681] 09:58:16,359 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower468#-2015595354] 09:58:16,359 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader469#-587904168] 09:58:16,361 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 09:58:16,361 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:16,361 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 09:58:16,362 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 09:58:16,362 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]]} 09:58:16,362 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:58:16,362 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:58:16,362 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:58:16,362 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:58:16,362 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:58:16,362 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} 09:58:16,363 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:58:16,363 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 09:58:16,363 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 09:58:16,363 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 09:58:16,363 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 09:58:16,363 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior470#-1831994101] 09:58:16,364 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower471#1798339722] 09:58:16,364 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader472#-1104797682] 09:58:16,366 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [09/16/2025 21:58:16.367] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@35929877 [INFO] [pekkoDeadLetter][09/16/2025 21:58:16.367] [test-pekko.actor.default-dispatcher-12] [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'. 09:58:16,368 PM [test-pekko.actor.default-dispatcher-7] [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'. 09:58:16,369 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 09:58:16,369 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 09:58:16,369 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 09:58:16,369 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 09:58:16,370 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 09:58:16,370 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 09:58:16,370 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 09:58:16,370 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 09:58:16,371 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/junit-13797487066024459402/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 09:58:16,371 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-13797487066024459402/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 09:58:16,371 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-13797487066024459402/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 09:58:16,371 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 09:58:16,371 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:58:16,371 PM [test-pekko.actor.default-dispatcher-7] [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 09:58:16,374 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:58:16,374 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 09:58:16,374 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 09:58:16,374 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 09:58:16,374 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 09:58:16,374 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 09:58:16,374 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-13797487066024459402/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C9DD78-164F3AAC.tmp 09:58:16,378 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-13797487066024459402/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C9DD78-164F3AAC.v1 09:58:16,378 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-13797487066024459402/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C9DD78-164F3AAC.v1 09:58:16,378 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-13797487066024459402/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 09:58:16,378 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-13797487066024459402/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 09:58:16,378 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-13797487066024459402/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 09:58:16,378 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-09-16T21:58:16.374291116Z, file=/tmp/junit-13797487066024459402/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C9DD78-164F3AAC.v1, size=419, entryCompress=NONE, stateCompress=NONE} 09:58:16,378 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot completed in 4.248 ms, resetting timer for the next recovery snapshot 09:58:16,378 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 09:58:16,378 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 09:58:16,378 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 09:58:16,378 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 09:58:16,378 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 09:58:16,378 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: journal recovery completedin 137.0 μs with journalIndex=1 09:58:16,378 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 09:58:16,379 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 09:58:16,480 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-13797487066024459402/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C9DD78-164F3AAC.v1 09:58:16,480 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-13797487066024459402/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 09:58:16,480 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-13797487066024459402/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 09:58:16,480 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-13797487066024459402/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 09:58:16,480 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-09-16T21:58:16.374291116Z, file=/tmp/junit-13797487066024459402/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C9DD78-164F3AAC.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 09:58:16,481 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 09:58:16,481 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 09:58:16,481 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 09:58:16,481 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 09:58:16,481 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 09:58:16,481 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 09:58:16,481 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 09:58:16,481 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 09:58:16,481 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 09:58:16,481 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:58:16,482 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 09:58:16,482 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 09:58:16,482 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 09:58:16,481 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 111.7 ms 09:58:16,482 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 09:58:16,482 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 09:58:16,482 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 09:58:16,482 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 09:58:16,482 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 09:58:16,482 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 09:58:16,482 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 09:58:16,482 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 09:58:16,487 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 09:58:16,487 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 09:58:16,487 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 09:58:16,487 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 5.098 ms 09:58:16,487 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 2.080 μs 09:58:16,487 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d3048@73004131} 09:58:16,487 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 09:58:16,487 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 09:58:16,487 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 09:58:16,487 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 09:58:16,487 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 09:58:16,487 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 09:58:16,487 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 09:58:16,487 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 164.0 μs 09:58:16,487 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 09:58:16,487 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 09:58:16,487 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 09:58:16,487 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d3048@73004131} 09:58:16,487 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d183911] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-13797487066024459402/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C9DD78-1D0C4F51.tmp 09:58:16,487 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 5.220 ms 09:58:16,487 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) [WARN] [09/16/2025 21:58:16.487] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][09/16/2025 21:58:16.487] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:58:16,487 PM [test-pekko.actor.default-dispatcher-7] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:58:16,489 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d183911] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-13797487066024459402/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C9DD78-1D0C4F51.v1 09:58:16,489 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d183911] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-13797487066024459402/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C9DD78-164F3AAC.v1 09:58:16,489 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d183911] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-13797487066024459402/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C9DD78-1D0C4F51.v1 09:58:16,489 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d183911] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-13797487066024459402/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 09:58:16,489 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d183911] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-13797487066024459402/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 09:58:16,489 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d183911] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-13797487066024459402/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 09:58:16,489 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d183911] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-09-16T21:58:16.374291116Z, file=/tmp/junit-13797487066024459402/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C9DD78-164F3AAC.v1, size=419, entryCompress=NONE, stateCompress=NONE} 09:58:16,489 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d183911] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-09-16T21:58:16.487346001Z, file=/tmp/junit-13797487066024459402/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C9DD78-1D0C4F51.v1, size=555, entryCompress=NONE, stateCompress=NONE} 09:58:16,489 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d183911] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 09:58:16,489 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 09:58:16,490 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-09-16T21:58:16.487346001Z 09:58:16,490 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 09:58:16,490 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 2.747 ms 09:58:16,490 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 09:58:16,490 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 09:58:16,490 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 09:58:16,490 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 09:58:16,490 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 90.73 μs 09:58:16,490 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 09:58:16,490 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 09:58:16,684 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-13797487066024459402/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C9DD78-1D0C4F51.v1 09:58:16,684 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-13797487066024459402/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 09:58:16,684 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-13797487066024459402/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 09:58:16,684 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-13797487066024459402/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 09:58:16,684 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-09-16T21:58:16.487346001Z, file=/tmp/junit-13797487066024459402/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C9DD78-1D0C4F51.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 09:58:16,687 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior473#-1888307954] 09:58:16,697 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower474#622679740] 09:58:16,698 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader475#-1475314176] 09:58:16,698 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 09:58:16,698 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#828,testCaptureSnapshotOnLastEntryInAppendEntries-writer-158]/waiting 09:58:16,698 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 208.3 ms 09:58:16,698 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 17.18 μs 09:58:16,698 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 09:58:16,698 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 09:58:16,698 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 09:58:16,698 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 09:58:16,698 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 09:58:16,703 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:16,704 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior476#-1443050122] 09:58:16,705 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower477#242673127] 09:58:16,705 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader478#-1551031205] 09:58:16,708 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 09:58:16,708 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:16,709 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 09:58:16,709 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 09:58:16,709 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior479#327784424] 09:58:16,710 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower480#-1239739726] 09:58:16,710 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader481#-139157555] 09:58:16,713 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 09:58:16,713 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:16,713 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 09:58:16,714 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]]} 09:58:16,714 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:58:16,714 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:58:16,714 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:58:16,714 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 09:58:16,714 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:58:16,714 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} 09:58:16,714 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:58:16,714 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 09:58:16,714 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 09:58:16,714 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior482#261094042] 09:58:16,715 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower483#-1663133752] 09:58:16,715 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader484#732035194] 09:58:16,717 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 09:58:16,717 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:16,718 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 09:58:16,718 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]]} 09:58:16,718 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 09:58:16,718 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} 09:58:16,718 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:58:16,718 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 09:58:16,719 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]]} 09:58:16,719 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 09:58:16,719 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} 09:58:16,719 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 09:58:16,720 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior485#-143730185] 09:58:16,720 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower486#-2024814678] 09:58:16,720 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader487#-1057374726] 09:58:16,722 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:16,722 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior488#1960567319] 09:58:16,723 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower489#-338196373] 09:58:16,723 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader490#-841206117] 09:58:16,724 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 09:58:16,724 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:16,725 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 09:58:16,725 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]]} 09:58:16,725 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 09:58:16,725 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} 09:58:16,726 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:58:16,726 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 09:58:16,726 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]]} 09:58:16,726 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 09:58:16,726 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} 09:58:16,726 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 09:58:16,727 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]]} 09:58:16,727 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 09:58:16,727 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} 09:58:16,727 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 09:58:16,728 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior491#-1928400995] 09:58:16,728 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower492#458538075] 09:58:16,728 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader493#-932529992] 09:58:16,730 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 09:58:16,730 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:16,731 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]]} 09:58:16,731 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:58:16,731 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 09:58:16,731 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 09:58:16,731 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 09:58:16,731 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 09:58:16,731 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} 09:58:16,731 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 09:58:16,731 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 09:58:16,731 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 09:58:16,732 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior494#414341801] 09:58:16,732 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower495#959205092] 09:58:16,732 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader496#-1325775650] 09:58:16,734 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 09:58:16,734 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:16,735 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 09:58:16,736 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader499 09:58:16,736 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader499 09:58:16,737 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 09:58:16,737 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior497#364027765] 09:58:16,738 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower498#1743232877] 09:58:16,738 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader499#967964986] 09:58:16,740 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 09:58:16,740 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:16,740 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 09:58:16,740 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]]} 09:58:16,741 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:58:16,741 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:58:16,741 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:58:16,741 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:58:16,741 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:58:16,741 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} 09:58:16,741 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:58:16,741 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 09:58:16,741 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 09:58:16,741 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior500#-673862350] 09:58:16,742 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower501#-680753319] 09:58:16,742 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader502#-661353287] 09:58:16,744 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 09:58:16,744 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:16,744 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 09:58:16,744 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]]} 09:58:16,744 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 09:58:16,745 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} 09:58:16,745 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:58:16,745 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior503#-1680938075] 09:58:16,745 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower504#-1914761897] 09:58:16,745 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader505#-1522130466] 09:58:16,747 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [09/16/2025 21:58:16.748] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@342149ec [INFO] [pekkoDeadLetter][09/16/2025 21:58:16.748] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:58:16,748 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:58:16,748 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 09:58:16,748 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 09:58:16,748 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 09:58:16,748 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 09:58:16,749 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 09:58:16,749 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 09:58:16,749 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 09:58:16,749 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 09:58:16,750 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/junit-564509252216434210/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 09:58:16,750 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-564509252216434210/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 09:58:16,750 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-564509252216434210/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 09:58:16,750 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 09:58:16,750 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 09:58:16,750 PM [test-pekko.actor.default-dispatcher-12] [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 09:58:16,753 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 09:58:16,753 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 09:58:16,753 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: taking snapshot to clear Pekko persistence to 1 09:58:16,753 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 09:58:16,753 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Taking snapshot on entry with index -1 09:58:16,753 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 09:58:16,753 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-564509252216434210/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C9DD78-2CEA89D5.tmp 09:58:16,757 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-564509252216434210/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C9DD78-2CEA89D5.v1 09:58:16,757 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-564509252216434210/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C9DD78-2CEA89D5.v1 09:58:16,757 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-564509252216434210/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 09:58:16,757 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-564509252216434210/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 09:58:16,757 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-564509252216434210/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 09:58:16,757 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-09-16T21:58:16.753568213Z, file=/tmp/junit-564509252216434210/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C9DD78-2CEA89D5.v1, size=419, entryCompress=NONE, stateCompress=NONE} 09:58:16,757 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot completed in 3.769 ms, resetting timer for the next recovery snapshot 09:58:16,757 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed and cannot restore from snapshot 09:58:16,757 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 09:58:16,757 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 09:58:16,757 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 09:58:16,757 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 09:58:16,757 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal recovery completedin 161.7 μs with journalIndex=1 09:58:16,757 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Journal recovery completed and cannot restore from snapshot 09:58:16,758 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: ignoring DeleteMessagesSuccess(1) 09:58:16,758 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 09:58:16,758 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 09:58:16,758 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 09:58:16,758 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 09:58:16,758 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 09:58:16,758 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 09:58:16,758 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 09:58:16,758 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 09:58:16,758 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 09:58:16,758 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 09:58:16,758 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 09:58:16,758 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:58:16,758 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 09:58:16,758 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 09:58:16,758 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 09:58:16,758 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 09:58:16,758 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 09:58:16,758 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 09:58:16,758 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 3 commands after 9.387 ms 09:58:16,758 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 09:58:16,763 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 3 completion(s) pending 09:58:16,763 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 3 commands in 4.879 ms 09:58:16,763 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 3 completion(s) 09:58:16,763 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 2.260 μs 09:58:16,763 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 09:58:16,763 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d3048@1fa04343} 09:58:16,763 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 09:58:16,763 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d3048@1fa04343} 09:58:16,763 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 09:58:16,763 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 09:58:16,763 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 09:58:16,763 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 124.7 μs 09:58:16,763 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 09:58:16,763 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 09:58:16,763 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 09:58:16,763 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 09:58:16,763 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 09:58:16,763 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 09:58:16,763 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 09:58:16,763 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d3048@1fa04343} 09:58:16,763 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d986078] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-564509252216434210/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C9DD78-2D862E9A.tmp 09:58:16,763 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 5.221 ms 09:58:16,763 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) [WARN] [09/16/2025 21:58:16.764] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][09/16/2025 21:58:16.764] [test-pekko.actor.default-dispatcher-11] [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'. 09:58:16,764 PM [test-pekko.actor.default-dispatcher-11] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:58:16,766 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d986078] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-564509252216434210/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C9DD78-2D862E9A.v1 09:58:16,766 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d986078] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-564509252216434210/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C9DD78-2CEA89D5.v1 09:58:16,766 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d986078] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-564509252216434210/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 09:58:16,766 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d986078] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-564509252216434210/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 09:58:16,766 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d986078] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-564509252216434210/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C9DD78-2D862E9A.v1 09:58:16,766 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d986078] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-564509252216434210/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 09:58:16,766 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d986078] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-09-16T21:58:16.753568213Z, file=/tmp/junit-564509252216434210/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C9DD78-2CEA89D5.v1, size=419, entryCompress=NONE, stateCompress=NONE} 09:58:16,766 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d986078] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-09-16T21:58:16.763768474Z, file=/tmp/junit-564509252216434210/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C9DD78-2D862E9A.v1, size=539, entryCompress=NONE, stateCompress=NONE} 09:58:16,766 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d986078] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 09:58:16,766 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 09:58:16,766 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-09-16T21:58:16.763768474Z 09:58:16,766 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 09:58:16,766 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 3.230 ms 09:58:16,766 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 09:58:16,767 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 09:58:16,767 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 09:58:16,767 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 09:58:16,767 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 89.34 μs 09:58:16,767 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 09:58:16,767 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 09:58:16,909 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-564509252216434210/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 09:58:16,909 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-564509252216434210/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 09:58:16,909 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-564509252216434210/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C9DD78-2D862E9A.v1 09:58:16,909 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-564509252216434210/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 09:58:16,909 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-09-16T21:58:16.763768474Z, file=/tmp/junit-564509252216434210/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C9DD78-2D862E9A.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 09:58:16,911 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior506#-1308627559] 09:58:16,912 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower507#-2065096663] 09:58:16,913 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader508#86447291] 09:58:16,913 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 09:58:16,913 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#833,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159]/waiting 09:58:16,913 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 146.5 ms 09:58:16,913 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 15.21 μs 09:58:16,913 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 09:58:16,913 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 09:58:16,914 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 09:58:16,914 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 09:58:16,914 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 09:58:16,918 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 09:58:16,918 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:16,919 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 09:58:16,920 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]]} 09:58:16,920 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 09:58:16,920 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} 09:58:16,920 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 09:58:16,921 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior509#1586734013] 09:58:16,921 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower510#1951784595] 09:58:16,921 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader511#-1436106798] 09:58:16,923 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 09:58:16,923 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:16,923 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 09:58:16,924 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 09:58:16,924 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 09:58:16,924 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 09:58:16,924 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 09:58:16,924 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior512#2136053158] 09:58:16,924 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower513#1047140670] 09:58:16,925 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader514#-911046983] 09:58:16,927 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 09:58:16,927 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:16,927 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 09:58:16,928 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]]} 09:58:16,928 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:58:16,928 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 09:58:16,928 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:58:16,928 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 09:58:16,928 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 09:58:16,928 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 09:58:16,928 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 09:58:16,928 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 09:58:16,928 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 09:58:16,928 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} 09:58:16,928 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 09:58:16,928 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 09:58:16,928 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:58:16,928 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:58:16,928 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 09:58:16,928 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 09:58:16,928 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:58:16,928 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:58:16,928 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 09:58:16,928 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 09:58:16,929 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior515#-383404438] 09:58:16,929 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower516#-62503019] 09:58:16,929 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader517#327455053] 09:58:16,931 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 09:58:16,931 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:16,931 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 09:58:16,931 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 09:58:16,932 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior518#-1342081391] 09:58:16,932 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower519#-78031698] 09:58:16,932 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader520#-1859070413] 09:58:16,934 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 09:58:16,934 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:16,934 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:58:16,934 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:58:16,934 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:58:16,934 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:58:16,935 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 09:58:16,935 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]]} 09:58:16,935 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 09:58:16,935 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:58:16,935 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 09:58:16,935 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 09:58:16,935 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 09:58:16,935 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 09:58:16,935 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} 09:58:16,935 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 09:58:16,935 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 09:58:16,935 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:58:16,935 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:58:16,936 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior521#-1147763944] 09:58:16,936 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower522#1080735633] 09:58:16,936 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader523#657647023] 09:58:16,938 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 09:58:16,938 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:16,938 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 09:58:16,938 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]]} 09:58:16,939 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 09:58:16,939 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} 09:58:16,939 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:58:16,939 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 09:58:16,939 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]]} 09:58:16,939 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 09:58:16,940 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} 09:58:16,940 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 09:58:16,940 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 09:58:16,940 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]]} 09:58:16,940 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 09:58:16,940 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} 09:58:16,941 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 09:58:16,941 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior524#1390230176] 09:58:16,941 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower525#1688653072] 09:58:16,941 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader526#-626748850] 09:58:16,943 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 09:58:16,943 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:17,143 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:58:17,143 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.170.26:17355, Removed) 09:58:17,143 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 09:58:17,143 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 09:58:17,143 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 09:58:17,143 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 09:58:17,144 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior527#-645087551] 09:58:17,145 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower528#19040792] 09:58:17,145 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader529#-1215912463] 09:58:17,149 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:17,149 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 09:58:17,400 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:58:17,400 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior530#344409125] 09:58:17,402 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower531#-1873401152] 09:58:17,402 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader532#-2005043332] 09:58:17,406 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 09:58:17,406 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:17,408 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 09:58:17,408 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 09:58:17,409 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior533#-518040185] 09:58:17,410 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower534#1403372317] 09:58:17,410 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader535#-402978245] 09:58:17,412 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 09:58:17,412 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:17,413 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]]} 09:58:17,413 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:58:17,413 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 09:58:17,413 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 09:58:17,413 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 09:58:17,413 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 09:58:17,413 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 09:58:17,413 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} 09:58:17,413 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 09:58:17,413 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 09:58:17,413 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:58:17,413 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:58:17,413 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 09:58:17,413 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 09:58:17,413 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:58:17,413 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:58:17,413 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 09:58:17,413 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 09:58:17,413 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 09:58:17,413 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 09:58:17,414 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior536#722874639] 09:58:17,414 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower537#102656646] 09:58:17,414 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader538#443065283] 09:58:17,416 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 09:58:17,416 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:17,417 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:58:17,417 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:58:17,417 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:58:17,417 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:58:17,417 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]]} 09:58:17,417 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} 09:58:17,418 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior539#-1011559636] 09:58:17,418 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower540#498941182] 09:58:17,418 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader541#-931085542] 09:58:17,420 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 09:58:17,420 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:17,421 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 09:58:17,421 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]]} 09:58:17,421 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:58:17,421 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 09:58:17,421 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 09:58:17,421 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior542#352736557] 09:58:17,422 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower543#478113848] 09:58:17,422 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader544#437082254] 09:58:17,424 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries 09:58:17,424 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'. 09:58:17,425 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 [WARN] [09/16/2025 21:58:17.424] [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@175df302 09:58:17,425 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor [INFO] [pekkoDeadLetter][09/16/2025 21:58:17.424] [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'. 09:58:17,425 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:58:17,425 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 09:58:17,425 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 09:58:17,425 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 09:58:17,425 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 09:58:17,425 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 09:58:17,427 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 09:58:17,427 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 09:58:17,427 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 09:58:17,427 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 09:58:17,427 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:58:17,427 PM [test-pekko.actor.default-dispatcher-12] [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 09:58:17,432 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:58:17,432 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 09:58:17,432 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 09:58:17,432 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 09:58:17,432 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Taking snapshot on entry with index -1 09:58:17,432 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 09:58:17,432 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C9DD79-19CAC3F7.tmp 09:58:17,436 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C9DD79-19CAC3F7.v1 09:58:17,436 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C9DD79-19CAC3F7.v1 09:58:17,436 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:58:17,436 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 09:58:17,436 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 09:58:17,436 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-09-16T21:58:17.432718839Z, file=/tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C9DD79-19CAC3F7.v1, size=419, entryCompress=NONE, stateCompress=NONE} 09:58:17,436 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot completed in 4.250 ms, resetting timer for the next recovery snapshot 09:58:17,437 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 09:58:17,437 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 09:58:17,437 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 09:58:17,437 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 09:58:17,437 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 09:58:17,437 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 215.9 μs with journalIndex=1 09:58:17,437 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 09:58:17,437 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 09:58:17,538 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C9DD79-19CAC3F7.v1 09:58:17,539 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:58:17,539 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 09:58:17,539 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 09:58:17,539 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-09-16T21:58:17.432718839Z, file=/tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C9DD79-19CAC3F7.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 09:58:17,539 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 09:58:17,539 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 09:58:17,540 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 09:58:17,540 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 09:58:17,540 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 09:58:17,540 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 09:58:17,540 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 09:58:17,540 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 09:58:17,540 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 09:58:17,540 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 114.2 ms 09:58:17,540 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 09:58:17,540 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 09:58:17,540 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:58:17,540 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 09:58:17,540 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 09:58:17,540 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 09:58:17,540 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 09:58:17,540 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 09:58:17,540 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 09:58:17,540 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 09:58:17,540 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 09:58:17,540 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 09:58:17,540 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 09:58:17,540 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 09:58:17,540 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 09:58:17,540 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 09:58:17,540 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 09:58:17,540 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 09:58:17,545 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 09:58:17,545 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 09:58:17,545 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 5.155 ms 09:58:17,545 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 09:58:17,545 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 3.630 μs 09:58:17,545 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d3048@41670a9} 09:58:17,545 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 09:58:17,547 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 09:58:17,547 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 09:58:17,547 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 09:58:17,547 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 2.162 ms 09:58:17,547 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 09:58:17,547 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 09:58:17,547 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d3048@41670a9} 09:58:17,547 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 09:58:17,547 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 09:58:17,547 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 09:58:17,547 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 09:58:17,547 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 09:58:17,547 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 09:58:17,547 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 09:58:17,548 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d3048@41670a9} 09:58:17,548 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d835374] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C9DD79-20A7F05C.tmp 09:58:17,548 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 7.359 ms [WARN] [09/16/2025 21:58:17.548] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][09/16/2025 21:58:17.548] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:58:17,548 PM [test-pekko.actor.default-dispatcher-11] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:58:17,550 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d835374] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C9DD79-20A7F05C.v1 09:58:17,550 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d835374] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C9DD79-19CAC3F7.v1 09:58:17,551 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d835374] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C9DD79-20A7F05C.v1 09:58:17,551 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d835374] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:58:17,551 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d835374] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 09:58:17,551 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d835374] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 09:58:17,551 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d835374] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-09-16T21:58:17.432718839Z, file=/tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C9DD79-19CAC3F7.v1, size=419, entryCompress=NONE, stateCompress=NONE} 09:58:17,551 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d835374] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-09-16T21:58:17.547876956Z, file=/tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C9DD79-20A7F05C.v1, size=573, entryCompress=NONE, stateCompress=NONE} 09:58:17,551 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d835374] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 09:58:17,551 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 09:58:17,551 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-09-16T21:58:17.547876956Z 09:58:17,551 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 09:58:17,551 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 09:58:17,551 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.995 ms 09:58:17,551 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 09:58:17,551 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 09:58:17,551 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 09:58:17,551 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 169.4 μs 09:58:17,551 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 09:58:17,551 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 09:58:17,791 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C9DD79-20A7F05C.v1 09:58:17,791 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:58:17,791 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 09:58:17,792 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 09:58:17,792 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-09-16T21:58:17.547876956Z, file=/tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C9DD79-20A7F05C.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 09:58:17,793 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 09:58:17,802 PM [test-pekko.actor.default-dispatcher-11] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 09:58:17,804 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#836,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160]/waiting 09:58:17,804 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 253.0 ms 09:58:17,805 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 14.83 μs 09:58:17,805 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 09:58:17,805 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 09:58:17,805 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 09:58:17,805 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 09:58:17,805 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 09:58:17,806 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. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [WARN] [09/16/2025 21:58:17.806] [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@7175920d 09:58:17,806 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 [INFO] [pekkoDeadLetter][09/16/2025 21:58:17.806] [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'. 09:58:17,807 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:58:17,807 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:58:17,807 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 09:58:17,808 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 09:58:17,808 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 09:58:17,808 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 09:58:17,808 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 09:58:17,809 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:58:17,809 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C9DD79-20A7F05C.v1 09:58:17,810 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:58:17,810 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 09:58:17,810 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 09:58:17,810 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-09-16T21:58:17.547876956Z, file=/tmp/junit-15357571872145468025/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C9DD79-20A7F05C.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 09:58:17,810 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 09:58:17,810 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-09-16T21:58:17.547876956Z 09:58:17,810 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:58:17,810 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 117.0 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 09:58:17,811 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 196.2 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 09:58:17,811 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 09:58:17,811 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:58:17,811 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 09:58:17,811 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 09:58:17,811 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 09:58:17,811 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 09:58:17,811 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 09:58:17,811 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 66.28 μs with journalIndex=4 09:58:17,811 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 09:58:17,906 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior545#-143390186] 09:58:17,917 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower546#1908433622] 09:58:17,918 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader547#-501593871] 09:58:17,918 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 09:58:17,918 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#841,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161]/waiting 09:58:17,918 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 110.2 ms 09:58:17,919 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 24.55 μs 09:58:17,919 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 09:58:17,919 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 09:58:17,919 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 09:58:17,919 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 09:58:17,919 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 09:58:17,923 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 09:58:17,924 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:18,224 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 09:58:18,354 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:58:18,354 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 09:58:18,605 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 09:58:18,805 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 09:58:18,805 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior548#-1682486889] 09:58:18,807 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower549#-1578003755] 09:58:18,807 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader550#-2143878591] 09:58:18,812 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:58:18,812 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:58:18,812 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 09:58:18,812 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 09:58:18,812 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 09:58:18,813 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 09:58:18,814 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior551#-2107405628] 09:58:18,814 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower552#-1771746203] 09:58:18,815 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader553#-1067614646] [INFO] [09/16/2025 21:58:18.816] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 09:58:18,816 PM [test-pekko.actor.default-dispatcher-12] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [09/16/2025 21:58:18.817] [test-pekko.actor.default-dispatcher-12] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.26:17355) [INFO] [pekkoDeadLetter][09/16/2025 21:58:18.818] [test-pekko.actor.default-dispatcher-12] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-612299620] 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'. 09:58:18,818 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#-612299620] 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'. 09:58:18,818 PM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.26:17355] - Exiting completed 09:58:18,818 PM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.26:17355] - Shutting down... 09:58:18,819 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.26:17355] - Successfully shut down [INFO] [09/16/2025 21:58:18.818] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.26:17355] - Exiting completed [INFO] [09/16/2025 21:58:18.818] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.26:17355] - Shutting down... [INFO] [09/16/2025 21:58:18.818] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.26:17355] - Successfully shut down [INFO] [09/16/2025 21:58:18.820] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.26:17355/system/remoting-terminator] Shutting down remote daemon. 09:58:18,820 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [09/16/2025 21:58:18.820] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.26:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 09:58:18,820 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [09/16/2025 21:58:18.823] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.170.26:17355/system/remoting-terminator] Remoting shut down. 09:58:18,823 PM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [09/16/2025 21:58:18.823] [test-pekko.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger