[DEBUG] [04/07/2026 09:08:01.962] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 09:08:01,962 AM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [04/07/2026 09:08:01.963] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [04/07/2026 09:08:01.963] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [04/07/2026 09:08:01.975] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.136:17355] with UID [2155038222497457394] 09:08:01,975 AM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.136:17355] with UID [2155038222497457394] [INFO] [04/07/2026 09:08:01.975] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.136:17355] - Starting up, Pekko version [1.4.0] ... 09:08:01,976 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.136:17355] - Starting up, Pekko version [1.4.0] ... [INFO] [04/07/2026 09:08:01.978] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.136:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [04/07/2026 09:08:01.978] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.136:17355] - Started up successfully 09:08:01,978 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.136:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 09:08:01,978 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.136:17355] - Started up successfully 09:08:01,980 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.136:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [04/07/2026 09:08:01.980] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.136:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 09:08:01,980 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.136:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [04/07/2026 09:08:01.980] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.136:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 09:08:01,990 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,78 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 09:08:02,78 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 09:08:02,79 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior420#571864976] 09:08:02,80 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower421#1702214681] 09:08:02,80 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader422#1348196494] 09:08:02,83 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,85 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 09:08:02,85 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:08:02,85 AM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 09:08:02,85 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 09:08:02,85 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 09:08:02,85 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 09:08:02,86 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:08:02,86 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 09:08:02,86 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 09:08:02,87 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:08:02,87 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:08:02,87 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 09:08:02,88 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior423#835434755] 09:08:02,89 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower424#1551661511] 09:08:02,89 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader425#-550678147] 09:08:02,93 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,94 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 09:08:02,94 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 09:08:02,94 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior426#321813005] 09:08:02,95 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower427#607648192] 09:08:02,95 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader428#637723925] 09:08:02,98 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,99 AM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 09:08:02,102 AM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 09:08:02,102 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:08:02,103 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 09:08:02,103 AM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 09:08:02,106 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 09:08:02,106 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 09:08:02,106 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 09:08:02,106 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 09:08:02,108 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 09:08:02,108 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 09:08:02,110 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 09:08:02,111 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior429#271645001] 09:08:02,122 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower430#-2046833041] 09:08:02,122 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader431#1824312369] 09:08:02,127 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,127 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:08:02,127 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:08:02,128 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,128 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 09:08:02,129 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 09:08:02,129 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 09:08:02,129 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 09:08:02,129 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 09:08:02,130 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior432#-1303722291] 09:08:02,131 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower433#1666345461] 09:08:02,131 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader434#-1328906760] 09:08:02,133 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,134 AM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 09:08:02,134 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior435#-537725592] 09:08:02,135 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower436#-1401565459] 09:08:02,135 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader437#1767031562] 09:08:02,137 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,138 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 09:08:02,138 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 09:08:02,138 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior438#690415850] 09:08:02,139 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower439#913838114] 09:08:02,139 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader440#-1242965389] 09:08:02,141 AM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 09:08:02,141 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,142 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:08:02,142 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:08:02,142 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:08:02,143 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:08:02,143 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 09:08:02,143 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 09:08:02,143 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 09:08:02,143 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 09:08:02,145 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 09:08:02,146 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior441#-89511973] 09:08:02,146 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower442#-145231955] 09:08:02,147 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader443#2085859015] 09:08:02,149 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 09:08:02,149 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,150 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 09:08:02,150 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 09:08:02,150 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:08:02,150 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 09:08:02,151 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior444#1837831593] 09:08:02,151 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower445#830327851] 09:08:02,151 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader446#-1842131346] 09:08:02,153 AM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 09:08:02,153 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,154 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:08:02,154 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:08:02,154 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:08:02,154 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:08:02,154 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 09:08:02,154 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 09:08:02,155 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 09:08:02,155 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 09:08:02,155 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:08:02,155 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:08:02,155 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 09:08:02,156 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:08:02,156 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 09:08:02,156 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior447#1627387887] 09:08:02,156 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower448#102482105] 09:08:02,157 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader449#-2111432979] 09:08:02,159 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,159 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 09:08:02,160 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior450#1776153822] 09:08:02,160 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower451#63710337] 09:08:02,160 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader452#1530594106] 09:08:02,162 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 09:08:02,162 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,163 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:08:02,163 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:08:02,163 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:08:02,163 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:08:02,163 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:08:02,163 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:08:02,163 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:08:02,164 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:08:02,164 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:08:02,164 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 09:08:02,164 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 09:08:02,164 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior453#1145293559] 09:08:02,165 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower454#251347902] 09:08:02,165 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader455#1737051616] 09:08:02,167 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 09:08:02,167 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,168 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 09:08:02,168 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:08:02,168 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 09:08:02,168 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 09:08:02,168 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:08:02,168 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 09:08:02,168 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:08:02,168 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:08:02,168 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 09:08:02,168 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:08:02,168 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:08:02,168 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 09:08:02,168 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 09:08:02,169 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 09:08:02,169 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:08:02,169 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 09:08:02,169 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 09:08:02,169 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 09:08:02,169 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 09:08:02,169 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 09:08:02,169 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:08:02,169 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 09:08:02,169 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 09:08:02,169 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:08:02,169 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:08:02,170 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#-804628902] 09:08:02,170 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower457#2075500524] 09:08:02,170 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader458#-1513111369] 09:08:02,172 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 09:08:02,173 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,173 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 09:08:02,173 AM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 09:08:02,174 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:08:02,174 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 09:08:02,174 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#447531902] 09:08:02,175 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower460#1501847840] 09:08:02,175 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader461#-1414946268] 09:08:02,177 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,179 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#1026604359] 09:08:02,179 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower463#1058528468] 09:08:02,179 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader464#940476227] 09:08:02,181 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 09:08:02,182 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,182 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 09:08:02,182 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:08:02,182 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:08:02,182 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:08:02,182 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:08:02,183 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:08:02,183 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:08:02,183 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:08:02,183 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:08:02,183 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:08:02,183 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 09:08:02,183 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 09:08:02,183 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 09:08:02,183 AM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 09:08:02,183 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#1363599231] 09:08:02,184 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower466#-1719650471] 09:08:02,184 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader467#459102209] 09:08:02,186 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries 09:08:02,190 AM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:08:02,190 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 09:08:02,191 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 09:08:02,191 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 09:08:02,191 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 09:08:02,192 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 09:08:02,193 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 09:08:02,193 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 09:08:02,193 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 09:08:02,193 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/junit-16897613195011148333/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist [WARN] [04/07/2026 09:08:02.193] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@28caeb01 [INFO] [pekkoDeadLetter][04/07/2026 09:08:02.193] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:08:02,194 AM [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'. 09:08:02,194 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=0, votedFor=null 09:08:02,194 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 09:08:02,195 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-16897613195011148333/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 09:08:02,195 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-16897613195011148333/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 09:08:02,195 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-16897613195011148333/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 09:08:02,195 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 09:08:02,195 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 09:08:02,195 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 09:08:02,195 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 09:08:02,195 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed in in 2.195 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 09:08:02,195 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed and can restore from snapshot 09:08:02,195 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 09:08:02,195 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 09:08:02,195 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: writer thread VirtualThread[#631,testCaptureSnapshotOnLastEntryInAppendEntries-writer-154]/waiting started 09:08:02,196 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-16897613195011148333/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 09:08:02,196 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-16897613195011148333/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 09:08:02,196 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-16897613195011148333/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 09:08:02,196 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 09:08:02,196 AM [test-pekko.actor.default-dispatcher-11] [INFO] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]}" message is greater than follower's term 0 - updating term 09:08:02,198 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:08:02,198 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 09:08:02,198 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 09:08:02,198 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 09:08:02,198 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 09:08:02,198 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 09:08:02,198 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 2.794 ms 09:08:02,198 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 09:08:02,198 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 09:08:02,198 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 09:08:02,198 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 09:08:02,198 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:08:02,199 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 09:08:02,199 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 09:08:02,199 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 09:08:02,199 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 09:08:02,199 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 09:08:02,199 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 09:08:02,199 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 09:08:02,199 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 09:08:02,199 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 09:08:02,199 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 09:08:02,199 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 09:08:02,203 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 09:08:02,203 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 4.793 ms 09:08:02,203 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 2.260 μs 09:08:02,203 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 09:08:02,203 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 09:08:02,203 AM [test-pekko.actor.default-dispatcher-11] [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/0x00000007c093c238@bdb5089} 09:08:02,203 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 09:08:02,204 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 09:08:02,204 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 09:08:02,204 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 960.9 μs 09:08:02,204 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 09:08:02,204 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 09:08:02,204 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 09:08:02,204 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 09:08:02,204 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 09:08:02,204 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 09:08:02,204 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 09:08:02,204 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d279969] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-16897613195011148333/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069D4C972-0C31B817.tmp 09:08:02,205 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 09:08:02,205 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 09:08:02,205 AM [test-pekko.actor.default-dispatcher-11] [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/0x00000007c093c238@bdb5089} 09:08:02,205 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 6.406 ms [WARN] [04/07/2026 09:08:02.205] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][04/07/2026 09:08:02.205] [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'. 09:08:02,206 AM [test-pekko.actor.default-dispatcher-11] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:08:02,209 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d279969] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-16897613195011148333/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069D4C972-0C31B817.v1 09:08:02,209 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d279969] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-16897613195011148333/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069D4C972-0C31B817.v1 09:08:02,209 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d279969] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-16897613195011148333/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 09:08:02,209 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d279969] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-16897613195011148333/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 09:08:02,209 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d279969] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-16897613195011148333/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 09:08:02,209 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d279969] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2026-04-07T09:08:02.204584983Z, file=/tmp/junit-16897613195011148333/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069D4C972-0C31B817.v1, size=555, entryCompress=NONE, stateCompress=NONE} 09:08:02,209 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d279969] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 09:08:02,209 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 09:08:02,209 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2026-04-07T09:08:02.204584983Z 09:08:02,210 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 09:08:02,210 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 09:08:02,210 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 5.723 ms 09:08:02,210 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 09:08:02,210 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 09:08:02,210 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 09:08:02,210 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 144.7 μs 09:08:02,210 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 09:08:02,210 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 09:08:02,297 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-16897613195011148333/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069D4C972-0C31B817.v1 09:08:02,297 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-16897613195011148333/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 09:08:02,297 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-16897613195011148333/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 09:08:02,297 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-16897613195011148333/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 09:08:02,297 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2026-04-07T09:08:02.204584983Z, file=/tmp/junit-16897613195011148333/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069D4C972-0C31B817.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 09:08:02,300 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#-1549357381] 09:08:02,301 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower469#1924400868] 09:08:02,301 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader470#-1969037137] 09:08:02,302 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 09:08:02,302 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#631,testCaptureSnapshotOnLastEntryInAppendEntries-writer-154]/waiting 09:08:02,302 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 92.06 ms 09:08:02,302 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 15.59 μs 09:08:02,302 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 09:08:02,302 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminated thread VirtualThread[#631,testCaptureSnapshotOnLastEntryInAppendEntries-writer-154]/terminated 09:08:02,302 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 09:08:02,302 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 09:08:02,302 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 09:08:02,302 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 09:08:02,310 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,310 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior471#-718628762] 09:08:02,311 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower472#-1575118936] 09:08:02,311 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader473#1381718952] 09:08:02,315 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 09:08:02,315 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,317 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 09:08:02,317 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 09:08:02,318 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior474#176605625] 09:08:02,319 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower475#-1181349502] 09:08:02,319 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader476#1419499262] 09:08:02,322 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 09:08:02,322 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,322 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:08:02,323 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:08:02,323 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:08:02,323 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:08:02,323 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:08:02,323 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 09:08:02,323 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:08:02,323 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:08:02,323 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:08:02,323 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 09:08:02,324 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 09:08:02,324 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#-1812278599] 09:08:02,325 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower478#-280335639] 09:08:02,325 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader479#1894016237] 09:08:02,327 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 09:08:02,327 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,328 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:08:02,328 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:08:02,328 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 09:08:02,329 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:08:02,329 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:08:02,329 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 09:08:02,329 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:08:02,329 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 09:08:02,330 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:08:02,330 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 09:08:02,330 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#572719159] 09:08:02,331 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower481#-1472498757] 09:08:02,331 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader482#-215159752] 09:08:02,333 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,334 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior483#-1187657606] 09:08:02,334 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower484#-1104146741] 09:08:02,334 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader485#-1946624508] 09:08:02,336 AM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 09:08:02,336 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,337 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:08:02,337 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:08:02,338 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 09:08:02,338 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:08:02,338 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:08:02,338 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 09:08:02,338 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:08:02,338 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 09:08:02,339 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:08:02,339 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 09:08:02,339 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:08:02,339 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 09:08:02,339 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:08:02,339 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 09:08:02,340 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior486#-1538434583] 09:08:02,340 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower487#-676118997] 09:08:02,340 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader488#1401870780] 09:08:02,343 AM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 09:08:02,343 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,344 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 09:08:02,344 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:08:02,344 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 09:08:02,344 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 09:08:02,344 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 09:08:02,344 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 09:08:02,344 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:08:02,344 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 09:08:02,344 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 09:08:02,344 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 09:08:02,345 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior489#1656478629] 09:08:02,345 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower490#-1127542524] 09:08:02,345 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader491#-479011058] 09:08:02,348 AM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 09:08:02,348 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,349 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 09:08:02,349 AM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader494 09:08:02,349 AM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader494 09:08:02,351 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 09:08:02,351 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior492#-317863805] 09:08:02,352 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower493#-1224904140] 09:08:02,352 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader494#-338515198] 09:08:02,354 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 09:08:02,354 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,355 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:08:02,355 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:08:02,355 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:08:02,355 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:08:02,355 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:08:02,355 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:08:02,355 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:08:02,355 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:08:02,355 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:08:02,355 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 09:08:02,355 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 09:08:02,356 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior495#1652344980] 09:08:02,356 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower496#1504575111] 09:08:02,356 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader497#-1565433978] 09:08:02,358 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 09:08:02,358 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,359 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:08:02,359 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:08:02,359 AM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 09:08:02,359 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:08:02,359 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:08:02,360 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#-1562471115] 09:08:02,360 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower499#1681733511] 09:08:02,360 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader500#-902807412] 09:08:02,362 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 09:08:02,364 AM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 09:08:02,365 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] [WARN] [04/07/2026 09:08:02.365] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@1c5bdbd2 09:08:02,365 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 09:08:02,365 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 09:08:02,365 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 09:08:02,366 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 [INFO] [pekkoDeadLetter][04/07/2026 09:08:02.365] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:08:02,366 AM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:08:02,366 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 09:08:02,366 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 09:08:02,366 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 09:08:02,367 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/junit-5243854642252996909/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 09:08:02,369 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=0, votedFor=null 09:08:02,369 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=0} 09:08:02,369 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-5243854642252996909/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 09:08:02,369 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-5243854642252996909/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 09:08:02,369 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-5243854642252996909/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 09:08:02,369 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 09:08:02,369 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 09:08:02,369 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 09:08:02,370 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 09:08:02,370 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed in in 3.079 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 09:08:02,370 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed and can restore from snapshot 09:08:02,370 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: writer thread VirtualThread[#635,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155]/runnable started 09:08:02,370 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 09:08:02,370 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 09:08:02,370 AM [test-pekko.actor.default-dispatcher-11] [INFO] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]}" message is greater than follower's term 0 - updating term 09:08:02,371 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 09:08:02,371 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 09:08:02,372 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 09:08:02,372 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 09:08:02,372 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 09:08:02,372 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 09:08:02,372 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 09:08:02,372 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 09:08:02,372 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 09:08:02,372 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 09:08:02,372 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 09:08:02,372 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 09:08:02,372 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:08:02,372 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 09:08:02,372 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 09:08:02,372 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 09:08:02,372 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 09:08:02,372 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 09:08:02,372 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 3 commands after 1.812 ms 09:08:02,372 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 09:08:02,372 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 09:08:02,376 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 3 completion(s) pending 09:08:02,376 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 3 completion(s) 09:08:02,376 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 3 commands in 4.209 ms 09:08:02,376 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 09:08:02,376 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 4.141 μs 09:08:02,376 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c093c238@66e82c07} 09:08:02,376 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 09:08:02,376 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c093c238@66e82c07} 09:08:02,376 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 09:08:02,376 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 09:08:02,376 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 09:08:02,376 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 09:08:02,376 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 09:08:02,376 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 09:08:02,376 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 205.8 μs 09:08:02,376 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 09:08:02,376 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 09:08:02,376 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 09:08:02,376 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 09:08:02,376 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c093c238@66e82c07} 09:08:02,376 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d305730] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-5243854642252996909/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069D4C972-16752597.tmp 09:08:02,376 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 4.660 ms 09:08:02,376 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) [WARN] [04/07/2026 09:08:02.377] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][04/07/2026 09:08:02.377] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:08:02,377 AM [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'. 09:08:02,378 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d305730] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-5243854642252996909/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069D4C972-16752597.v1 09:08:02,378 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d305730] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-5243854642252996909/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069D4C972-16752597.v1 09:08:02,379 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d305730] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-5243854642252996909/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 09:08:02,379 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d305730] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-5243854642252996909/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 09:08:02,379 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d305730] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-5243854642252996909/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 09:08:02,379 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d305730] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2026-04-07T09:08:02.376776087Z, file=/tmp/junit-5243854642252996909/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069D4C972-16752597.v1, size=539, entryCompress=NONE, stateCompress=NONE} 09:08:02,379 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d305730] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 09:08:02,379 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 09:08:02,379 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2026-04-07T09:08:02.376776087Z 09:08:02,379 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 09:08:02,379 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 09:08:02,380 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 3.500 ms 09:08:02,380 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 09:08:02,380 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 09:08:02,380 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 09:08:02,380 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 202.5 μs 09:08:02,380 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 09:08:02,380 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 09:08:02,521 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-5243854642252996909/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069D4C972-16752597.v1 09:08:02,522 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-5243854642252996909/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 09:08:02,522 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-5243854642252996909/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 09:08:02,522 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-5243854642252996909/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 09:08:02,522 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2026-04-07T09:08:02.376776087Z, file=/tmp/junit-5243854642252996909/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069D4C972-16752597.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 09:08:02,524 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#-1951034351] 09:08:02,535 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower502#-732292051] 09:08:02,535 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader503#-1041090608] 09:08:02,535 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 09:08:02,535 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#635,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155]/waiting 09:08:02,535 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 155.3 ms 09:08:02,535 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 19.61 μs 09:08:02,536 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 09:08:02,536 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminated thread VirtualThread[#635,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155]/terminated 09:08:02,536 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 09:08:02,536 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 09:08:02,536 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 09:08:02,536 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 09:08:02,540 AM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 09:08:02,541 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,541 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:08:02,542 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 09:08:02,542 AM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 09:08:02,543 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:08:02,543 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 09:08:02,544 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior504#400214123] 09:08:02,544 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower505#-1715148767] 09:08:02,545 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader506#926517546] 09:08:02,547 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 09:08:02,547 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,547 AM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 09:08:02,548 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 09:08:02,548 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 09:08:02,548 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 09:08:02,548 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 09:08:02,548 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#-712679437] 09:08:02,549 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower508#-2084436841] 09:08:02,549 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader509#563286417] 09:08:02,551 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 09:08:02,551 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,551 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 09:08:02,551 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 09:08:02,552 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:08:02,552 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 09:08:02,552 AM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 09:08:02,552 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 09:08:02,552 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 09:08:02,552 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 09:08:02,552 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 09:08:02,552 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 09:08:02,552 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:08:02,552 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 09:08:02,552 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 09:08:02,552 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:08:02,552 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:08:02,552 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 09:08:02,552 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 09:08:02,552 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:08:02,552 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:08:02,552 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 09:08:02,552 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 09:08:02,553 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior510#889618289] 09:08:02,553 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower511#998861607] 09:08:02,553 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader512#-2072878328] 09:08:02,555 AM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 09:08:02,555 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,555 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 09:08:02,555 AM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 09:08:02,556 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#1737303884] 09:08:02,556 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower514#1659951730] 09:08:02,557 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader515#1404447245] 09:08:02,558 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 09:08:02,558 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,559 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:08:02,559 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:08:02,559 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:08:02,559 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:08:02,559 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 09:08:02,560 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 09:08:02,560 AM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 09:08:02,560 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:08:02,560 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 09:08:02,560 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 09:08:02,560 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 09:08:02,560 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 09:08:02,560 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:08:02,560 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 09:08:02,560 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 09:08:02,560 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:08:02,560 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:08:02,561 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior516#-918302410] 09:08:02,561 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower517#-1569422244] 09:08:02,561 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518#-1087441787] 09:08:02,563 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 09:08:02,563 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,564 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:08:02,564 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:08:02,564 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 09:08:02,564 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:08:02,564 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:08:02,564 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 09:08:02,565 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:08:02,565 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 09:08:02,565 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:08:02,565 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 09:08:02,565 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 09:08:02,566 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:08:02,566 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 09:08:02,566 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:08:02,566 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 09:08:02,566 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior519#1128762922] 09:08:02,567 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower520#-756708746] 09:08:02,567 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader521#-484335128] 09:08:02,569 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 09:08:02,569 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,770 AM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.136:17355, Removed) 09:08:02,770 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 09:08:02,770 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 09:08:02,770 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 09:08:02,770 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 09:08:02,770 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior522#-1782889704] 09:08:02,772 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower523#802628786] 09:08:02,772 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader524#1842142835] 09:08:02,776 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,776 AM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 09:08:02,978 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior525#-1595704659] 09:08:02,979 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower526#-995016641] 09:08:02,979 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader527#-429158016] 09:08:02,983 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 09:08:02,983 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,986 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 09:08:02,986 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 09:08:02,987 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior528#1442265625] 09:08:02,988 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower529#-1596084646] 09:08:02,988 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader530#1313347618] 09:08:02,990 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 09:08:02,991 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:02,991 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 09:08:02,991 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:08:02,991 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 09:08:02,991 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 09:08:02,991 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 09:08:02,991 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 09:08:02,992 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 09:08:02,992 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:08:02,992 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 09:08:02,992 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 09:08:02,992 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:08:02,992 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:08:02,992 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 09:08:02,992 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 09:08:02,992 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:08:02,992 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:08:02,992 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 09:08:02,992 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 09:08:02,992 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 09:08:02,992 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 09:08:02,993 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior531#1250879169] 09:08:03,4 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower532#-140909686] 09:08:03,4 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader533#-773188704] 09:08:03,7 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 09:08:03,7 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:03,9 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:08:03,9 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:08:03,9 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:08:03,10 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:08:03,11 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 09:08:03,12 AM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:08:03,12 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior534#-1310193125] 09:08:03,23 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower535#1739598871] 09:08:03,23 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader536#-1906556286] 09:08:03,27 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 09:08:03,27 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:03,28 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 09:08:03,29 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 09:08:03,30 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:08:03,30 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 09:08:03,30 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 09:08:03,31 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior537#-281837915] 09:08:03,42 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower538#-1443426723] 09:08:03,42 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader539#576330375] 09:08:03,46 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries 09:08:03,49 AM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:08:03,49 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 09:08:03,50 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 09:08:03,51 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:08:03,51 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:08:03,51 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 09:08:03,52 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 09:08:03,52 AM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 09:08:03,52 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 09:08:03,52 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/junit-15996027530942561109/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist [WARN] [04/07/2026 09:08:03.052] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@1acf3da1 09:08:03,52 AM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. [INFO] [pekkoDeadLetter][04/07/2026 09:08:03.052] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:08:03,55 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=0, votedFor=null 09:08:03,55 AM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 09:08:03,55 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15996027530942561109/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:08:03,55 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15996027530942561109/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 09:08:03,55 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15996027530942561109/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 09:08:03,55 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 09:08:03,55 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 09:08:03,55 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 09:08:03,55 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 09:08:03,56 AM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 3.781 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 09:08:03,56 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and can restore from snapshot 09:08:03,56 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: writer thread VirtualThread[#638,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156]/runnable started 09:08:03,56 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 09:08:03,56 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 09:08:03,56 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15996027530942561109/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:08:03,56 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15996027530942561109/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 09:08:03,56 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15996027530942561109/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 09:08:03,56 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 09:08:03,56 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]}" message is greater than follower's term 0 - updating term 09:08:03,60 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:08:03,60 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 09:08:03,60 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 09:08:03,60 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 09:08:03,60 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 09:08:03,60 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 09:08:03,60 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 09:08:03,60 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 09:08:03,60 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 09:08:03,60 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 09:08:03,60 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 4.511 ms 09:08:03,60 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 09:08:03,60 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 09:08:03,60 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:08:03,60 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 09:08:03,60 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 09:08:03,60 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 09:08:03,60 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 09:08:03,60 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 09:08:03,60 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 09:08:03,60 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 09:08:03,60 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 09:08:03,60 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 09:08:03,60 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 09:08:03,60 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 09:08:03,60 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 09:08:03,60 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 09:08:03,60 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 09:08:03,61 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 09:08:03,63 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 09:08:03,63 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 09:08:03,63 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 2.846 ms 09:08:03,63 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 09:08:03,63 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 2.500 μs 09:08:03,63 AM [test-pekko.actor.default-dispatcher-6] [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/0x00000007c093c238@63857659} 09:08:03,63 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 09:08:03,64 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 09:08:03,64 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 09:08:03,64 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 09:08:03,64 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 1.260 ms 09:08:03,64 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 09:08:03,64 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 09:08:03,64 AM [test-pekko.actor.default-dispatcher-6] [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/0x00000007c093c238@63857659} 09:08:03,64 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 09:08:03,64 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 09:08:03,65 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 09:08:03,65 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 09:08:03,65 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 09:08:03,65 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 09:08:03,65 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 09:08:03,65 AM [test-pekko.actor.default-dispatcher-6] [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/0x00000007c093c238@63857659} 09:08:03,65 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d815722] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-15996027530942561109/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069D4C973-03E08555.tmp 09:08:03,65 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 4.116 ms [WARN] [04/07/2026 09:08:03.065] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][04/07/2026 09:08:03.065] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:08:03,65 AM [test-pekko.actor.default-dispatcher-6] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:08:03,66 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d815722] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-15996027530942561109/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069D4C973-03E08555.v1 09:08:03,67 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d815722] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-15996027530942561109/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069D4C973-03E08555.v1 09:08:03,67 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d815722] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15996027530942561109/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:08:03,67 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d815722] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15996027530942561109/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 09:08:03,67 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d815722] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15996027530942561109/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 09:08:03,67 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d815722] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-04-07T09:08:03.065045845Z, file=/tmp/junit-15996027530942561109/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069D4C973-03E08555.v1, size=573, entryCompress=NONE, stateCompress=NONE} 09:08:03,67 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d815722] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 09:08:03,67 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 09:08:03,67 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2026-04-07T09:08:03.065045845Z 09:08:03,67 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 09:08:03,67 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 09:08:03,67 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 2.540 ms 09:08:03,67 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 09:08:03,67 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 09:08:03,67 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 09:08:03,67 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 09:08:03,67 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 114.8 μs 09:08:03,67 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 09:08:03,208 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-15996027530942561109/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069D4C973-03E08555.v1 09:08:03,208 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15996027530942561109/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:08:03,208 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15996027530942561109/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 09:08:03,208 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15996027530942561109/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 09:08:03,208 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-04-07T09:08:03.065045845Z, file=/tmp/junit-15996027530942561109/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069D4C973-03E08555.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 09:08:03,211 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 09:08:03,221 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#638,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156]/waiting 09:08:03,222 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 154.5 ms 09:08:03,222 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 18.90 μs 09:08:03,222 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 09:08:03,222 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminated thread VirtualThread[#638,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156]/terminated 09:08:03,222 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 09:08:03,222 AM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 09:08:03,222 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 09:08:03,222 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 09:08:03,223 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [04/07/2026 09:08:03.223] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@7ba54bdb [INFO] [pekkoDeadLetter][04/07/2026 09:08:03.223] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:08:03,223 AM [test-pekko.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:08:03,224 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 09:08:03,224 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:08:03,224 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:08:03,225 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 09:08:03,225 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 09:08:03,225 AM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 09:08:03,225 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 09:08:03,226 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:08:03,226 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-15996027530942561109/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069D4C973-03E08555.v1 09:08:03,226 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15996027530942561109/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:08:03,226 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15996027530942561109/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 09:08:03,226 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15996027530942561109/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 09:08:03,226 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-04-07T09:08:03.065045845Z, file=/tmp/junit-15996027530942561109/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069D4C973-03E08555.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 09:08:03,226 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2026-04-07T09:08:03.065045845Z 09:08:03,226 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 09:08:03,227 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 09:08:03,227 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 09:08:03,227 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 09:08:03,227 AM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 1.718 ms: last log index = 2, last log term = 1, napshot index = 2, snapshot term = 1, journal size = 0 09:08:03,227 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and cannot restore from snapshot 09:08:03,227 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: writer thread VirtualThread[#641,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/runnable started 09:08:03,227 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 09:08:03,227 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 09:08:03,228 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior540#39350958] 09:08:03,229 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower541#1905689538] 09:08:03,229 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader542#-1893833480] 09:08:03,229 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 09:08:03,229 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#641,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/waiting 09:08:03,229 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 2.006 ms 09:08:03,229 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 10.02 μs 09:08:03,229 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 09:08:03,230 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminated thread VirtualThread[#641,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/terminated 09:08:03,230 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 09:08:03,230 AM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 09:08:03,230 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 09:08:03,230 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 09:08:03,235 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 09:08:03,235 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:03,535 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 09:08:03,666 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 09:08:03,916 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 09:08:04,117 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 09:08:04,117 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior543#-1081801717] 09:08:04,128 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower544#1934674545] 09:08:04,128 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader545#663173294] 09:08:04,143 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:08:04,143 AM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 09:08:04,143 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 09:08:04,143 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 09:08:04,144 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 09:08:04,144 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior546#1600158741] 09:08:04,155 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower547#-1943757574] 09:08:04,155 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader548#1769559147] [INFO] [04/07/2026 09:08:04.156] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 09:08:04,157 AM [test-pekko.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [04/07/2026 09:08:04.158] [test-pekko.actor.default-dispatcher-6] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.136:17355) 09:08:04,158 AM [test-pekko.actor.default-dispatcher-6] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-206830229] 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] [pekkoDeadLetter][04/07/2026 09:08:04.158] [test-pekko.actor.default-dispatcher-11] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-206830229] 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] [04/07/2026 09:08:04.159] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.136:17355] - Exiting completed 09:08:04,159 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.136:17355] - Exiting completed [INFO] [04/07/2026 09:08:04.159] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.136:17355] - Shutting down... 09:08:04,159 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.136:17355] - Shutting down... [INFO] [04/07/2026 09:08:04.159] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.136:17355] - Successfully shut down 09:08:04,160 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.136:17355] - Successfully shut down [INFO] [04/07/2026 09:08:04.161] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.136:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [04/07/2026 09:08:04.161] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.136:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 09:08:04,161 AM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 09:08:04,161 AM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. 09:08:04,163 AM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [04/07/2026 09:08:04.163] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.170.136:17355/system/remoting-terminator] Remoting shut down. [DEBUG] [04/07/2026 09:08:04.164] [test-pekko.actor.internal-dispatcher-9] [EventStream] shutting down: StandardOutLogger