[DEBUG] [08/29/2025 16:17:04.894] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 04:17:04,894 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [08/29/2025 16:17:04.894] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [08/29/2025 16:17:04.894] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [08/29/2025 16:17:04.906] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.15:17355] with UID [-7755048771470053370] 04:17:04,906 PM [test-pekko.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.15:17355] with UID [-7755048771470053370] 04:17:04,908 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.15:17355] - Starting up, Pekko version [1.1.5] ... 04:17:04,910 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.15:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 04:17:04,910 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.15:17355] - Started up successfully 04:17:04,910 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.15:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 04:17:04,910 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.15:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [08/29/2025 16:17:04.907] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.15:17355] - Starting up, Pekko version [1.1.5] ... [INFO] [08/29/2025 16:17:04.909] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.15:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [08/29/2025 16:17:04.909] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.15:17355] - Started up successfully [INFO] [08/29/2025 16:17:04.910] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.15:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [08/29/2025 16:17:04.910] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.15:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 04:17:04,925 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:05,20 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 04:17:05,20 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 04:17:05,35 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior425#1449044972] 04:17:05,48 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower426#982385751] 04:17:05,49 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader427#-1213444602] 04:17:05,58 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:05,59 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 04:17:05,60 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:17:05,60 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 04:17:05,60 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 04:17:05,60 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 04:17:05,60 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 04:17:05,60 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:17:05,60 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 04:17:05,60 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 04:17:05,61 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:17:05,61 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:17:05,61 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 04:17:05,62 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior428#102004826] 04:17:05,78 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower429#-8368341] 04:17:05,85 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader430#-1068273015] 04:17:05,98 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:05,100 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 04:17:05,100 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 04:17:05,102 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior431#-258879128] 04:17:05,114 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower432#1689489412] 04:17:05,115 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader433#156693961] 04:17:05,136 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:05,137 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 04:17:05,139 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 04:17:05,140 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:17:05,140 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 04:17:05,141 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 04:17:05,142 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 04:17:05,142 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 04:17:05,142 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 04:17:05,142 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 04:17:05,143 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 04:17:05,143 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 04:17:05,144 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 04:17:05,145 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior434#1991161852] 04:17:05,155 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower435#532991256] 04:17:05,156 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader436#-1523021012] 04:17:05,172 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:05,172 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:17:05,173 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:17:05,174 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:05,174 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 04:17:05,175 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 04:17:05,175 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 04:17:05,175 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 04:17:05,176 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 04:17:05,176 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior437#-641004825] 04:17:05,177 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower438#-1846089071] 04:17:05,177 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader439#-527088489] 04:17:05,181 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:05,182 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 04:17:05,183 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior440#564713280] 04:17:05,183 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower441#-1845476824] 04:17:05,183 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader442#-1794535174] 04:17:05,187 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:05,188 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 04:17:05,188 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 04:17:05,189 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior443#-776904432] 04:17:05,189 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower444#2091174402] 04:17:05,189 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader445#-1589710519] 04:17:05,193 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 04:17:05,193 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:05,195 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:17:05,195 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:17:05,195 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:17:05,195 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:17:05,196 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 04:17:05,196 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 04:17:05,196 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 04:17:05,196 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 04:17:05,199 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 04:17:05,200 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior446#-2052780779] 04:17:05,200 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower447#1718332135] 04:17:05,201 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader448#-1003431179] 04:17:05,203 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 04:17:05,203 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:05,204 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 04:17:05,204 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 04:17:05,204 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:17:05,204 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 04:17:05,205 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior449#256025726] 04:17:05,205 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower450#1035317680] 04:17:05,205 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader451#-2042532102] 04:17:05,208 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 04:17:05,208 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:05,208 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:17:05,208 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:17:05,208 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:17:05,208 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:17:05,209 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 04:17:05,209 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 04:17:05,209 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 04:17:05,209 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 04:17:05,210 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:17:05,210 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:17:05,210 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 04:17:05,210 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:17:05,210 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 04:17:05,211 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior452#224704010] 04:17:05,211 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower453#569695281] 04:17:05,211 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader454#2067550359] 04:17:05,214 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:05,214 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 04:17:05,215 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior455#-359655504] 04:17:05,215 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower456#358633252] 04:17:05,215 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader457#673294966] 04:17:05,217 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 04:17:05,217 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:05,218 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:17:05,218 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:17:05,218 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:17:05,218 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:17:05,218 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:17:05,219 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:17:05,219 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:17:05,219 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:17:05,219 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:17:05,219 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 04:17:05,219 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 04:17:05,219 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior458#-780505263] 04:17:05,222 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower459#-1289519808] 04:17:05,222 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader460#1932591116] 04:17:05,225 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 04:17:05,225 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:05,226 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 04:17:05,226 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:17:05,226 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 04:17:05,226 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 04:17:05,226 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:17:05,226 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 04:17:05,226 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:17:05,226 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:17:05,226 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 04:17:05,227 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:17:05,227 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:17:05,227 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 04:17:05,227 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 04:17:05,227 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 04:17:05,228 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:17:05,228 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 04:17:05,228 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 04:17:05,228 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 04:17:05,228 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 04:17:05,228 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 04:17:05,228 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:17:05,228 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 04:17:05,228 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 04:17:05,228 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:17:05,228 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:17:05,228 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior461#848898377] 04:17:05,229 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower462#1708040455] 04:17:05,229 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader463#2126955995] 04:17:05,236 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 04:17:05,236 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:05,238 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 04:17:05,239 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:17:05,239 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:17:05,239 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 04:17:05,239 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior464#1639028362] 04:17:05,250 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower465#1907291155] 04:17:05,250 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader466#-1347987638] 04:17:05,255 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:05,259 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior467#-761140279] 04:17:05,270 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower468#1560342836] 04:17:05,270 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader469#452976772] 04:17:05,284 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 04:17:05,284 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:05,284 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 04:17:05,285 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:17:05,285 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:17:05,286 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:17:05,286 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:17:05,286 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:17:05,286 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:17:05,286 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:17:05,286 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:17:05,287 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:17:05,287 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 04:17:05,287 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 04:17:05,287 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 04:17:05,287 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 04:17:05,288 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior470#1600286856] 04:17:05,289 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower471#1905569305] 04:17:05,289 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader472#-2010635925] 04:17:05,293 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [08/29/2025 16:17:05.296] [test-pekko.actor.default-dispatcher-10] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@d460498 [INFO] [pekkoDeadLetter][08/29/2025 16:17:05.296] [test-pekko.actor.default-dispatcher-5] [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'. 04:17:05,297 PM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:17:05,297 PM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 04:17:05,297 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 04:17:05,297 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 04:17:05,298 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 04:17:05,298 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 04:17:05,298 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 04:17:05,298 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 04:17:05,298 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 04:17:05,308 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/junit-8270715975202684056/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 04:17:05,308 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8270715975202684056/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:17:05,308 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8270715975202684056/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:17:05,308 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 04:17:05,308 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:17:05,308 PM [test-pekko.actor.default-dispatcher-12] [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 04:17:05,312 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:17:05,312 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 04:17:05,312 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 04:17:05,312 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 04:17:05,312 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 04:17:05,312 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 04:17:05,312 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-8270715975202684056/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B1D281-129EA7BE.tmp 04:17:05,315 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-8270715975202684056/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B1D281-129EA7BE.v1 04:17:05,315 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8270715975202684056/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B1D281-129EA7BE.v1 04:17:05,315 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8270715975202684056/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:17:05,315 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8270715975202684056/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:17:05,315 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8270715975202684056/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:17:05,315 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-29T16:17:05.312387518Z, file=/tmp/junit-8270715975202684056/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B1D281-129EA7BE.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:17:05,316 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot completed in 3.719 ms, resetting timer for the next recovery snapshot 04:17:05,316 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 04:17:05,316 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 04:17:05,316 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 04:17:05,316 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 04:17:05,316 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 04:17:05,316 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: journal recovery completedin 160.5 μs with journalIndex=1 04:17:05,316 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 04:17:05,316 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 04:17:05,418 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8270715975202684056/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B1D281-129EA7BE.v1 04:17:05,418 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8270715975202684056/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:17:05,418 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8270715975202684056/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:17:05,418 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8270715975202684056/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:17:05,418 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-29T16:17:05.312387518Z, file=/tmp/junit-8270715975202684056/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B1D281-129EA7BE.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 04:17:05,420 PM [test-pekko.actor.default-dispatcher-5] [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]]} 04:17:05,420 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 04:17:05,420 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:17:05,420 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 04:17:05,420 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 04:17:05,420 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 04:17:05,420 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 04:17:05,420 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 04:17:05,420 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 04:17:05,420 PM [test-pekko.actor.default-dispatcher-5] [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} 04:17:05,420 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 04:17:05,420 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 04:17:05,420 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 04:17:05,420 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 04:17:05,420 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 04:17:05,420 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 04:17:05,421 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 04:17:05,421 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 04:17:05,421 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 04:17:05,421 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 04:17:05,421 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 04:17:05,421 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 3 commands after 122.6 ms 04:17:05,425 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 04:17:05,425 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 3 completion(s) pending 04:17:05,425 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 3 commands in 4.506 ms 04:17:05,425 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 04:17:05,425 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 3 completion(s) 04:17:05,426 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 04:17:05,426 PM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c09048f0@257d3255} 04:17:05,426 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 04:17:05,426 PM [test-pekko.actor.default-dispatcher-5] [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] 04:17:05,426 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 04:17:05,426 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 04:17:05,426 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 04:17:05,426 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 04:17:05,426 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 04:17:05,426 PM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c09048f0@257d3255} 04:17:05,426 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 5.222 ms [WARN] [08/29/2025 16:17:05.426] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][08/29/2025 16:17:05.426] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:17:05,426 PM [test-pekko.actor.default-dispatcher-12] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:17:05,427 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d772988] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-8270715975202684056/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B1D281-19689B4F.tmp 04:17:05,429 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d772988] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-8270715975202684056/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B1D281-19689B4F.v1 04:17:05,429 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d772988] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8270715975202684056/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B1D281-19689B4F.v1 04:17:05,429 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d772988] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8270715975202684056/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B1D281-129EA7BE.v1 04:17:05,429 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d772988] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8270715975202684056/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:17:05,429 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d772988] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8270715975202684056/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:17:05,429 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d772988] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8270715975202684056/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:17:05,429 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d772988] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-29T16:17:05.312387518Z, file=/tmp/junit-8270715975202684056/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B1D281-129EA7BE.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:17:05,429 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d772988] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-08-29T16:17:05.426285903Z, file=/tmp/junit-8270715975202684056/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B1D281-19689B4F.v1, size=555, entryCompress=NONE, stateCompress=NONE} 04:17:05,429 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d772988] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 04:17:05,430 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 04:17:05,430 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-08-29T16:17:05.426285903Z 04:17:05,430 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 04:17:05,430 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 04:17:05,430 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 4.264 ms 04:17:05,430 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 04:17:05,430 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 04:17:05,430 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 04:17:05,430 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 126.7 μs 04:17:05,430 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 04:17:05,430 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 04:17:05,621 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8270715975202684056/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B1D281-19689B4F.v1 04:17:05,622 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8270715975202684056/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:17:05,622 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8270715975202684056/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:17:05,622 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8270715975202684056/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:17:05,622 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-08-29T16:17:05.426285903Z, file=/tmp/junit-8270715975202684056/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B1D281-19689B4F.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 04:17:05,627 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior473#1246785283] 04:17:05,628 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower474#-1879742726] 04:17:05,628 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader475#-1261637352] 04:17:05,628 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 04:17:05,628 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#831,testCaptureSnapshotOnLastEntryInAppendEntries-writer-158]/waiting 04:17:05,629 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 198.7 ms 04:17:05,629 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 12.49 μs 04:17:05,629 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 04:17:05,629 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 04:17:05,629 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 04:17:05,629 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 04:17:05,629 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 04:17:05,634 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:05,635 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior476#-706578755] 04:17:05,636 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower477#-1479242944] 04:17:05,636 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader478#-385841471] 04:17:05,640 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 04:17:05,640 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:05,642 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 04:17:05,642 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 04:17:05,642 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior479#740555550] 04:17:05,643 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower480#-48497492] 04:17:05,643 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader481#435176990] 04:17:05,645 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 04:17:05,646 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:05,646 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:17:05,646 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:17:05,647 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:17:05,647 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:17:05,647 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:17:05,647 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 04:17:05,647 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:17:05,647 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:17:05,647 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:17:05,647 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 04:17:05,647 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 04:17:05,648 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior482#-353905394] 04:17:05,649 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower483#-263613028] 04:17:05,649 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader484#-213997245] 04:17:05,651 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 04:17:05,651 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:05,652 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:17:05,652 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:17:05,652 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:17:05,653 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:17:05,653 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:17:05,653 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 04:17:05,653 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:17:05,654 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 04:17:05,654 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:17:05,654 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 04:17:05,655 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior485#-871244895] 04:17:05,655 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower486#351763537] 04:17:05,655 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader487#-1800230382] 04:17:05,658 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:05,658 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior488#-42415335] 04:17:05,658 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower489#-762838638] 04:17:05,658 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader490#1365248517] 04:17:05,664 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 04:17:05,664 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:05,665 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:17:05,665 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:17:05,666 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:17:05,666 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:17:05,666 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:17:05,666 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 04:17:05,668 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:17:05,668 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 04:17:05,668 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:17:05,668 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 04:17:05,669 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:17:05,669 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 04:17:05,669 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:17:05,669 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 04:17:05,670 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior491#-328621289] 04:17:05,670 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower492#-75283656] 04:17:05,670 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader493#-2027018980] 04:17:05,673 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 04:17:05,675 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:05,676 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 04:17:05,676 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:17:05,676 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 04:17:05,676 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 04:17:05,676 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 04:17:05,676 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 04:17:05,676 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:17:05,676 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 04:17:05,676 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 04:17:05,676 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 04:17:05,677 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior494#-1681589125] 04:17:05,678 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower495#480036292] 04:17:05,678 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader496#1492044416] 04:17:05,681 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 04:17:05,681 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:05,682 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 04:17:05,683 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader499 04:17:05,683 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader499 04:17:05,685 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 04:17:05,685 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior497#-1911680403] 04:17:05,686 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower498#-217040982] 04:17:05,686 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader499#744484481] 04:17:05,688 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 04:17:05,689 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:05,689 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:17:05,690 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:17:05,690 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:17:05,690 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:17:05,690 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:17:05,690 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:17:05,690 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:17:05,690 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:17:05,691 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:17:05,691 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 04:17:05,691 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 04:17:05,691 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior500#-554696084] 04:17:05,692 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower501#-812428520] 04:17:05,692 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader502#-915726036] 04:17:05,694 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 04:17:05,694 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:05,694 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:17:05,695 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:17:05,695 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:17:05,695 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:17:05,695 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:17:05,696 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior503#1937997257] 04:17:05,696 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower504#-1242165536] 04:17:05,696 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader505#-470959147] 04:17:05,698 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [08/29/2025 16:17:05.698] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@357957c3 [INFO] [pekkoDeadLetter][08/29/2025 16:17:05.699] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:17:05,699 PM [test-pekko.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:17:05,699 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 04:17:05,699 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 04:17:05,699 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 04:17:05,699 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 04:17:05,700 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 04:17:05,700 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 04:17:05,701 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 04:17:05,701 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 04:17:05,702 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/junit-10126871851909290117/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 04:17:05,702 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10126871851909290117/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:17:05,702 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10126871851909290117/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:17:05,702 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 04:17:05,702 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 04:17:05,702 PM [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 04:17:05,705 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 04:17:05,705 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 04:17:05,705 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: taking snapshot to clear Pekko persistence to 1 04:17:05,705 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 04:17:05,705 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Taking snapshot on entry with index -1 04:17:05,705 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 04:17:05,705 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-10126871851909290117/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B1D281-2A11719E.tmp 04:17:05,709 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-10126871851909290117/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B1D281-2A11719E.v1 04:17:05,709 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-10126871851909290117/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B1D281-2A11719E.v1 04:17:05,709 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10126871851909290117/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 04:17:05,709 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10126871851909290117/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:17:05,709 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10126871851909290117/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:17:05,709 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-29T16:17:05.705786270Z, file=/tmp/junit-10126871851909290117/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B1D281-2A11719E.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:17:05,709 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot completed in 3.555 ms, resetting timer for the next recovery snapshot 04:17:05,709 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed and cannot restore from snapshot 04:17:05,709 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 04:17:05,709 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 04:17:05,709 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 04:17:05,709 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 04:17:05,709 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal recovery completedin 144.0 μs with journalIndex=1 04:17:05,709 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Journal recovery completed and cannot restore from snapshot 04:17:05,709 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: ignoring DeleteMessagesSuccess(1) 04:17:05,710 PM [test-pekko.actor.default-dispatcher-6] [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]]} 04:17:05,710 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 04:17:05,710 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:17:05,710 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 04:17:05,710 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 04:17:05,710 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 04:17:05,710 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 04:17:05,710 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 04:17:05,710 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 04:17:05,710 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 04:17:05,710 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 04:17:05,710 PM [test-pekko.actor.default-dispatcher-6] [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} 04:17:05,710 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 04:17:05,710 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 04:17:05,710 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 04:17:05,710 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 04:17:05,710 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 04:17:05,710 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 04:17:05,710 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 04:17:05,710 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 4 commands after 9.254 ms 04:17:05,715 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 04:17:05,715 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 4 completion(s) pending 04:17:05,715 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 4 commands in 4.776 ms 04:17:05,715 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 04:17:05,715 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 4 completion(s) 04:17:05,715 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 04:17:05,715 PM [test-pekko.actor.default-dispatcher-6] [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/0x00000007c09048f0@791f7eed} 04:17:05,715 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 04:17:05,715 PM [test-pekko.actor.default-dispatcher-6] [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/0x00000007c09048f0@791f7eed} 04:17:05,715 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 04:17:05,715 PM [test-pekko.actor.default-dispatcher-6] [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] 04:17:05,715 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 04:17:05,715 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 04:17:05,715 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 04:17:05,715 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 04:17:05,715 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 04:17:05,715 PM [test-pekko.actor.default-dispatcher-6] [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/0x00000007c09048f0@791f7eed} 04:17:05,715 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 5.319 ms [WARN] [08/29/2025 16:17:05.715] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][08/29/2025 16:17:05.716] [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'. 04:17:05,716 PM [test-pekko.actor.default-dispatcher-6] [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'. 04:17:05,716 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d242619] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-10126871851909290117/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B1D281-2AA8AD03.tmp 04:17:05,718 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d242619] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-10126871851909290117/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B1D281-2AA8AD03.v1 04:17:05,718 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d242619] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-10126871851909290117/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B1D281-2A11719E.v1 04:17:05,718 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d242619] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-10126871851909290117/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B1D281-2AA8AD03.v1 04:17:05,718 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d242619] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10126871851909290117/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 04:17:05,718 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d242619] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10126871851909290117/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:17:05,718 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d242619] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10126871851909290117/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:17:05,718 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d242619] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-29T16:17:05.705786270Z, file=/tmp/junit-10126871851909290117/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B1D281-2A11719E.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:17:05,718 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d242619] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-08-29T16:17:05.715697411Z, file=/tmp/junit-10126871851909290117/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B1D281-2AA8AD03.v1, size=539, entryCompress=NONE, stateCompress=NONE} 04:17:05,718 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d242619] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 04:17:05,719 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 04:17:05,719 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-08-29T16:17:05.715697411Z 04:17:05,719 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 04:17:05,719 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 04:17:05,719 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 4.077 ms 04:17:05,719 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 04:17:05,719 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 04:17:05,719 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 04:17:05,719 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 138.6 μs 04:17:05,719 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 04:17:05,719 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 04:17:05,812 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-10126871851909290117/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B1D281-2AA8AD03.v1 04:17:05,812 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10126871851909290117/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 04:17:05,812 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10126871851909290117/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:17:05,812 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10126871851909290117/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:17:05,812 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-08-29T16:17:05.715697411Z, file=/tmp/junit-10126871851909290117/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B1D281-2AA8AD03.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 04:17:05,815 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior506#399873062] 04:17:05,820 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower507#-857414910] 04:17:05,820 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader508#572981576] 04:17:05,821 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 04:17:05,821 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#837,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159]/waiting 04:17:05,821 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 101.6 ms 04:17:05,821 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 10.26 μs 04:17:05,821 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 04:17:05,821 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 04:17:05,821 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 04:17:05,821 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 04:17:05,821 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 04:17:05,824 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 04:17:05,825 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:05,825 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:17:05,826 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 04:17:05,826 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 04:17:05,826 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:17:05,827 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 04:17:05,827 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior509#-364693200] 04:17:05,828 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower510#1822823678] 04:17:05,828 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader511#-436005602] 04:17:05,831 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 04:17:05,831 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:05,831 PM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 04:17:05,832 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 04:17:05,832 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 04:17:05,832 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 04:17:05,833 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 04:17:05,833 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior512#-1743634398] 04:17:05,833 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower513#1206388947] 04:17:05,834 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader514#-1675837163] 04:17:05,836 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 04:17:05,836 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:05,837 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 04:17:05,838 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 04:17:05,838 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:17:05,838 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 04:17:05,838 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:17:05,838 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 04:17:05,838 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 04:17:05,838 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 04:17:05,838 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 04:17:05,838 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 04:17:05,838 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 04:17:05,838 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:17:05,838 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 04:17:05,838 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 04:17:05,838 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:17:05,838 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:17:05,839 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 04:17:05,839 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 04:17:05,839 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:17:05,839 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:17:05,839 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 04:17:05,839 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 04:17:05,839 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior515#819287722] 04:17:05,840 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower516#-2108861627] 04:17:05,840 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader517#-1352844615] 04:17:05,842 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 04:17:05,842 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:05,843 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 04:17:05,843 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 04:17:05,843 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior518#-742155405] 04:17:05,844 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower519#124147286] 04:17:05,844 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader520#12776963] 04:17:05,846 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 04:17:05,846 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:05,846 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:17:05,847 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:17:05,847 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:17:05,847 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:17:05,847 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 04:17:05,847 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 04:17:05,847 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 04:17:05,848 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:17:05,848 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 04:17:05,848 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 04:17:05,848 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 04:17:05,848 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 04:17:05,848 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:17:05,848 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 04:17:05,848 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 04:17:05,848 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:17:05,848 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:17:05,848 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior521#703981457] 04:17:05,849 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower522#1418920262] 04:17:05,849 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader523#336762603] 04:17:05,852 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 04:17:05,852 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:05,853 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:17:05,853 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:17:05,853 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:17:05,853 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:17:05,853 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:17:05,853 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 04:17:05,854 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:17:05,854 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 04:17:05,854 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:17:05,854 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 04:17:05,854 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 04:17:05,855 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:17:05,855 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 04:17:05,855 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:17:05,855 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 04:17:05,855 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior524#-2126619184] 04:17:05,856 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower525#360413371] 04:17:05,856 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader526#-544956036] 04:17:05,858 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 04:17:05,858 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:06,59 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:17:06,59 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.15:17355, Removed) 04:17:06,59 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 04:17:06,59 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 04:17:06,59 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 04:17:06,59 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 04:17:06,59 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior527#812277247] 04:17:06,60 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower528#-1324408476] 04:17:06,60 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader529#-80311870] 04:17:06,63 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:06,63 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 04:17:06,265 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:17:06,265 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior530#1369482015] 04:17:06,276 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower531#-1252776352] 04:17:06,276 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader532#377280884] 04:17:06,280 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 04:17:06,280 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:06,281 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 04:17:06,282 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 04:17:06,282 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior533#1009940048] 04:17:06,283 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower534#649890260] 04:17:06,283 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader535#-694518213] 04:17:06,287 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 04:17:06,287 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:06,288 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 04:17:06,288 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:17:06,288 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 04:17:06,288 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 04:17:06,288 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 04:17:06,288 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 04:17:06,288 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 04:17:06,288 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:17:06,288 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 04:17:06,288 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 04:17:06,289 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:17:06,289 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:17:06,289 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 04:17:06,289 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 04:17:06,289 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:17:06,289 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:17:06,289 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 04:17:06,289 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 04:17:06,289 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 04:17:06,289 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 04:17:06,291 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior536#-1791602131] 04:17:06,292 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower537#-1571703008] 04:17:06,292 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader538#-797325349] 04:17:06,296 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 04:17:06,296 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:06,296 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:17:06,296 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:17:06,296 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:17:06,296 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:17:06,297 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 04:17:06,297 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:17:06,297 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior539#1114959044] 04:17:06,298 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower540#1480861690] 04:17:06,298 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader541#-328932919] 04:17:06,300 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 04:17:06,301 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:06,301 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 04:17:06,301 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 04:17:06,301 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:17:06,302 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 04:17:06,302 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 04:17:06,302 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior542#-1667675873] 04:17:06,303 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower543#-5267320] 04:17:06,303 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader544#1204167884] 04:17:06,305 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries 04:17:06,306 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 04:17:06,306 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:17:06,306 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:17:06,307 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 04:17:06,307 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 04:17:06,307 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 04:17:06,307 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 04:17:06,307 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands [WARN] [08/29/2025 16:17:06.307] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@4c0d8e5a [INFO] [pekkoDeadLetter][08/29/2025 16:17:06.307] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:17:06,307 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:17:06,309 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 04:17:06,309 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:17:06,309 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:17:06,309 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 04:17:06,309 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:17:06,309 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 04:17:06,313 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:17:06,313 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 04:17:06,313 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 04:17:06,313 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 04:17:06,313 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Taking snapshot on entry with index -1 04:17:06,313 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 04:17:06,313 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B1D282-12B1BF67.tmp 04:17:06,315 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B1D282-12B1BF67.v1 04:17:06,316 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B1D282-12B1BF67.v1 04:17:06,316 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:17:06,316 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:17:06,316 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:17:06,316 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-29T16:17:06.313638759Z, file=/tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B1D282-12B1BF67.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:17:06,316 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot completed in 2.621 ms, resetting timer for the next recovery snapshot 04:17:06,316 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 04:17:06,316 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 04:17:06,316 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 04:17:06,316 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 04:17:06,316 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 04:17:06,316 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 132.3 μs with journalIndex=1 04:17:06,316 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 04:17:06,316 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 04:17:06,418 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B1D282-12B1BF67.v1 04:17:06,418 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:17:06,418 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:17:06,418 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:17:06,418 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-29T16:17:06.313638759Z, file=/tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B1D282-12B1BF67.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 04:17:06,418 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 04:17:06,419 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 04:17:06,419 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:17:06,419 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 04:17:06,419 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 04:17:06,419 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 04:17:06,419 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 04:17:06,419 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 04:17:06,419 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 04:17:06,419 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 04:17:06,419 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 04:17:06,419 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:17:06,419 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 111.8 ms 04:17:06,419 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 04:17:06,419 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 04:17:06,419 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 04:17:06,419 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 04:17:06,419 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 04:17:06,419 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 04:17:06,419 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 04:17:06,419 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 04:17:06,419 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 04:17:06,419 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 04:17:06,419 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 04:17:06,419 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 04:17:06,419 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 04:17:06,419 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 04:17:06,419 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 04:17:06,423 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 04:17:06,423 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 04:17:06,423 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 4.510 ms 04:17:06,423 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 04:17:06,423 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c09048f0@145f3eb3} 04:17:06,423 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 7.090 μs 04:17:06,424 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 04:17:06,424 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c09048f0@145f3eb3} 04:17:06,424 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 04:17:06,424 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 04:17:06,424 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 04:17:06,424 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 04:17:06,424 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 04:17:06,424 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 928.6 μs 04:17:06,424 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:17:06,424 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 04:17:06,425 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 04:17:06,425 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 04:17:06,425 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 04:17:06,425 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 04:17:06,425 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 04:17:06,425 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c09048f0@145f3eb3} 04:17:06,425 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 5.326 ms 04:17:06,425 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d456546] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B1D282-1956577F.tmp [WARN] [08/29/2025 16:17:06.425] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] 04:17:06,425 PM [test-pekko.actor.default-dispatcher-5] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][08/29/2025 16:17:06.425] [test-pekko.actor.default-dispatcher-6] [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'. 04:17:06,427 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d456546] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B1D282-1956577F.v1 04:17:06,427 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d456546] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B1D282-12B1BF67.v1 04:17:06,427 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d456546] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B1D282-1956577F.v1 04:17:06,427 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d456546] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:17:06,427 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d456546] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:17:06,427 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d456546] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:17:06,427 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d456546] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-29T16:17:06.313638759Z, file=/tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B1D282-12B1BF67.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:17:06,427 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d456546] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-29T16:17:06.425088895Z, file=/tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B1D282-1956577F.v1, size=573, entryCompress=NONE, stateCompress=NONE} 04:17:06,427 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d456546] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 04:17:06,428 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 04:17:06,428 PM [test-pekko.actor.default-dispatcher-10] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-08-29T16:17:06.425088895Z 04:17:06,428 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 04:17:06,428 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 04:17:06,428 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.312 ms 04:17:06,428 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 04:17:06,428 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 04:17:06,428 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 04:17:06,428 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 125.5 μs 04:17:06,428 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:17:06,428 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 04:17:06,621 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B1D282-1956577F.v1 04:17:06,621 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:17:06,621 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:17:06,621 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:17:06,621 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-29T16:17:06.425088895Z, file=/tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B1D282-1956577F.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 04:17:06,625 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 04:17:06,628 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#840,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160]/waiting 04:17:06,628 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 200.0 ms 04:17:06,628 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 15.04 μs 04:17:06,628 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 04:17:06,628 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:17:06,628 PM [test-pekko.actor.default-dispatcher-10] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:17:06,628 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:17:06,629 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [08/29/2025 16:17:06.630] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@7e2f3aff [INFO] [pekkoDeadLetter][08/29/2025 16:17:06.631] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:17:06,631 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:17:06,631 PM [test-pekko.actor.default-dispatcher-10] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 04:17:06,631 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:17:06,631 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:17:06,632 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 04:17:06,634 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 04:17:06,634 PM [test-pekko.actor.default-dispatcher-10] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 04:17:06,635 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 04:17:06,635 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:17:06,636 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:17:06,636 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B1D282-1956577F.v1 04:17:06,636 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:17:06,636 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:17:06,636 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:17:06,636 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-29T16:17:06.425088895Z, file=/tmp/junit-12218128048569815783/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B1D282-1956577F.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 04:17:06,636 PM [test-pekko.actor.default-dispatcher-10] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 04:17:06,637 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-08-29T16:17:06.425088895Z 04:17:06,637 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:17:06,637 PM [test-pekko.actor.default-dispatcher-10] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 126.5 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 04:17:06,637 PM [test-pekko.actor.default-dispatcher-10] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 242.0 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 04:17:06,637 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 04:17:06,637 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:17:06,637 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 04:17:06,637 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 04:17:06,637 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 04:17:06,637 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 04:17:06,637 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 04:17:06,637 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 95.77 μs with journalIndex=4 04:17:06,637 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 04:17:06,638 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior545#-273601848] 04:17:06,649 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower546#-1974494280] 04:17:06,649 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader547#1555322109] 04:17:06,649 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 04:17:06,649 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#846,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161]/waiting 04:17:06,650 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 14.84 ms 04:17:06,650 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 14.76 μs 04:17:06,650 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 04:17:06,650 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:17:06,650 PM [test-pekko.actor.default-dispatcher-15] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:17:06,650 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:17:06,650 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:17:06,654 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 04:17:06,654 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:06,955 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 04:17:07,85 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:17:07,85 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 04:17:07,336 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 04:17:07,536 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 04:17:07,536 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior548#-666147446] 04:17:07,537 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower549#-1522821696] 04:17:07,537 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader550#-654652248] 04:17:07,541 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:17:07,541 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:17:07,541 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 04:17:07,542 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 04:17:07,542 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 04:17:07,542 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 04:17:07,542 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior551#1171183369] 04:17:07,543 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower552#1174170841] 04:17:07,543 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader553#-1059146813] [INFO] [08/29/2025 16:17:07.544] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 04:17:07,544 PM [test-pekko.actor.default-dispatcher-10] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [08/29/2025 16:17:07.545] [test-pekko.actor.default-dispatcher-10] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.15:17355) [INFO] [pekkoDeadLetter][08/29/2025 16:17:07.545] [test-pekko.actor.default-dispatcher-15] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1424931661] 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'. 04:17:07,545 PM [test-pekko.actor.default-dispatcher-10] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1424931661] 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/29/2025 16:17:07.546] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.15:17355] - Exiting completed [INFO] [08/29/2025 16:17:07.546] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.15:17355] - Shutting down... [INFO] [08/29/2025 16:17:07.546] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.15:17355] - Successfully shut down 04:17:07,546 PM [test-pekko.actor.default-dispatcher-10] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.15:17355] - Exiting completed 04:17:07,546 PM [test-pekko.actor.default-dispatcher-10] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.15:17355] - Shutting down... 04:17:07,546 PM [test-pekko.actor.default-dispatcher-10] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.15:17355] - Successfully shut down [INFO] [08/29/2025 16:17:07.547] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.15:17355/system/remoting-terminator] Shutting down remote daemon. 04:17:07,547 PM [test-pekko.actor.default-dispatcher-15] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [08/29/2025 16:17:07.548] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.15:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 04:17:07,548 PM [test-pekko.actor.default-dispatcher-10] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [08/29/2025 16:17:07.550] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.15:17355/system/remoting-terminator] Remoting shut down. 04:17:07,550 PM [test-pekko.actor.default-dispatcher-15] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [08/29/2025 16:17:07.550] [test-pekko.actor.internal-dispatcher-4] [EventStream] shutting down: StandardOutLogger