[DEBUG] [03/17/2026 16:58:59.939] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 04:58:59,945 PM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [03/17/2026 16:58:59.946] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [03/17/2026 16:58:59.946] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [03/17/2026 16:58:59.962] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.52:17355] with UID [2515991298463775838] [INFO] [03/17/2026 16:58:59.962] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.52:17355] - Starting up, Pekko version [1.4.0] ... 04:58:59,963 PM [test-pekko.actor.default-dispatcher-9] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.52:17355] with UID [2515991298463775838] 04:58:59,963 PM [test-pekko.actor.default-dispatcher-9] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.52:17355] - Starting up, Pekko version [1.4.0] ... [INFO] [03/17/2026 16:58:59.964] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.52:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [03/17/2026 16:58:59.964] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.52:17355] - Started up successfully 04:58:59,964 PM [test-pekko.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.52:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 04:58:59,964 PM [test-pekko.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.52:17355] - Started up successfully 04:58:59,966 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.52:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [03/17/2026 16:58:59.966] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.52:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 04:58:59,966 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.52:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [03/17/2026 16:58:59.966] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.52:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 04:58:59,976 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,55 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 04:59:00,55 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 04:59:00,56 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior420#1906092854] 04:59:00,67 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower421#1456508755] 04:59:00,68 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader422#-337694839] 04:59:00,72 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,74 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 04:59:00,74 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:59:00,74 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 04:59:00,75 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 04:59:00,75 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 04:59:00,75 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 04:59:00,75 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:59:00,75 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 04:59:00,76 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 04:59:00,77 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:59:00,77 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:59:00,77 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 04:59:00,78 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior423#1435549543] 04:59:00,88 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower424#-736691553] 04:59:00,89 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader425#1224551708] 04:59:00,92 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,94 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 04:59:00,95 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 04:59:00,95 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior426#-494421936] 04:59:00,106 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower427#2111210033] 04:59:00,106 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader428#-832820612] 04:59:00,110 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,111 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 04:59:00,112 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 04:59:00,112 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:59:00,112 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 04:59:00,113 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 04:59:00,115 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 04:59:00,115 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 04:59:00,115 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 04:59:00,115 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 04:59:00,117 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 04:59:00,117 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 04:59:00,118 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 04:59:00,119 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior429#1075009765] 04:59:00,130 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower430#-1391100181] 04:59:00,130 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader431#-427189838] 04:59:00,134 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,134 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:59:00,135 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:59:00,135 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,136 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 04:59:00,136 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 04:59:00,137 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 04:59:00,137 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 04:59:00,137 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 04:59:00,137 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior432#1077040170] 04:59:00,148 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower433#2022035238] 04:59:00,148 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader434#1131327102] 04:59:00,152 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,153 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 04:59:00,154 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior435#-582035482] 04:59:00,165 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower436#1069743196] 04:59:00,165 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader437#2135045839] 04:59:00,169 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,170 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 04:59:00,170 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 04:59:00,171 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior438#1730132134] 04:59:00,182 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower439#-161778015] 04:59:00,182 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader440#1216779696] 04:59:00,185 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 04:59:00,185 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,189 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:59:00,189 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:59:00,189 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:59:00,189 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:59:00,190 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 04:59:00,190 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 04:59:00,190 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 04:59:00,190 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 04:59:00,195 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 04:59:00,195 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior441#-1362141747] 04:59:00,206 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower442#-821275323] 04:59:00,206 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader443#342503495] 04:59:00,210 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 04:59:00,210 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,211 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 04:59:00,212 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 04:59:00,212 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:59:00,212 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 04:59:00,213 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior444#-788218524] 04:59:00,224 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower445#-160511441] 04:59:00,224 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader446#-1520865646] 04:59:00,227 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 04:59:00,227 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,228 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:59:00,228 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:59:00,228 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:59:00,228 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:59:00,229 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 04:59:00,229 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 04:59:00,229 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 04:59:00,230 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 04:59:00,230 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:59:00,231 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:59:00,231 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 04:59:00,232 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:59:00,232 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 04:59:00,232 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior447#105584268] 04:59:00,243 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower448#-1206097898] 04:59:00,243 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader449#961497346] 04:59:00,246 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,247 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 04:59:00,248 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior450#827802748] 04:59:00,259 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower451#-53351317] 04:59:00,259 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader452#-1531885299] 04:59:00,261 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 04:59:00,261 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,262 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:59:00,263 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:59:00,263 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:59:00,263 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:59:00,263 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:59:00,263 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:59:00,263 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:59:00,264 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:59:00,264 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:59:00,264 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 04:59:00,264 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 04:59:00,265 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior453#1703237443] 04:59:00,276 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower454#71536133] 04:59:00,276 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader455#121047298] 04:59:00,279 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 04:59:00,279 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,280 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 04:59:00,280 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:59:00,280 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 04:59:00,280 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 04:59:00,280 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:59:00,280 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 04:59:00,281 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:59:00,281 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:59:00,281 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 04:59:00,281 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:59:00,281 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:59:00,281 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 04:59:00,281 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 04:59:00,282 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 04:59:00,283 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:59:00,283 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 04:59:00,283 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 04:59:00,283 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 04:59:00,283 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 04:59:00,283 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 04:59:00,283 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:59:00,283 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 04:59:00,283 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 04:59:00,284 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:59:00,284 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:59:00,284 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#-1540483502] 04:59:00,295 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower457#-1231096869] 04:59:00,295 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader458#965956945] 04:59:00,298 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 04:59:00,298 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,299 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 04:59:00,300 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:59:00,300 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:59:00,301 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 04:59:00,301 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#-253737399] 04:59:00,312 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower460#233352693] 04:59:00,312 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader461#-1604240954] 04:59:00,314 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,317 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#-1378322677] 04:59:00,327 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower463#1434870378] 04:59:00,327 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader464#-1548978313] 04:59:00,331 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 04:59:00,331 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,331 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 04:59:00,332 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:59:00,333 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:59:00,333 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:59:00,333 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:59:00,333 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:59:00,333 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:59:00,333 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:59:00,334 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:59:00,334 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:59:00,334 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 04:59:00,334 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 04:59:00,334 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 04:59:00,334 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 04:59:00,335 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#804947063] 04:59:00,346 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower466#1709820755] 04:59:00,346 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader467#-1653432538] 04:59:00,350 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries 04:59:00,353 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:59:00,354 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] [WARN] [03/17/2026 16:59:00.354] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@1dcdf061 [INFO] [pekkoDeadLetter][03/17/2026 16:59:00.354] [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'. 04:59:00,355 PM [test-pekko.actor.default-dispatcher-7] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:59:00,355 PM [test-pekko.actor.default-dispatcher-9] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 04:59:00,355 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 04:59:00,355 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 04:59:00,355 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 04:59:00,356 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 04:59:00,356 PM [test-pekko.actor.default-dispatcher-9] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 04:59:00,356 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 04:59:00,356 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] PropertiesTermInfoStore - /tmp/junit-846471542031626344/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 04:59:00,358 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=0, votedFor=null 04:59:00,358 PM [test-pekko.actor.default-dispatcher-9] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 04:59:00,358 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-846471542031626344/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:59:00,358 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-846471542031626344/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:59:00,358 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-846471542031626344/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:59:00,358 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 04:59:00,358 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 04:59:00,358 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 04:59:00,358 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 04:59:00,358 PM [test-pekko.actor.default-dispatcher-9] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed in in 2.326 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 04:59:00,358 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed and can restore from snapshot 04:59:00,358 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: writer thread VirtualThread[#631,testCaptureSnapshotOnLastEntryInAppendEntries-writer-154]/runnable started 04:59:00,359 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 04:59:00,359 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 04:59:00,359 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-846471542031626344/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:59:00,359 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-846471542031626344/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:59:00,359 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-846471542031626344/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:59:00,359 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 04:59:00,359 PM [test-pekko.actor.default-dispatcher-9] [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 04:59:00,361 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:59:00,361 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 04:59:00,361 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 04:59:00,361 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:59:00,361 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 04:59:00,361 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 04:59:00,361 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 04:59:00,361 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 04:59:00,361 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 04:59:00,361 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 04:59:00,361 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:59:00,361 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 04:59:00,361 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 04:59:00,361 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 2.308 ms 04:59:00,361 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 04:59:00,361 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 04:59:00,361 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 04:59:00,361 PM [test-pekko.actor.default-dispatcher-9] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 04:59:00,361 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 04:59:00,361 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 04:59:00,361 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 04:59:00,361 PM [test-pekko.actor.default-dispatcher-9] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 04:59:00,361 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 04:59:00,367 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 04:59:00,367 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 04:59:00,367 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 6.147 ms 04:59:00,367 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 04:59:00,367 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 5.040 μs 04:59:00,367 PM [test-pekko.actor.default-dispatcher-9] [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/0x00000007c0935480@7d91bdcd} 04:59:00,367 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 04:59:00,367 PM [test-pekko.actor.default-dispatcher-9] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 04:59:00,367 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 04:59:00,367 PM [test-pekko.actor.default-dispatcher-9] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 04:59:00,367 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 04:59:00,367 PM [test-pekko.actor.default-dispatcher-9] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 04:59:00,367 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 04:59:00,367 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 208.3 μs 04:59:00,367 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 04:59:00,367 PM [test-pekko.actor.default-dispatcher-9] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 04:59:00,367 PM [test-pekko.actor.default-dispatcher-9] [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/0x00000007c0935480@7d91bdcd} 04:59:00,368 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d436379] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-846471542031626344/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069B98854-15ED4B1B.tmp 04:59:00,367 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 6.382 ms 04:59:00,367 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 04:59:00,368 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) [WARN] [03/17/2026 16:59:00.368] [test-pekko.actor.default-dispatcher-9] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][03/17/2026 16:59:00.368] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:59:00,368 PM [test-pekko.actor.default-dispatcher-9] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:59:00,373 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d436379] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-846471542031626344/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069B98854-15ED4B1B.v1 04:59:00,374 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d436379] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-846471542031626344/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069B98854-15ED4B1B.v1 04:59:00,374 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d436379] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-846471542031626344/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:59:00,374 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d436379] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-846471542031626344/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:59:00,374 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d436379] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-846471542031626344/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:59:00,374 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d436379] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2026-03-17T16:59:00.367872795Z, file=/tmp/junit-846471542031626344/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069B98854-15ED4B1B.v1, size=555, entryCompress=NONE, stateCompress=NONE} 04:59:00,374 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d436379] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 04:59:00,374 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 04:59:00,374 PM [test-pekko.actor.default-dispatcher-9] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2026-03-17T16:59:00.367872795Z 04:59:00,374 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 04:59:00,374 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 04:59:00,374 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 6.553 ms 04:59:00,374 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 04:59:00,374 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 04:59:00,374 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 04:59:00,374 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 04:59:00,374 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 178.5 μs 04:59:00,374 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 04:59:00,460 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-846471542031626344/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069B98854-15ED4B1B.v1 04:59:00,460 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-846471542031626344/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:59:00,460 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-846471542031626344/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:59:00,460 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-846471542031626344/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:59:00,460 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2026-03-17T16:59:00.367872795Z, file=/tmp/junit-846471542031626344/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069B98854-15ED4B1B.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 04:59:00,463 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#1802572471] 04:59:00,474 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower469#1084238484] 04:59:00,474 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader470#56988155] 04:59:00,474 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 04:59:00,474 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#631,testCaptureSnapshotOnLastEntryInAppendEntries-writer-154]/waiting 04:59:00,475 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 100.4 ms 04:59:00,475 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 13.49 μs 04:59:00,475 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 04:59:00,475 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminated thread VirtualThread[#631,testCaptureSnapshotOnLastEntryInAppendEntries-writer-154]/terminated 04:59:00,475 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 04:59:00,475 PM [test-pekko.actor.default-dispatcher-9] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 04:59:00,475 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 04:59:00,475 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 04:59:00,479 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,480 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior471#241952273] 04:59:00,491 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower472#681665314] 04:59:00,491 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader473#-2006414663] 04:59:00,495 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 04:59:00,495 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,496 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 04:59:00,496 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 04:59:00,497 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior474#1875277233] 04:59:00,508 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower475#-1697966327] 04:59:00,508 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader476#806626351] 04:59:00,514 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 04:59:00,514 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,515 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:59:00,516 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:59:00,516 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:59:00,516 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:59:00,516 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:59:00,516 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 04:59:00,516 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:59:00,516 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:59:00,517 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:59:00,517 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 04:59:00,517 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 04:59:00,518 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#1844262086] 04:59:00,519 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower478#1187977582] 04:59:00,519 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader479#1676740223] 04:59:00,523 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 04:59:00,523 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,524 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:59:00,524 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:59:00,524 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:59:00,525 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:59:00,525 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:59:00,525 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 04:59:00,526 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:59:00,526 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 04:59:00,527 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:59:00,527 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 04:59:00,527 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#1339132994] 04:59:00,528 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower481#-870137779] 04:59:00,528 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader482#205806318] 04:59:00,532 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,532 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior483#-758797118] 04:59:00,533 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower484#1315117510] 04:59:00,533 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader485#1618781138] 04:59:00,536 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 04:59:00,536 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,537 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:59:00,537 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:59:00,537 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:59:00,538 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:59:00,538 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:59:00,538 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 04:59:00,538 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:59:00,539 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 04:59:00,539 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:59:00,539 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 04:59:00,539 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:59:00,539 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 04:59:00,540 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:59:00,540 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 04:59:00,540 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior486#605469959] 04:59:00,541 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower487#231873804] 04:59:00,541 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader488#1061790024] 04:59:00,543 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 04:59:00,544 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,544 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 04:59:00,544 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:59:00,544 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 04:59:00,544 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 04:59:00,544 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 04:59:00,544 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 04:59:00,545 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:59:00,545 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 04:59:00,545 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 04:59:00,545 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 04:59:00,545 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior489#2042159349] 04:59:00,546 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower490#2135122238] 04:59:00,546 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader491#803289146] 04:59:00,549 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 04:59:00,549 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,550 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 04:59:00,551 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader494 04:59:00,551 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader494 04:59:00,553 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 04:59:00,553 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior492#-1166879171] 04:59:00,554 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower493#-737044977] 04:59:00,554 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader494#-729852625] 04:59:00,557 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 04:59:00,557 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,558 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:59:00,558 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:59:00,558 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:59:00,558 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:59:00,558 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:59:00,558 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:59:00,558 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:59:00,558 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:59:00,558 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:59:00,558 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 04:59:00,559 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 04:59:00,559 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior495#-652096983] 04:59:00,560 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower496#-575500951] 04:59:00,560 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader497#-1226125183] 04:59:00,562 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 04:59:00,562 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,562 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:59:00,563 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:59:00,563 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:59:00,563 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:59:00,563 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:59:00,564 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#1688007743] 04:59:00,564 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower499#855988646] 04:59:00,564 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader500#-775287388] 04:59:00,567 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 04:59:00,574 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 04:59:00,574 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 04:59:00,575 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 04:59:00,575 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 04:59:00,575 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 04:59:00,575 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 04:59:00,576 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 04:59:00,576 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 04:59:00,576 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 04:59:00,576 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/junit-10217829197211068515/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist [WARN] [03/17/2026 16:59:00.576] [test-pekko.actor.default-dispatcher-9] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@120087f6 04:59:00,576 PM [test-pekko.actor.default-dispatcher-9] [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'. [INFO] [pekkoDeadLetter][03/17/2026 16:59:00.576] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:59:00,584 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=0, votedFor=null 04:59:00,584 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=0} 04:59:00,584 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10217829197211068515/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 04:59:00,584 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10217829197211068515/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:59:00,584 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10217829197211068515/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:59:00,584 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 04:59:00,584 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 04:59:00,584 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 04:59:00,584 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 04:59:00,584 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed in in 8.643 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 04:59:00,584 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed and can restore from snapshot 04:59:00,584 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: writer thread VirtualThread[#634,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155]/runnable started 04:59:00,584 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 04:59:00,584 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 04:59:00,585 PM [test-pekko.actor.default-dispatcher-7] [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 04:59:00,587 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 04:59:00,588 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 04:59:00,588 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 04:59:00,588 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:59:00,588 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 04:59:00,588 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 04:59:00,588 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 04:59:00,588 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 04:59:00,588 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 04:59:00,588 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 04:59:00,588 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 04:59:00,588 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 04:59:00,588 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 3.316 ms 04:59:00,588 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:59:00,588 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 04:59:00,588 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 04:59:00,588 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 04:59:00,588 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 04:59:00,588 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 04:59:00,588 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 04:59:00,588 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 04:59:00,595 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 04:59:00,595 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 7.364 ms 04:59:00,595 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 04:59:00,595 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 4.900 μs 04:59:00,595 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 04:59:00,595 PM [test-pekko.actor.default-dispatcher-7] [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/0x00000007c0935480@71af6cec} 04:59:00,595 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 04:59:00,595 PM [test-pekko.actor.default-dispatcher-7] [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/0x00000007c0935480@71af6cec} 04:59:00,595 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 1 synchronized callback(s) 04:59:00,597 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 04:59:00,597 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 04:59:00,597 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 04:59:00,597 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 1.505 ms 04:59:00,597 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 04:59:00,597 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 04:59:00,597 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 04:59:00,597 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 04:59:00,597 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 04:59:00,597 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 04:59:00,597 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 04:59:00,597 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 04:59:00,597 PM [test-pekko.actor.default-dispatcher-7] [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/0x00000007c0935480@71af6cec} 04:59:00,597 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d263827] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-10217829197211068515/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069B98854-239D00CB.tmp 04:59:00,597 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 9.066 ms [WARN] [03/17/2026 16:59:00.597] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] 04:59:00,598 PM [test-pekko.actor.default-dispatcher-7] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][03/17/2026 16:59:00.598] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:59:00,600 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d263827] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-10217829197211068515/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069B98854-239D00CB.v1 04:59:00,600 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d263827] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-10217829197211068515/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069B98854-239D00CB.v1 04:59:00,601 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d263827] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10217829197211068515/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 04:59:00,601 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d263827] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10217829197211068515/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:59:00,601 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d263827] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10217829197211068515/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:59:00,601 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d263827] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2026-03-17T16:59:00.597491915Z, file=/tmp/junit-10217829197211068515/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069B98854-239D00CB.v1, size=539, entryCompress=NONE, stateCompress=NONE} 04:59:00,601 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d263827] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 04:59:00,601 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 04:59:00,601 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2026-03-17T16:59:00.597491915Z 04:59:00,601 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 04:59:00,601 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 04:59:00,601 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 4.244 ms 04:59:00,601 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 04:59:00,601 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 04:59:00,601 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 04:59:00,601 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 177.6 μs 04:59:00,601 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 04:59:00,601 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 04:59:00,737 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-10217829197211068515/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069B98854-239D00CB.v1 04:59:00,737 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10217829197211068515/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 04:59:00,737 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10217829197211068515/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:59:00,737 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10217829197211068515/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:59:00,737 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2026-03-17T16:59:00.597491915Z, file=/tmp/junit-10217829197211068515/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069B98854-239D00CB.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 04:59:00,739 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#386403219] 04:59:00,740 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower502#94422674] 04:59:00,740 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader503#1539858005] 04:59:00,740 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 04:59:00,741 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#634,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155]/waiting 04:59:00,741 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 139.3 ms 04:59:00,741 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 12.52 μs 04:59:00,741 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 04:59:00,741 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminated thread VirtualThread[#634,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155]/terminated 04:59:00,741 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 04:59:00,741 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 04:59:00,741 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 04:59:00,741 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 04:59:00,745 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 04:59:00,745 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,746 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:59:00,747 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 04:59:00,747 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 04:59:00,747 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:59:00,748 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 04:59:00,748 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior504#782986752] 04:59:00,749 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower505#-1616790087] 04:59:00,749 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader506#1890945008] 04:59:00,752 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 04:59:00,752 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,752 PM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 04:59:00,753 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 04:59:00,753 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 04:59:00,753 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 04:59:00,753 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 04:59:00,754 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#-967084459] 04:59:00,754 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower508#-1483297059] 04:59:00,754 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader509#-1019228972] 04:59:00,757 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 04:59:00,757 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,758 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 04:59:00,758 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 04:59:00,759 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:59:00,759 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 04:59:00,759 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 04:59:00,759 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 04:59:00,759 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 04:59:00,759 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 04:59:00,759 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 04:59:00,759 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 04:59:00,759 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:59:00,759 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 04:59:00,759 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 04:59:00,759 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:59:00,759 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:59:00,759 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 04:59:00,759 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 04:59:00,759 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:59:00,759 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:59:00,760 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 04:59:00,760 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 04:59:00,760 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior510#365686621] 04:59:00,761 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower511#-196585369] 04:59:00,761 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader512#931684577] 04:59:00,764 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 04:59:00,764 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,764 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 04:59:00,764 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 04:59:00,765 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#1898202645] 04:59:00,766 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower514#1066353288] 04:59:00,766 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader515#1137898707] 04:59:00,769 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 04:59:00,769 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,769 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:59:00,769 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:59:00,769 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:59:00,770 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:59:00,770 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 04:59:00,771 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 04:59:00,771 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 04:59:00,771 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:59:00,771 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 04:59:00,771 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 04:59:00,771 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 04:59:00,771 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 04:59:00,771 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:59:00,771 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 04:59:00,771 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 04:59:00,771 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:59:00,771 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:59:00,772 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior516#-1298141230] 04:59:00,772 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower517#1378485146] 04:59:00,772 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518#1080805461] 04:59:00,775 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 04:59:00,775 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,776 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:59:00,776 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:59:00,776 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:59:00,776 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:59:00,776 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:59:00,777 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 04:59:00,777 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:59:00,777 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 04:59:00,777 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:59:00,778 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 04:59:00,778 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 04:59:00,778 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:59:00,778 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 04:59:00,778 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:59:00,778 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 04:59:00,779 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior519#1063941216] 04:59:00,782 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower520#-1053373015] 04:59:00,782 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader521#-1389465207] 04:59:00,785 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 04:59:00,786 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:00,986 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.171.52:17355, Removed) 04:59:00,986 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 04:59:00,986 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 04:59:00,986 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 04:59:00,986 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 04:59:00,986 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior522#167625073] 04:59:00,997 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower523#1682635874] 04:59:00,998 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader524#312534468] 04:59:01,2 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:01,2 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 04:59:01,204 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior525#-1611946927] 04:59:01,215 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower526#1968101454] 04:59:01,215 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader527#456222623] 04:59:01,220 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 04:59:01,222 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:01,224 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 04:59:01,225 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 04:59:01,226 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior528#-1679304898] 04:59:01,237 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower529#144965867] 04:59:01,237 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader530#-548367719] 04:59:01,241 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 04:59:01,241 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:01,242 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 04:59:01,243 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:59:01,243 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 04:59:01,243 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 04:59:01,243 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 04:59:01,243 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 04:59:01,243 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 04:59:01,243 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:59:01,243 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 04:59:01,243 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 04:59:01,243 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:59:01,243 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:59:01,244 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 04:59:01,244 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 04:59:01,244 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:59:01,244 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:59:01,244 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 04:59:01,244 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 04:59:01,244 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 04:59:01,244 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 04:59:01,245 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior531#1813037880] 04:59:01,257 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower532#1740691874] 04:59:01,257 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader533#712560446] 04:59:01,261 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 04:59:01,261 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:01,262 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:59:01,262 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:59:01,262 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:59:01,263 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:59:01,264 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 04:59:01,265 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:59:01,266 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior534#1407189775] 04:59:01,277 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower535#1382836735] 04:59:01,277 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader536#1341671561] 04:59:01,281 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 04:59:01,282 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:01,283 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 04:59:01,283 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 04:59:01,284 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:59:01,284 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 04:59:01,284 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 04:59:01,285 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior537#791364942] 04:59:01,296 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower538#1175772938] 04:59:01,296 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader539#-1146414797] 04:59:01,301 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries 04:59:01,304 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:59:01,305 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [03/17/2026 16:59:01.305] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@968f2f 04:59:01,305 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][03/17/2026 16:59:01.305] [test-pekko.actor.default-dispatcher-9] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:59:01,305 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 04:59:01,305 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:59:01,305 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:59:01,306 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 04:59:01,306 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 04:59:01,306 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 04:59:01,306 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 04:59:01,306 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/junit-8961410034191504862/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 04:59:01,308 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=0, votedFor=null 04:59:01,308 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 04:59:01,308 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8961410034191504862/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:59:01,308 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8961410034191504862/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:59:01,308 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8961410034191504862/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:59:01,309 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 04:59:01,309 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 04:59:01,309 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 04:59:01,309 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 04:59:01,309 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 2.309 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 04:59:01,309 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and can restore from snapshot 04:59:01,309 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: writer thread VirtualThread[#637,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156]/runnable started 04:59:01,309 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 04:59:01,309 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:59:01,309 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8961410034191504862/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:59:01,309 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8961410034191504862/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:59:01,309 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8961410034191504862/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:59:01,310 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 04:59:01,310 PM [test-pekko.actor.default-dispatcher-7] [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 04:59:01,311 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:59:01,311 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 04:59:01,311 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 04:59:01,311 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:59:01,311 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 04:59:01,311 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 04:59:01,312 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 2.317 ms 04:59:01,312 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 04:59:01,312 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 04:59:01,312 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 04:59:01,312 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 04:59:01,312 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 04:59:01,312 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 04:59:01,312 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:59:01,312 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 04:59:01,312 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 04:59:01,312 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 04:59:01,312 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 04:59:01,312 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 04:59:01,312 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 04:59:01,312 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 04:59:01,312 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 04:59:01,312 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 04:59:01,312 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 04:59:01,312 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 04:59:01,312 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 04:59:01,312 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 04:59:01,312 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 04:59:01,312 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 04:59:01,314 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 04:59:01,314 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 2.795 ms 04:59:01,314 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 3.060 μs 04:59:01,315 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 04:59:01,315 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 04:59:01,315 PM [test-pekko.actor.default-dispatcher-7] [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/0x00000007c0935480@4d61771f} 04:59:01,315 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 04:59:01,316 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 04:59:01,316 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 04:59:01,316 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 1.250 ms 04:59:01,316 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:59:01,316 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 04:59:01,316 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 04:59:01,316 PM [test-pekko.actor.default-dispatcher-7] [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/0x00000007c0935480@4d61771f} 04:59:01,316 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 04:59:01,316 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 04:59:01,316 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 04:59:01,316 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 04:59:01,316 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 04:59:01,316 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d545086] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-8961410034191504862/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069B98855-12DB6C40.tmp 04:59:01,316 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 04:59:01,316 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 04:59:01,316 PM [test-pekko.actor.default-dispatcher-7] [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/0x00000007c0935480@4d61771f} 04:59:01,316 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 4.220 ms [WARN] [03/17/2026 16:59:01.316] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][03/17/2026 16:59:01.317] [test-pekko.actor.default-dispatcher-9] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:59:01,317 PM [test-pekko.actor.default-dispatcher-7] [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'. 04:59:01,317 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d545086] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-8961410034191504862/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069B98855-12DB6C40.v1 04:59:01,318 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d545086] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8961410034191504862/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:59:01,318 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d545086] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8961410034191504862/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:59:01,318 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d545086] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8961410034191504862/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069B98855-12DB6C40.v1 04:59:01,318 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d545086] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8961410034191504862/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:59:01,318 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d545086] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-03-17T16:59:01.316369984Z, file=/tmp/junit-8961410034191504862/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069B98855-12DB6C40.v1, size=573, entryCompress=NONE, stateCompress=NONE} 04:59:01,318 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d545086] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 04:59:01,318 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 04:59:01,318 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2026-03-17T16:59:01.316369984Z 04:59:01,318 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 04:59:01,318 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 2.184 ms 04:59:01,318 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 04:59:01,318 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 04:59:01,318 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 04:59:01,318 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 105.1 μs 04:59:01,318 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:59:01,318 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 04:59:01,318 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 04:59:01,461 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8961410034191504862/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:59:01,461 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8961410034191504862/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:59:01,461 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8961410034191504862/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069B98855-12DB6C40.v1 04:59:01,461 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8961410034191504862/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:59:01,461 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-03-17T16:59:01.316369984Z, file=/tmp/junit-8961410034191504862/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069B98855-12DB6C40.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 04:59:01,463 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 04:59:01,464 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#637,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156]/waiting 04:59:01,464 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 146.1 ms 04:59:01,464 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 14.94 μs 04:59:01,464 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 04:59:01,464 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminated thread VirtualThread[#637,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156]/terminated 04:59:01,464 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:59:01,464 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:59:01,464 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:59:01,464 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:59:01,465 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [03/17/2026 16:59:01.465] [test-pekko.actor.default-dispatcher-9] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@7e48d114 [INFO] [pekkoDeadLetter][03/17/2026 16:59:01.466] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:59:01,466 PM [test-pekko.actor.default-dispatcher-9] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:59:01,466 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 04:59:01,466 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:59:01,466 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:59:01,467 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 04:59:01,468 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 04:59:01,468 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 04:59:01,468 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 04:59:01,468 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:59:01,468 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8961410034191504862/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:59:01,468 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8961410034191504862/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:59:01,468 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8961410034191504862/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069B98855-12DB6C40.v1 04:59:01,468 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8961410034191504862/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:59:01,468 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-03-17T16:59:01.316369984Z, file=/tmp/junit-8961410034191504862/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069B98855-12DB6C40.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 04:59:01,468 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2026-03-17T16:59:01.316369984Z 04:59:01,468 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 04:59:01,469 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 04:59:01,469 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 04:59:01,469 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 04:59:01,469 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 1.615 ms: last log index = 2, last log term = 1, napshot index = 2, snapshot term = 1, journal size = 0 04:59:01,470 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and cannot restore from snapshot 04:59:01,470 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 04:59:01,470 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:59:01,470 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: writer thread VirtualThread[#640,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/waiting started 04:59:01,470 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior540#2037746444] 04:59:01,472 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower541#1751086800] 04:59:01,472 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader542#-614160163] 04:59:01,472 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 04:59:01,472 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#640,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/waiting 04:59:01,472 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 2.718 ms 04:59:01,472 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 12.71 μs 04:59:01,472 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 04:59:01,473 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminated thread VirtualThread[#640,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/terminated 04:59:01,473 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:59:01,473 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:59:01,473 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:59:01,473 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:59:01,477 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 04:59:01,477 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:01,778 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 04:59:01,908 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 04:59:02,159 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 04:59:02,359 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 04:59:02,359 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior543#952591678] 04:59:02,370 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower544#663509277] 04:59:02,371 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader545#-869469954] 04:59:02,375 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:59:02,375 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 04:59:02,375 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 04:59:02,375 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 04:59:02,376 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 04:59:02,376 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior546#1791245400] 04:59:02,387 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower547#876748900] 04:59:02,387 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader548#129107930] [INFO] [03/17/2026 16:59:02.388] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 04:59:02,389 PM [test-pekko.actor.default-dispatcher-7] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [03/17/2026 16:59:02.390] [test-pekko.actor.default-dispatcher-7] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.52:17355) [INFO] [pekkoDeadLetter][03/17/2026 16:59:02.390] [test-pekko.actor.default-dispatcher-7] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1794540702] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:59:02,390 PM [test-pekko.actor.default-dispatcher-6] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1794540702] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [03/17/2026 16:59:02.391] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.52:17355] - Exiting completed [INFO] [03/17/2026 16:59:02.391] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.52:17355] - Shutting down... 04:59:02,391 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.52:17355] - Exiting completed 04:59:02,391 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.52:17355] - Shutting down... 04:59:02,391 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.52:17355] - Successfully shut down [INFO] [03/17/2026 16:59:02.391] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.52:17355] - Successfully shut down [INFO] [03/17/2026 16:59:02.394] [test-pekko.remote.default-remote-dispatcher-12] [pekko://test@10.30.171.52:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [03/17/2026 16:59:02.394] [test-pekko.remote.default-remote-dispatcher-12] [pekko://test@10.30.171.52:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 04:59:02,394 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 04:59:02,394 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. 04:59:02,396 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [03/17/2026 16:59:02.396] [test-pekko.remote.default-remote-dispatcher-12] [pekko://test@10.30.171.52:17355/system/remoting-terminator] Remoting shut down. [DEBUG] [03/17/2026 16:59:02.397] [test-pekko.actor.internal-dispatcher-5] [EventStream] shutting down: StandardOutLogger