[DEBUG] [08/26/2025 07:45:10.799] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 07:45:10,799 AM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [08/26/2025 07:45:10.799] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [08/26/2025 07:45:10.799] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [08/26/2025 07:45:10.811] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.204:17355] with UID [-2440945539704482322] 07:45:10,812 AM [test-pekko.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.204:17355] with UID [-2440945539704482322] [INFO] [08/26/2025 07:45:10.812] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.204:17355] - Starting up, Pekko version [1.1.4] ... 07:45:10,812 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.204:17355] - Starting up, Pekko version [1.1.4] ... [INFO] [08/26/2025 07:45:10.815] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.204:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 07:45:10,816 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.204:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 07:45:10,816 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.204:17355] - Started up successfully [INFO] [08/26/2025 07:45:10.816] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.204:17355] - Started up successfully [INFO] [08/26/2025 07:45:10.817] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.204:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [08/26/2025 07:45:10.817] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.204:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 07:45:10,834 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.204:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 07:45:10,835 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.204:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 07:45:10,846 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:10,978 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 07:45:10,979 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 07:45:10,980 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior425#1707330342] 07:45:10,993 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower426#-1085385204] 07:45:10,993 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader427#334963755] 07:45:10,998 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:11,0 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 07:45:11,0 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:45:11,0 AM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 07:45:11,0 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 07:45:11,0 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:45:11,0 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 07:45:11,1 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:11,1 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 07:45:11,1 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 07:45:11,2 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:45:11,2 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:45:11,2 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 07:45:11,3 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior428#903967459] 07:45:11,13 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower429#-1097146228] 07:45:11,14 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader430#-1413314875] 07:45:11,18 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:11,20 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 07:45:11,21 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 07:45:11,21 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior431#1760538269] 07:45:11,32 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower432#1826816933] 07:45:11,32 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader433#1897966489] 07:45:11,35 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:11,36 AM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 07:45:11,37 AM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 07:45:11,37 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:11,38 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 07:45:11,38 AM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 07:45:11,41 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 07:45:11,41 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 07:45:11,41 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 07:45:11,41 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 07:45:11,42 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 07:45:11,42 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 07:45:11,43 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 07:45:11,44 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior434#-1412764791] 07:45:11,54 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower435#-113328203] 07:45:11,54 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader436#1608184820] 07:45:11,57 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:11,58 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:45:11,58 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:45:11,58 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:11,58 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 07:45:11,59 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 07:45:11,59 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 07:45:11,59 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 07:45:11,59 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 07:45:11,60 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior437#-259691729] 07:45:11,70 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower438#-710972909] 07:45:11,70 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader439#2109474888] 07:45:11,74 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:11,75 AM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 07:45:11,76 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior440#1559320410] 07:45:11,86 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower441#1045075276] 07:45:11,86 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader442#1502768475] 07:45:11,89 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:11,90 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 07:45:11,91 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 07:45:11,91 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior443#-1525209243] 07:45:11,101 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower444#-1765237670] 07:45:11,102 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader445#-254590007] 07:45:11,105 AM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 07:45:11,105 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:11,107 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:45:11,107 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:45:11,107 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:45:11,108 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:45:11,108 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 07:45:11,108 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 07:45:11,108 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 07:45:11,108 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 07:45:11,112 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 07:45:11,113 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior446#1741536659] 07:45:11,124 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower447#57081694] 07:45:11,124 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader448#-1893842304] 07:45:11,128 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 07:45:11,128 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:11,130 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 07:45:11,130 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 07:45:11,130 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:11,131 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 07:45:11,131 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior449#1405567849] 07:45:11,142 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower450#575806201] 07:45:11,142 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader451#-108234729] 07:45:11,146 AM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 07:45:11,147 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:11,147 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:45:11,148 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:45:11,148 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:45:11,148 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:45:11,149 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 07:45:11,149 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 07:45:11,149 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 07:45:11,150 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:45:11,150 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:45:11,151 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:45:11,151 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 07:45:11,152 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:11,152 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 07:45:11,152 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior452#685185407] 07:45:11,163 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower453#1894048120] 07:45:11,163 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader454#685118409] 07:45:11,167 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:11,168 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 07:45:11,170 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior455#-1359940093] 07:45:11,180 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower456#-601484775] 07:45:11,181 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader457#882288645] 07:45:11,185 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 07:45:11,185 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:11,186 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:45:11,187 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:45:11,187 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:45:11,187 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:45:11,187 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:45:11,188 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:45:11,188 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:45:11,188 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:11,188 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:45:11,188 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:45:11,189 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:45:11,189 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior458#676409724] 07:45:11,200 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower459#1170363860] 07:45:11,201 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader460#1987916992] 07:45:11,205 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 07:45:11,205 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:11,206 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 07:45:11,207 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:45:11,207 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 07:45:11,207 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 07:45:11,207 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:45:11,207 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 07:45:11,207 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:11,207 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:45:11,207 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 07:45:11,208 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:45:11,208 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:45:11,208 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:45:11,208 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:45:11,209 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 07:45:11,209 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:45:11,209 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 07:45:11,209 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 07:45:11,209 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 07:45:11,209 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 07:45:11,209 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 07:45:11,209 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:11,209 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 07:45:11,209 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 07:45:11,209 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:45:11,209 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:45:11,210 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior461#-2087445927] 07:45:11,220 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower462#896849651] 07:45:11,220 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader463#1481063795] 07:45:11,223 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 07:45:11,223 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:11,223 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 07:45:11,224 AM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 07:45:11,224 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:11,224 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 07:45:11,224 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior464#-493682358] 07:45:11,235 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower465#116902455] 07:45:11,235 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader466#64065271] 07:45:11,238 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:11,240 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior467#1330946884] 07:45:11,251 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower468#-961848882] 07:45:11,251 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader469#1880918771] 07:45:11,254 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 07:45:11,254 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:11,254 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 07:45:11,255 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:45:11,256 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:45:11,256 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:45:11,256 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:45:11,256 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:45:11,256 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:45:11,256 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:45:11,256 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:11,257 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:45:11,257 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 07:45:11,257 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 07:45:11,257 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 07:45:11,257 AM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 07:45:11,258 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior470#-1776112925] 07:45:11,268 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower471#1686295841] 07:45:11,269 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader472#-198748394] 07:45:11,272 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [08/26/2025 07:45:11.275] [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@3e42f7c3 [INFO] [pekkoDeadLetter][08/26/2025 07:45:11.276] [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'. 07:45:11,277 AM [test-pekko.actor.default-dispatcher-6] [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'. 07:45:11,277 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 07:45:11,277 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 07:45:11,277 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 07:45:11,282 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 07:45:11,282 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 07:45:11,282 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 07:45:11,282 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 07:45:11,282 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 07:45:11,285 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/junit-746301348887818715/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 07:45:11,285 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-746301348887818715/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:45:11,285 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-746301348887818715/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:45:11,285 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 07:45:11,285 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:45:11,285 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 07:45:11,290 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:45:11,290 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 07:45:11,290 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 07:45:11,290 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 07:45:11,290 AM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 07:45:11,290 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 07:45:11,290 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-746301348887818715/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068AD6607-114CC68A.tmp 07:45:11,295 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-746301348887818715/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068AD6607-114CC68A.v1 07:45:11,295 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-746301348887818715/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068AD6607-114CC68A.v1 07:45:11,295 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-746301348887818715/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:45:11,295 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-746301348887818715/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:45:11,295 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-746301348887818715/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:45:11,295 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-26T07:45:11.290244234Z, file=/tmp/junit-746301348887818715/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068AD6607-114CC68A.v1, size=419, entryCompress=NONE, stateCompress=NONE} 07:45:11,295 AM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot completed in 5.355 ms, resetting timer for the next recovery snapshot 07:45:11,295 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 07:45:11,295 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 07:45:11,295 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 07:45:11,295 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 07:45:11,296 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 07:45:11,296 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: journal recovery completedin 356.3 μs with journalIndex=1 07:45:11,296 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 07:45:11,297 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 07:45:11,397 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-746301348887818715/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068AD6607-114CC68A.v1 07:45:11,397 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-746301348887818715/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:45:11,397 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-746301348887818715/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:45:11,398 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-746301348887818715/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:45:11,398 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-26T07:45:11.290244234Z, file=/tmp/junit-746301348887818715/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068AD6607-114CC68A.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 07:45:11,399 AM [test-pekko.actor.default-dispatcher-6] [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]]} 07:45:11,399 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 07:45:11,399 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:45:11,399 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 07:45:11,399 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:45:11,399 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 07:45:11,399 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:45:11,399 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 07:45:11,399 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 07:45:11,399 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 116.6 ms 07:45:11,399 AM [test-pekko.actor.default-dispatcher-6] [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} 07:45:11,399 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 07:45:11,399 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 07:45:11,399 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 07:45:11,399 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 07:45:11,399 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 07:45:11,399 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 07:45:11,400 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 07:45:11,400 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 07:45:11,400 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 07:45:11,400 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 07:45:11,400 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 07:45:11,404 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 07:45:11,404 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 5.401 ms 07:45:11,404 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 2.880 μs 07:45:11,404 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 07:45:11,405 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:45:11,405 AM [test-pekko.actor.default-dispatcher-6] [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/0x00000007c0907640@6a8be994} 07:45:11,405 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 07:45:11,405 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 07:45:11,405 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 07:45:11,405 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 07:45:11,405 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 836.8 μs 07:45:11,405 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 07:45:11,405 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:45:11,405 AM [test-pekko.actor.default-dispatcher-6] [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] 07:45:11,405 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 07:45:11,406 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 07:45:11,406 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 07:45:11,406 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 07:45:11,406 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 07:45:11,406 AM [test-pekko.actor.default-dispatcher-6] [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/0x00000007c0907640@6a8be994} 07:45:11,406 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d762709] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-746301348887818715/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068AD6607-1834438B.tmp 07:45:11,406 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 6.049 ms [WARN] [08/26/2025 07:45:11.406] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][08/26/2025 07:45:11.406] [test-pekko.actor.default-dispatcher-11] [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'. 07:45:11,406 AM [test-pekko.actor.default-dispatcher-11] [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'. 07:45:11,408 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d762709] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-746301348887818715/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068AD6607-1834438B.v1 07:45:11,408 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d762709] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-746301348887818715/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068AD6607-114CC68A.v1 07:45:11,408 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d762709] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-746301348887818715/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068AD6607-1834438B.v1 07:45:11,408 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d762709] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-746301348887818715/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:45:11,408 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d762709] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-746301348887818715/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:45:11,408 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d762709] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-746301348887818715/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:45:11,408 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d762709] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-26T07:45:11.290244234Z, file=/tmp/junit-746301348887818715/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068AD6607-114CC68A.v1, size=419, entryCompress=NONE, stateCompress=NONE} 07:45:11,408 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d762709] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-08-26T07:45:11.406078347Z, file=/tmp/junit-746301348887818715/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068AD6607-1834438B.v1, size=555, entryCompress=NONE, stateCompress=NONE} 07:45:11,408 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d762709] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 07:45:11,408 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 07:45:11,409 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-08-26T07:45:11.406078347Z 07:45:11,409 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 07:45:11,409 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 3.334 ms 07:45:11,409 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 07:45:11,409 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 07:45:11,409 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 07:45:11,409 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 07:45:11,409 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 135.2 μs 07:45:11,409 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 07:45:11,409 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 07:45:11,600 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-746301348887818715/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068AD6607-1834438B.v1 07:45:11,601 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-746301348887818715/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:45:11,601 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-746301348887818715/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:45:11,601 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-746301348887818715/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:45:11,601 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-08-26T07:45:11.406078347Z, file=/tmp/junit-746301348887818715/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068AD6607-1834438B.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 07:45:11,604 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior473#669356021] 07:45:11,615 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower474#451634249] 07:45:11,615 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader475#644636370] 07:45:11,615 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 07:45:11,615 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#825,testCaptureSnapshotOnLastEntryInAppendEntries-writer-158]/waiting 07:45:11,616 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 206.7 ms 07:45:11,616 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 29.14 μs 07:45:11,616 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 07:45:11,616 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 07:45:11,616 AM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 07:45:11,616 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 07:45:11,616 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 07:45:11,621 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:11,622 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior476#1702129610] 07:45:11,633 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower477#765608670] 07:45:11,633 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader478#-210414616] 07:45:11,635 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 07:45:11,636 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:11,637 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 07:45:11,637 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 07:45:11,637 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior479#1307518139] 07:45:11,648 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower480#-926851954] 07:45:11,648 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader481#1058196992] 07:45:11,651 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 07:45:11,652 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:11,652 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:45:11,653 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:45:11,654 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:45:11,654 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:45:11,654 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:45:11,654 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:45:11,654 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:45:11,654 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:11,654 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:45:11,654 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:45:11,655 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:45:11,656 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior482#1126838740] 07:45:11,666 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower483#113848692] 07:45:11,666 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader484#-1205792020] 07:45:11,674 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 07:45:11,674 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:11,675 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:45:11,675 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:45:11,676 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 07:45:11,676 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:11,676 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:45:11,677 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 07:45:11,677 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:45:11,677 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 07:45:11,678 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:11,678 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 07:45:11,679 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior485#670591123] 07:45:11,690 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower486#16127600] 07:45:11,690 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader487#-1505317437] 07:45:11,694 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:11,694 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior488#190956699] 07:45:11,705 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower489#2069202536] 07:45:11,705 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader490#471141613] 07:45:11,708 AM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 07:45:11,708 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:11,709 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:45:11,709 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:45:11,710 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 07:45:11,710 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:11,710 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:45:11,710 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:45:11,711 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:45:11,711 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 07:45:11,711 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:11,711 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:45:11,712 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:45:11,712 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 07:45:11,712 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:11,712 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:45:11,713 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior491#-219900398] 07:45:11,723 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower492#-577496073] 07:45:11,723 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader493#-1122195550] 07:45:11,726 AM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 07:45:11,726 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:11,728 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 07:45:11,728 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:45:11,728 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 07:45:11,728 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 07:45:11,728 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:45:11,728 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 07:45:11,729 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:11,729 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 07:45:11,729 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 07:45:11,729 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 07:45:11,730 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior494#-1326394127] 07:45:11,741 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower495#1275298621] 07:45:11,741 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader496#-170103066] 07:45:11,744 AM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 07:45:11,744 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:11,745 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 07:45:11,746 AM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader499 07:45:11,746 AM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader499 07:45:11,747 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 07:45:11,748 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior497#-225456754] 07:45:11,758 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower498#1946366285] 07:45:11,758 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader499#1507279651] 07:45:11,763 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 07:45:11,763 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:11,764 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:45:11,765 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:45:11,765 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:45:11,765 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:45:11,765 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:45:11,765 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:45:11,765 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:45:11,765 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:11,766 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:45:11,766 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:45:11,766 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:45:11,767 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior500#-321774283] 07:45:11,777 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower501#1093006954] 07:45:11,778 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader502#-361791522] 07:45:11,782 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 07:45:11,782 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:11,782 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:45:11,783 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:45:11,784 AM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 07:45:11,784 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:11,784 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:45:11,785 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior503#184982616] 07:45:11,795 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower504#-1878105184] 07:45:11,795 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader505#516458260] 07:45:11,799 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [08/26/2025 07:45:11.800] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@3f75c420 [INFO] [pekkoDeadLetter][08/26/2025 07:45:11.800] [test-pekko.actor.default-dispatcher-5] [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'. 07:45:11,800 AM [test-pekko.actor.default-dispatcher-5] [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'. 07:45:11,801 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 07:45:11,801 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 07:45:11,802 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 07:45:11,802 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 07:45:11,803 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 07:45:11,803 AM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 07:45:11,803 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 07:45:11,803 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 07:45:11,804 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/junit-2645160649543931681/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 07:45:11,804 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2645160649543931681/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 07:45:11,804 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2645160649543931681/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 07:45:11,804 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 07:45:11,804 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 07:45:11,805 AM [test-pekko.actor.default-dispatcher-5] [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 07:45:11,809 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 07:45:11,809 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 07:45:11,809 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: taking snapshot to clear Pekko persistence to 1 07:45:11,809 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 07:45:11,809 AM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Taking snapshot on entry with index -1 07:45:11,809 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 07:45:11,809 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-2645160649543931681/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068AD6607-303C9A51.tmp 07:45:11,812 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-2645160649543931681/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068AD6607-303C9A51.v1 07:45:11,812 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-2645160649543931681/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068AD6607-303C9A51.v1 07:45:11,812 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2645160649543931681/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 07:45:11,812 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2645160649543931681/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 07:45:11,812 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2645160649543931681/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 07:45:11,812 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-26T07:45:11.809278033Z, file=/tmp/junit-2645160649543931681/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068AD6607-303C9A51.v1, size=419, entryCompress=NONE, stateCompress=NONE} 07:45:11,812 AM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot completed in 3.557 ms, resetting timer for the next recovery snapshot 07:45:11,812 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed and cannot restore from snapshot 07:45:11,812 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 07:45:11,812 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 07:45:11,812 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 07:45:11,812 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 07:45:11,813 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal recovery completedin 132.1 μs with journalIndex=1 07:45:11,813 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Journal recovery completed and cannot restore from snapshot 07:45:11,813 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: ignoring DeleteMessagesSuccess(1) 07:45:11,813 AM [test-pekko.actor.default-dispatcher-5] [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]]} 07:45:11,813 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 07:45:11,813 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:45:11,813 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 07:45:11,813 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:45:11,813 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 07:45:11,813 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:45:11,813 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 07:45:11,813 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 07:45:11,813 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 07:45:11,813 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 07:45:11,813 AM [test-pekko.actor.default-dispatcher-5] [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} 07:45:11,813 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 07:45:11,813 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 3 commands after 10.43 ms 07:45:11,813 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 07:45:11,813 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 07:45:11,813 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 07:45:11,813 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 07:45:11,813 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 07:45:11,813 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 07:45:11,819 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 3 completion(s) pending 07:45:11,819 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 3 completion(s) 07:45:11,819 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 3 commands in 5.350 ms 07:45:11,819 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:45:11,819 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 3.910 μs 07:45:11,819 AM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c0907640@540c523e} 07:45:11,819 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:45:11,819 AM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c0907640@540c523e} 07:45:11,819 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 07:45:11,819 AM [test-pekko.actor.default-dispatcher-5] [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] 07:45:11,819 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 07:45:11,819 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 07:45:11,819 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 07:45:11,819 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 07:45:11,819 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 07:45:11,819 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 07:45:11,819 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 07:45:11,819 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 226.9 μs 07:45:11,819 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 07:45:11,819 AM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c0907640@540c523e} 07:45:11,819 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 5.600 ms 07:45:11,819 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 07:45:11,819 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d290342] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-2645160649543931681/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068AD6607-30D66376.tmp [WARN] [08/26/2025 07:45:11.819] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] 07:45:11,819 AM [test-pekko.actor.default-dispatcher-13] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][08/26/2025 07:45:11.819] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:45:11,821 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d290342] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-2645160649543931681/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068AD6607-30D66376.v1 07:45:11,821 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d290342] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-2645160649543931681/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068AD6607-303C9A51.v1 07:45:11,821 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d290342] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-2645160649543931681/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068AD6607-30D66376.v1 07:45:11,821 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d290342] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2645160649543931681/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 07:45:11,822 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d290342] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2645160649543931681/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 07:45:11,822 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d290342] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2645160649543931681/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 07:45:11,822 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d290342] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-26T07:45:11.809278033Z, file=/tmp/junit-2645160649543931681/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068AD6607-303C9A51.v1, size=419, entryCompress=NONE, stateCompress=NONE} 07:45:11,822 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d290342] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-08-26T07:45:11.819356534Z, file=/tmp/junit-2645160649543931681/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068AD6607-30D66376.v1, size=539, entryCompress=NONE, stateCompress=NONE} 07:45:11,822 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d290342] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 07:45:11,823 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 07:45:11,823 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-08-26T07:45:11.819356534Z 07:45:11,823 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 07:45:11,823 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 07:45:11,823 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 3.860 ms 07:45:11,823 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 07:45:11,823 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 07:45:11,823 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 07:45:11,823 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 235.3 μs 07:45:11,823 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 07:45:11,823 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 07:45:11,964 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-2645160649543931681/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068AD6607-30D66376.v1 07:45:11,965 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2645160649543931681/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 07:45:11,965 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2645160649543931681/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 07:45:11,965 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2645160649543931681/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 07:45:11,965 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-08-26T07:45:11.819356534Z, file=/tmp/junit-2645160649543931681/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068AD6607-30D66376.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 07:45:11,967 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior506#2133790746] 07:45:11,978 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower507#-1886435633] 07:45:11,978 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader508#-425524011] 07:45:11,978 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 07:45:11,978 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#830,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159]/waiting 07:45:11,978 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 155.3 ms 07:45:11,979 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 17.31 μs 07:45:11,979 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 07:45:11,979 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 07:45:11,979 AM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 07:45:11,979 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 07:45:11,979 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 07:45:11,984 AM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 07:45:11,984 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:11,985 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:45:11,985 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 07:45:11,985 AM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 07:45:11,986 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:11,986 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 07:45:11,986 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior509#-670938059] 07:45:11,997 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower510#-1749237374] 07:45:11,997 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader511#-90745704] 07:45:12,1 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 07:45:12,1 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:12,1 AM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 07:45:12,2 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 07:45:12,2 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 07:45:12,2 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 07:45:12,3 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 07:45:12,3 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior512#-329336736] 07:45:12,14 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower513#131599472] 07:45:12,15 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader514#-931057441] 07:45:12,19 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 07:45:12,19 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:12,21 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 07:45:12,22 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 07:45:12,22 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:45:12,22 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 07:45:12,22 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:45:12,22 AM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 07:45:12,22 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 07:45:12,22 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 07:45:12,22 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 07:45:12,22 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 07:45:12,23 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 07:45:12,23 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:12,23 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 07:45:12,23 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 07:45:12,23 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:45:12,23 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:45:12,23 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:45:12,23 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:45:12,24 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:45:12,24 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:45:12,24 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 07:45:12,24 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 07:45:12,24 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior515#-801123812] 07:45:12,35 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower516#1077613083] 07:45:12,35 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader517#1869711129] 07:45:12,40 AM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 07:45:12,40 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:12,41 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 07:45:12,41 AM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 07:45:12,42 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior518#-1227480714] 07:45:12,53 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower519#712894133] 07:45:12,53 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader520#1281068705] 07:45:12,57 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 07:45:12,57 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:12,58 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:45:12,58 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:45:12,58 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:45:12,59 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:45:12,59 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 07:45:12,60 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 07:45:12,60 AM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 07:45:12,60 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:45:12,60 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 07:45:12,60 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 07:45:12,60 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 07:45:12,60 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 07:45:12,60 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:12,61 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 07:45:12,61 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 07:45:12,61 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:45:12,61 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:45:12,61 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior521#1199282212] 07:45:12,72 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower522#-189584427] 07:45:12,72 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader523#1988345665] 07:45:12,77 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 07:45:12,77 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:12,78 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:45:12,79 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:45:12,79 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 07:45:12,79 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:12,80 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:45:12,80 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:45:12,80 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:45:12,80 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 07:45:12,81 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:12,81 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:45:12,81 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 07:45:12,81 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:45:12,82 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 07:45:12,82 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:12,82 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 07:45:12,82 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior524#-1005580827] 07:45:12,93 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower525#599076205] 07:45:12,93 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader526#-1659367767] 07:45:12,97 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 07:45:12,97 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:12,297 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:45:12,298 AM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.171.204:17355, Removed) 07:45:12,298 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 07:45:12,298 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 07:45:12,298 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 07:45:12,298 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 07:45:12,298 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior527#-742022431] 07:45:12,309 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower528#300461739] 07:45:12,309 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader529#1986825102] 07:45:12,314 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:12,314 AM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 07:45:12,571 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:45:12,571 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior530#1659389636] 07:45:12,582 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower531#-1546199549] 07:45:12,582 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader532#-857763964] 07:45:12,586 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 07:45:12,586 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:12,587 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 07:45:12,588 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 07:45:12,589 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior533#1349993733] 07:45:12,599 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower534#78278182] 07:45:12,600 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader535#-552087516] 07:45:12,602 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 07:45:12,602 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:12,603 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 07:45:12,603 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:45:12,604 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 07:45:12,604 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 07:45:12,604 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 07:45:12,604 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 07:45:12,604 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 07:45:12,604 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:12,604 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 07:45:12,604 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 07:45:12,604 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:45:12,604 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:45:12,604 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:45:12,604 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:45:12,604 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:45:12,604 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:45:12,605 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 07:45:12,605 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 07:45:12,605 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 07:45:12,605 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 07:45:12,605 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior536#-694137410] 07:45:12,616 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower537#-1257254331] 07:45:12,616 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader538#-530179824] 07:45:12,620 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 07:45:12,620 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:12,621 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:45:12,621 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:45:12,621 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:45:12,622 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:45:12,623 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 07:45:12,623 AM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:12,624 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior539#1893496682] 07:45:12,635 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower540#1747210050] 07:45:12,635 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader541#518214728] 07:45:12,638 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 07:45:12,638 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:12,639 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 07:45:12,639 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 07:45:12,640 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:45:12,640 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 07:45:12,640 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 07:45:12,640 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior542#1271448424] 07:45:12,651 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower543#994733680] 07:45:12,651 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader544#-361363186] 07:45:12,655 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [08/26/2025 07:45:12.656] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@52694243 [INFO] [pekkoDeadLetter][08/26/2025 07:45:12.656] [test-pekko.actor.default-dispatcher-13] [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'. 07:45:12,657 AM [test-pekko.actor.default-dispatcher-13] [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'. 07:45:12,657 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 07:45:12,657 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:45:12,657 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:45:12,657 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 07:45:12,658 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 07:45:12,658 AM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 07:45:12,658 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 07:45:12,658 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 07:45:12,660 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 07:45:12,660 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:45:12,660 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:45:12,660 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 07:45:12,660 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:45:12,660 AM [test-pekko.actor.default-dispatcher-11] [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 07:45:12,663 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:45:12,663 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 07:45:12,663 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 07:45:12,663 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 07:45:12,663 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Taking snapshot on entry with index -1 07:45:12,663 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 07:45:12,664 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068AD6608-2793647B.tmp 07:45:12,666 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068AD6608-2793647B.v1 07:45:12,667 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068AD6608-2793647B.v1 07:45:12,667 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:45:12,667 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:45:12,667 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:45:12,667 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-26T07:45:12.663970939Z, file=/tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068AD6608-2793647B.v1, size=419, entryCompress=NONE, stateCompress=NONE} 07:45:12,667 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot completed in 3.426 ms, resetting timer for the next recovery snapshot 07:45:12,667 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 07:45:12,667 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 07:45:12,667 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 07:45:12,667 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 07:45:12,667 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 07:45:12,667 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 197.3 μs with journalIndex=1 07:45:12,667 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 07:45:12,668 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 07:45:12,769 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068AD6608-2793647B.v1 07:45:12,769 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:45:12,769 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:45:12,769 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:45:12,769 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-26T07:45:12.663970939Z, file=/tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068AD6608-2793647B.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 07:45:12,770 AM [test-pekko.actor.default-dispatcher-11] [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]]} 07:45:12,770 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 07:45:12,770 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:45:12,770 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 07:45:12,770 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:45:12,770 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 07:45:12,770 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:45:12,770 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 07:45:12,770 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 07:45:12,770 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 07:45:12,770 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 07:45:12,770 AM [test-pekko.actor.default-dispatcher-11] [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} 07:45:12,770 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 111.9 ms 07:45:12,770 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 07:45:12,770 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 07:45:12,770 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 07:45:12,770 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 07:45:12,770 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 07:45:12,770 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 07:45:12,770 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 07:45:12,770 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 07:45:12,770 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 07:45:12,770 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 07:45:12,770 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 07:45:12,770 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 07:45:12,770 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 07:45:12,770 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 07:45:12,770 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 07:45:12,775 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 07:45:12,775 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 07:45:12,775 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 4.836 ms 07:45:12,775 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:45:12,775 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 4.900 μs 07:45:12,775 AM [test-pekko.actor.default-dispatcher-11] [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/0x00000007c0907640@7d2d80a0} 07:45:12,775 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:45:12,775 AM [test-pekko.actor.default-dispatcher-11] [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/0x00000007c0907640@7d2d80a0} 07:45:12,775 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 07:45:12,776 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 07:45:12,776 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 07:45:12,776 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 07:45:12,776 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 1.012 ms 07:45:12,776 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 07:45:12,776 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 07:45:12,776 AM [test-pekko.actor.default-dispatcher-11] [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] 07:45:12,776 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 07:45:12,776 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 07:45:12,776 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 07:45:12,776 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 07:45:12,776 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 07:45:12,776 AM [test-pekko.actor.default-dispatcher-11] [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/0x00000007c0907640@7d2d80a0} 07:45:12,776 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d856464] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068AD6608-2E4AEB45.tmp 07:45:12,776 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 5.959 ms [WARN] [08/26/2025 07:45:12.777] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][08/26/2025 07:45:12.777] [test-pekko.actor.default-dispatcher-5] [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'. 07:45:12,777 AM [test-pekko.actor.default-dispatcher-6] [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'. 07:45:12,778 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d856464] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068AD6608-2E4AEB45.v1 07:45:12,778 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d856464] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068AD6608-2793647B.v1 07:45:12,778 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d856464] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068AD6608-2E4AEB45.v1 07:45:12,779 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d856464] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:45:12,779 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d856464] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:45:12,779 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d856464] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:45:12,779 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d856464] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-26T07:45:12.663970939Z, file=/tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068AD6608-2793647B.v1, size=419, entryCompress=NONE, stateCompress=NONE} 07:45:12,779 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d856464] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-26T07:45:12.776661829Z, file=/tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068AD6608-2E4AEB45.v1, size=573, entryCompress=NONE, stateCompress=NONE} 07:45:12,779 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d856464] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 07:45:12,779 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 07:45:12,779 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-08-26T07:45:12.776661829Z 07:45:12,779 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 07:45:12,779 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 07:45:12,779 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.117 ms 07:45:12,779 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 07:45:12,779 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 07:45:12,779 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 07:45:12,779 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 163.9 μs 07:45:12,779 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 07:45:12,779 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 07:45:13,22 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068AD6608-2E4AEB45.v1 07:45:13,22 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:45:13,22 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:45:13,22 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:45:13,22 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-26T07:45:12.776661829Z, file=/tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068AD6608-2E4AEB45.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 07:45:13,24 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 07:45:13,35 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#833,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160]/waiting 07:45:13,35 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 255.6 ms 07:45:13,35 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 18.22 μs 07:45:13,35 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 07:45:13,37 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 07:45:13,37 AM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 07:45:13,37 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:45:13,37 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [08/26/2025 07:45:13.039] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@6b5057c7 [INFO] [pekkoDeadLetter][08/26/2025 07:45:13.039] [test-pekko.actor.default-dispatcher-13] [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'. 07:45:13,39 AM [test-pekko.actor.default-dispatcher-13] [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'. 07:45:13,40 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 07:45:13,41 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:45:13,41 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:45:13,42 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 07:45:13,43 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 07:45:13,43 AM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 07:45:13,43 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 07:45:13,43 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 07:45:13,45 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:45:13,45 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068AD6608-2E4AEB45.v1 07:45:13,45 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:45:13,45 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:45:13,45 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:45:13,45 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-26T07:45:12.776661829Z, file=/tmp/junit-8061178012371411311/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068AD6608-2E4AEB45.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 07:45:13,45 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 07:45:13,46 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-08-26T07:45:12.776661829Z 07:45:13,46 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:45:13,46 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 165.9 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 07:45:13,46 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 307.6 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 07:45:13,46 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 07:45:13,46 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:45:13,46 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 07:45:13,47 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 07:45:13,47 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 07:45:13,47 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 07:45:13,47 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 07:45:13,47 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 146.3 μs with journalIndex=4 07:45:13,47 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 07:45:13,47 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior545#1395580987] 07:45:13,60 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower546#-367450250] 07:45:13,65 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader547#-754014632] 07:45:13,65 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 07:45:13,65 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#838,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161]/waiting 07:45:13,65 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 22.48 ms 07:45:13,65 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 8.570 μs 07:45:13,65 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 07:45:13,66 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 07:45:13,66 AM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 07:45:13,66 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:45:13,66 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:45:13,69 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 07:45:13,69 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:13,370 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 07:45:13,500 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:45:13,500 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 07:45:13,750 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 07:45:13,950 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 07:45:13,951 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior548#118127581] 07:45:13,962 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower549#732898997] 07:45:13,962 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader550#-633484543] 07:45:13,966 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:13,967 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:45:13,967 AM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 07:45:13,967 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 07:45:13,967 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 07:45:13,968 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 07:45:13,968 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior551#502022286] 07:45:13,979 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower552#-2126808505] 07:45:13,979 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader553#20521526] [INFO] [08/26/2025 07:45:13.981] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 07:45:13,981 AM [test-pekko.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [08/26/2025 07:45:13.983] [test-pekko.actor.default-dispatcher-6] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.204:17355) [INFO] [pekkoDeadLetter][08/26/2025 07:45:13.983] [test-pekko.actor.default-dispatcher-11] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1476104419] 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'. 07:45:13,983 AM [test-pekko.actor.default-dispatcher-6] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1476104419] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [08/26/2025 07:45:13.984] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.204:17355] - Exiting completed [INFO] [08/26/2025 07:45:13.984] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.204:17355] - Shutting down... 07:45:13,984 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.204:17355] - Exiting completed 07:45:13,984 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.204:17355] - Shutting down... [INFO] [08/26/2025 07:45:13.984] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.204:17355] - Successfully shut down 07:45:13,985 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.204:17355] - Successfully shut down 07:45:13,986 AM [test-pekko.actor.default-dispatcher-13] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [08/26/2025 07:45:13.986] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.204:17355/system/remoting-terminator] Shutting down remote daemon. 07:45:13,986 AM [test-pekko.actor.default-dispatcher-13] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [08/26/2025 07:45:13.986] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.204:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [08/26/2025 07:45:13.989] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.204:17355/system/remoting-terminator] Remoting shut down. 07:45:13,989 AM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [08/26/2025 07:45:13.989] [test-pekko.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger