[DEBUG] [12/08/2025 15:01:12.914] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 03:01:12,915 PM [test-pekko.actor.default-dispatcher-4] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [12/08/2025 15:01:12.915] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [12/08/2025 15:01:12.915] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [12/08/2025 15:01:12.925] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.223:17355] with UID [-2826699315608465816] 03:01:12,925 PM [test-pekko.actor.default-dispatcher-4] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.223:17355] with UID [-2826699315608465816] [INFO] [12/08/2025 15:01:12.925] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.223:17355] - Starting up, Pekko version [1.2.1] ... 03:01:12,925 PM [test-pekko.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.223:17355] - Starting up, Pekko version [1.2.1] ... [INFO] [12/08/2025 15:01:12.927] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.223:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 03:01:12,927 PM [test-pekko.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.223:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [12/08/2025 15:01:12.927] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.223:17355] - Started up successfully 03:01:12,927 PM [test-pekko.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.223:17355] - Started up successfully 03:01:12,929 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.223:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 03:01:12,929 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.223:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [12/08/2025 15:01:12.929] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.223:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [12/08/2025 15:01:12.929] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.223:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 03:01:12,944 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,44 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 03:01:13,44 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 03:01:13,45 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior420#659154430] 03:01:13,56 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower421#820126957] 03:01:13,57 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader422#-147071786] 03:01:13,59 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,60 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]]} 03:01:13,61 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 03:01:13,61 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 03:01:13,61 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 03:01:13,61 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 03:01:13,61 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 03:01:13,61 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} 03:01:13,61 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 03:01:13,61 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 03:01:13,62 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 03:01:13,62 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 03:01:13,62 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 03:01:13,63 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior423#-1842000830] 03:01:13,73 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower424#1452617207] 03:01:13,73 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader425#-1340471409] 03:01:13,76 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,77 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 03:01:13,77 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 03:01:13,77 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior426#2143070273] 03:01:13,88 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower427#-1909370646] 03:01:13,88 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader428#-641421823] 03:01:13,90 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,92 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 03:01:13,93 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 03:01:13,93 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} 03:01:13,94 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 03:01:13,94 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 03:01:13,95 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 03:01:13,95 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 03:01:13,95 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. 03:01:13,95 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 03:01:13,96 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 03:01:13,96 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 03:01:13,97 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 03:01:13,98 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior429#2091823672] 03:01:13,108 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower430#2016498383] 03:01:13,109 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader431#-122401789] 03:01:13,113 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,113 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 03:01:13,114 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 03:01:13,114 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,114 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 03:01:13,115 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 03:01:13,115 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 03:01:13,115 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 03:01:13,115 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 03:01:13,115 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior432#1137812740] 03:01:13,126 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower433#-225171349] 03:01:13,126 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader434#-852722965] 03:01:13,130 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,131 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 03:01:13,133 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior435#-1982293717] 03:01:13,144 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower436#379920218] 03:01:13,144 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader437#-2138536748] 03:01:13,147 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,148 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 03:01:13,148 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 03:01:13,148 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior438#-1197584205] 03:01:13,159 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower439#1897515206] 03:01:13,159 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader440#1932815648] 03:01:13,162 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 03:01:13,162 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,164 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 03:01:13,164 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 03:01:13,164 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 03:01:13,165 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 03:01:13,165 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 03:01:13,165 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 03:01:13,165 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 03:01:13,165 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 03:01:13,168 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 03:01:13,169 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior441#-133990417] 03:01:13,179 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower442#-1875482839] 03:01:13,179 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader443#-1064224001] 03:01:13,182 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 03:01:13,182 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,183 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]]} 03:01:13,183 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 03:01:13,184 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} 03:01:13,184 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 03:01:13,184 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior444#-1129837524] 03:01:13,195 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower445#1494481628] 03:01:13,195 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader446#-728128274] 03:01:13,198 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 03:01:13,198 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,199 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 03:01:13,199 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 03:01:13,199 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 03:01:13,200 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 03:01:13,200 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 03:01:13,201 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 03:01:13,201 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 03:01:13,201 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 03:01:13,202 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 03:01:13,202 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]]} 03:01:13,203 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 03:01:13,203 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} 03:01:13,203 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 03:01:13,203 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior447#-507959944] 03:01:13,214 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower448#-1608537398] 03:01:13,214 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader449#-794347142] 03:01:13,218 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,219 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 03:01:13,220 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior450#1713267247] 03:01:13,231 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower451#971652636] 03:01:13,231 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader452#703270008] 03:01:13,234 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 03:01:13,235 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,235 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 03:01:13,236 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]]} 03:01:13,236 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 03:01:13,236 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 03:01:13,236 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 03:01:13,236 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 03:01:13,236 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 03:01:13,237 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} 03:01:13,237 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 03:01:13,237 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 03:01:13,237 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 03:01:13,238 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior453#1897549491] 03:01:13,249 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower454#-563448669] 03:01:13,249 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader455#-1128229010] 03:01:13,252 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 03:01:13,253 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,254 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]]} 03:01:13,254 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 03:01:13,254 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 03:01:13,254 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 03:01:13,254 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 03:01:13,254 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 03:01:13,255 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} 03:01:13,255 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 03:01:13,255 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 03:01:13,255 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 03:01:13,255 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 03:01:13,255 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 03:01:13,255 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 03:01:13,257 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]]} 03:01:13,257 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 03:01:13,257 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 03:01:13,257 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 03:01:13,257 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 03:01:13,257 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 03:01:13,257 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 03:01:13,257 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} 03:01:13,258 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 03:01:13,258 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 03:01:13,258 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 03:01:13,258 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 03:01:13,258 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#-1675527946] 03:01:13,269 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower457#156690366] 03:01:13,269 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader458#1334065420] 03:01:13,273 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 03:01:13,273 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,274 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 03:01:13,275 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 03:01:13,275 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} 03:01:13,275 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 03:01:13,276 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#1731351966] 03:01:13,286 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower460#-798096851] 03:01:13,287 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader461#1481178447] 03:01:13,291 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,294 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#724991313] 03:01:13,305 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower463#906341364] 03:01:13,305 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader464#-329550774] 03:01:13,308 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 03:01:13,308 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,308 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 03:01:13,309 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 03:01:13,309 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]]} 03:01:13,310 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 03:01:13,310 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 03:01:13,310 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 03:01:13,310 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 03:01:13,310 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 03:01:13,310 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} 03:01:13,310 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 03:01:13,310 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 03:01:13,310 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 03:01:13,310 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 03:01:13,310 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 03:01:13,311 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#-1163826845] 03:01:13,321 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower466#1136284729] 03:01:13,322 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader467#-957540205] 03:01:13,325 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries 03:01:13,329 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 03:01:13,329 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] [WARN] [12/08/2025 15:01:13.338] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@1c2124f8 03:01:13,339 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 03:01:13,339 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 03:01:13,339 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor [INFO] [pekkoDeadLetter][12/08/2025 15:01:13.338] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 03:01:13,340 PM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 03:01:13,340 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 03:01:13,341 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 03:01:13,341 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 03:01:13,341 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 03:01:13,341 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 03:01:13,341 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/junit-17015106342421029543/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 03:01:13,341 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 03:01:13,344 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=0, votedFor=null 03:01:13,344 PM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 03:01:13,344 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17015106342421029543/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 03:01:13,344 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17015106342421029543/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 03:01:13,344 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17015106342421029543/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 03:01:13,344 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 03:01:13,344 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 03:01:13,344 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 03:01:13,344 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 03:01:13,345 PM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed in in 3.144 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 03:01:13,345 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed and can restore from snapshot 03:01:13,346 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17015106342421029543/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 03:01:13,346 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17015106342421029543/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 03:01:13,346 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17015106342421029543/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 03:01:13,346 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 03:01:13,346 PM [test-pekko.actor.default-dispatcher-11] [INFO] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]}" message is greater than follower's term 0 - updating term 03:01:13,348 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 03:01:13,348 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 03:01:13,348 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 03:01:13,348 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 03:01:13,348 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 03:01:13,348 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 03:01:13,349 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 03:01:13,349 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 03:01:13,349 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 03:01:13,349 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 03:01:13,349 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 03:01:13,349 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 03:01:13,349 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 03:01:13,349 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 7.283 ms 03:01:13,349 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 03:01:13,349 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 03:01:13,349 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 03:01:13,349 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 03:01:13,349 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 03:01:13,349 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 03:01:13,349 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 03:01:13,349 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 03:01:13,349 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 03:01:13,354 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 03:01:13,354 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 03:01:13,354 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 5.263 ms 03:01:13,354 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 03:01:13,354 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c09156f8@31f34ee4} 03:01:13,354 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 03:01:13,354 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 8.270 μs 03:01:13,354 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 03:01:13,354 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 03:01:13,354 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 03:01:13,354 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 03:01:13,354 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 03:01:13,354 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d1476] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-17015106342421029543/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006936E839-15241D0C.tmp 03:01:13,354 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 03:01:13,354 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 315.9 μs 03:01:13,354 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 03:01:13,355 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 03:01:13,355 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 03:01:13,355 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c09156f8@31f34ee4} 03:01:13,356 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 6.629 ms 03:01:13,356 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) [WARN] [12/08/2025 15:01:13.356] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][12/08/2025 15:01:13.356] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 03:01:13,357 PM [test-pekko.actor.default-dispatcher-5] [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'. 03:01:13,359 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d1476] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-17015106342421029543/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006936E839-15241D0C.v1 03:01:13,359 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d1476] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-17015106342421029543/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006936E839-15241D0C.v1 03:01:13,360 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d1476] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17015106342421029543/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 03:01:13,360 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d1476] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17015106342421029543/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 03:01:13,360 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d1476] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17015106342421029543/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 03:01:13,360 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d1476] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-12-08T15:01:13.354688268Z, file=/tmp/junit-17015106342421029543/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006936E839-15241D0C.v1, size=555, entryCompress=NONE, stateCompress=NONE} 03:01:13,360 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d1476] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 03:01:13,360 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 03:01:13,360 PM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-12-08T15:01:13.354688268Z 03:01:13,360 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 03:01:13,360 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 03:01:13,360 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 5.492 ms 03:01:13,360 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 03:01:13,360 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 03:01:13,360 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 03:01:13,360 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 174.1 μs 03:01:13,360 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 03:01:13,360 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 03:01:13,447 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-17015106342421029543/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006936E839-15241D0C.v1 03:01:13,448 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17015106342421029543/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 03:01:13,448 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17015106342421029543/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 03:01:13,448 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17015106342421029543/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 03:01:13,448 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-12-08T15:01:13.354688268Z, file=/tmp/junit-17015106342421029543/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006936E839-15241D0C.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 03:01:13,453 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#974629540] 03:01:13,466 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower469#-155165617] 03:01:13,466 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader470#-1867360322] 03:01:13,466 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 03:01:13,466 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#624,testCaptureSnapshotOnLastEntryInAppendEntries-writer-154]/waiting 03:01:13,466 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 106.1 ms 03:01:13,467 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 87.67 μs 03:01:13,467 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 03:01:13,467 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 03:01:13,467 PM [test-pekko.actor.default-dispatcher-4] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 03:01:13,467 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 03:01:13,467 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 03:01:13,473 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,476 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior471#1092958611] 03:01:13,486 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower472#-1209159894] 03:01:13,487 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader473#-1901564398] 03:01:13,492 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 03:01:13,492 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,494 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 03:01:13,494 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 03:01:13,494 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior474#-481726821] 03:01:13,505 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower475#-359837075] 03:01:13,505 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader476#-858156644] 03:01:13,508 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 03:01:13,508 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,508 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 03:01:13,509 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]]} 03:01:13,509 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 03:01:13,509 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 03:01:13,509 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 03:01:13,509 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 03:01:13,509 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 03:01:13,509 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} 03:01:13,509 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 03:01:13,509 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 03:01:13,509 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 03:01:13,510 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#892356106] 03:01:13,510 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower478#1147336192] 03:01:13,510 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader479#-242786597] 03:01:13,513 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 03:01:13,513 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,513 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 03:01:13,513 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]]} 03:01:13,513 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 03:01:13,514 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} 03:01:13,514 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 03:01:13,514 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 03:01:13,514 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]]} 03:01:13,514 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 03:01:13,514 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} 03:01:13,515 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 03:01:13,515 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#844098617] 03:01:13,515 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower481#197393263] 03:01:13,515 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader482#440849744] 03:01:13,517 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,517 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior483#-1609575747] 03:01:13,518 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower484#103315973] 03:01:13,518 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader485#-215969565] 03:01:13,520 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 03:01:13,520 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,520 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 03:01:13,520 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]]} 03:01:13,521 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 03:01:13,521 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} 03:01:13,521 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 03:01:13,521 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 03:01:13,521 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]]} 03:01:13,521 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 03:01:13,522 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} 03:01:13,522 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 03:01:13,522 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]]} 03:01:13,522 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 03:01:13,522 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} 03:01:13,522 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 03:01:13,523 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior486#1293573642] 03:01:13,523 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower487#1359838040] 03:01:13,523 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader488#-939537730] 03:01:13,525 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 03:01:13,525 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,526 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]]} 03:01:13,526 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 03:01:13,526 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 03:01:13,526 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 03:01:13,526 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 03:01:13,526 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 03:01:13,526 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} 03:01:13,526 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 03:01:13,526 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 03:01:13,526 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 03:01:13,527 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior489#-619134081] 03:01:13,527 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower490#-74849408] 03:01:13,527 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader491#-930805895] 03:01:13,529 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 03:01:13,529 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,530 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 03:01:13,531 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader494 03:01:13,531 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader494 03:01:13,532 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 03:01:13,533 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior492#1228226126] 03:01:13,533 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower493#1903477827] 03:01:13,533 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader494#1421672687] 03:01:13,535 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 03:01:13,536 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,536 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 03:01:13,536 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]]} 03:01:13,536 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 03:01:13,536 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 03:01:13,536 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 03:01:13,536 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 03:01:13,536 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 03:01:13,537 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} 03:01:13,537 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 03:01:13,537 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 03:01:13,537 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 03:01:13,537 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior495#-1039938752] 03:01:13,537 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower496#1082593440] 03:01:13,538 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader497#-2023858539] 03:01:13,539 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 03:01:13,539 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,540 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 03:01:13,540 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]]} 03:01:13,540 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 03:01:13,540 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} 03:01:13,540 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 03:01:13,541 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#751178806] 03:01:13,541 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower499#-1257520144] 03:01:13,541 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader500#1409528315] 03:01:13,543 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 03:01:13,545 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 03:01:13,545 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] [WARN] [12/08/2025 15:01:13.546] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@1702ec92 [INFO] [pekkoDeadLetter][12/08/2025 15:01:13.546] [test-pekko.actor.default-dispatcher-11] [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'. 03:01:13,546 PM [test-pekko.actor.default-dispatcher-4] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 03:01:13,546 PM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 03:01:13,547 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 03:01:13,547 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 03:01:13,547 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 03:01:13,548 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 03:01:13,548 PM [test-pekko.actor.default-dispatcher-4] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 03:01:13,548 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 03:01:13,548 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 03:01:13,548 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 03:01:13,548 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - /tmp/junit-4313914134434517747/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 03:01:13,551 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=0, votedFor=null 03:01:13,551 PM [test-pekko.actor.default-dispatcher-4] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=0} 03:01:13,551 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-4313914134434517747/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 03:01:13,551 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-4313914134434517747/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 03:01:13,551 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-4313914134434517747/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 03:01:13,551 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 03:01:13,551 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 03:01:13,551 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 03:01:13,551 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 03:01:13,551 PM [test-pekko.actor.default-dispatcher-4] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed in in 3.668 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 03:01:13,551 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed and can restore from snapshot 03:01:13,552 PM [test-pekko.actor.default-dispatcher-4] [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 03:01:13,554 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 03:01:13,554 PM [test-pekko.actor.default-dispatcher-4] [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]]} 03:01:13,554 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 03:01:13,554 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 03:01:13,554 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 03:01:13,554 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 03:01:13,554 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 03:01:13,554 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 03:01:13,554 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 03:01:13,554 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 03:01:13,554 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 03:01:13,554 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 03:01:13,554 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 6.119 ms 03:01:13,554 PM [test-pekko.actor.default-dispatcher-4] [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} 03:01:13,554 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 03:01:13,554 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 03:01:13,554 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 03:01:13,554 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 03:01:13,554 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 03:01:13,554 PM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 03:01:13,554 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 03:01:13,558 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 03:01:13,558 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 03:01:13,558 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 03:01:13,558 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 3.784 ms 03:01:13,558 PM [test-pekko.actor.default-dispatcher-4] [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/0x00000007c09156f8@5e33a8f2} 03:01:13,558 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 03:01:13,558 PM [test-pekko.actor.default-dispatcher-4] [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/0x00000007c09156f8@5e33a8f2} 03:01:13,558 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 4.570 μs 03:01:13,558 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 1 synchronized callback(s) 03:01:13,559 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 03:01:13,559 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 03:01:13,559 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 03:01:13,559 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 03:01:13,559 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 1.037 ms 03:01:13,559 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 03:01:13,559 PM [test-pekko.actor.default-dispatcher-4] [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] 03:01:13,559 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 03:01:13,559 PM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 03:01:13,559 PM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 03:01:13,559 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 03:01:13,559 PM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 03:01:13,559 PM [test-pekko.actor.default-dispatcher-4] [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/0x00000007c09156f8@5e33a8f2} 03:01:13,559 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 4.975 ms 03:01:13,559 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d896599] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-4313914134434517747/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006936E839-2158F2ED.tmp [WARN] [12/08/2025 15:01:13.559] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][12/08/2025 15:01:13.559] [test-pekko.actor.default-dispatcher-5] [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'. 03:01:13,559 PM [test-pekko.actor.default-dispatcher-5] [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'. 03:01:13,561 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d896599] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-4313914134434517747/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006936E839-2158F2ED.v1 03:01:13,561 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d896599] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-4313914134434517747/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006936E839-2158F2ED.v1 03:01:13,561 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d896599] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-4313914134434517747/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 03:01:13,561 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d896599] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-4313914134434517747/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 03:01:13,561 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d896599] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-4313914134434517747/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 03:01:13,561 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d896599] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-12-08T15:01:13.559477485Z, file=/tmp/junit-4313914134434517747/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006936E839-2158F2ED.v1, size=539, entryCompress=NONE, stateCompress=NONE} 03:01:13,562 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d896599] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 03:01:13,562 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 03:01:13,562 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-12-08T15:01:13.559477485Z 03:01:13,562 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 03:01:13,562 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 03:01:13,562 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 2.991 ms 03:01:13,562 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 03:01:13,562 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 03:01:13,562 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 03:01:13,562 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 153.5 μs 03:01:13,562 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 03:01:13,562 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 03:01:13,703 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-4313914134434517747/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006936E839-2158F2ED.v1 03:01:13,704 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-4313914134434517747/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 03:01:13,704 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-4313914134434517747/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 03:01:13,704 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-4313914134434517747/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 03:01:13,704 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-12-08T15:01:13.559477485Z, file=/tmp/junit-4313914134434517747/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006936E839-2158F2ED.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 03:01:13,706 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#832050944] 03:01:13,706 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower502#1292355772] 03:01:13,707 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader503#865137466] 03:01:13,707 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 03:01:13,707 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#628,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155]/waiting 03:01:13,707 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 145.0 ms 03:01:13,707 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 16.33 μs 03:01:13,707 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 03:01:13,707 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 03:01:13,707 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 03:01:13,707 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 03:01:13,707 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 03:01:13,712 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 03:01:13,712 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,713 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 03:01:13,713 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]]} 03:01:13,713 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 03:01:13,714 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} 03:01:13,714 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 03:01:13,714 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior504#903598432] 03:01:13,715 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower505#-851096131] 03:01:13,715 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader506#1176402428] 03:01:13,717 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 03:01:13,717 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,718 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 03:01:13,718 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 03:01:13,719 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 03:01:13,719 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 03:01:13,719 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 03:01:13,719 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#1980789368] 03:01:13,720 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower508#-2027789811] 03:01:13,720 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader509#182598619] 03:01:13,722 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 03:01:13,722 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,722 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 03:01:13,723 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]]} 03:01:13,723 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 03:01:13,723 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 03:01:13,723 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 03:01:13,723 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 03:01:13,723 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 03:01:13,723 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 03:01:13,723 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 03:01:13,723 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 03:01:13,723 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} 03:01:13,723 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 03:01:13,723 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 03:01:13,723 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 03:01:13,723 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 03:01:13,723 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 03:01:13,723 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 03:01:13,723 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 03:01:13,724 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 03:01:13,724 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 03:01:13,724 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 03:01:13,724 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior510#-1673010645] 03:01:13,724 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower511#387394954] 03:01:13,724 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader512#-138379735] 03:01:13,726 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 03:01:13,726 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,727 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 03:01:13,727 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 03:01:13,727 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#1900725779] 03:01:13,728 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower514#648752305] 03:01:13,728 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader515#682415015] 03:01:13,730 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 03:01:13,730 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,730 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 03:01:13,730 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 03:01:13,730 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 03:01:13,730 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 03:01:13,731 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 03:01:13,731 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]]} 03:01:13,731 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 03:01:13,731 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 03:01:13,731 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 03:01:13,731 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 03:01:13,731 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 03:01:13,731 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 03:01:13,731 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} 03:01:13,731 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 03:01:13,731 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 03:01:13,731 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 03:01:13,731 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 03:01:13,732 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior516#1746366303] 03:01:13,732 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower517#-1710035571] 03:01:13,732 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518#454188790] 03:01:13,734 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 03:01:13,734 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,735 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 03:01:13,735 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]]} 03:01:13,735 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 03:01:13,735 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} 03:01:13,735 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 03:01:13,735 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 03:01:13,736 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]]} 03:01:13,736 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 03:01:13,736 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} 03:01:13,736 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 03:01:13,736 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 03:01:13,737 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]]} 03:01:13,737 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 03:01:13,737 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} 03:01:13,737 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 03:01:13,737 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior519#-2004493590] 03:01:13,738 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower520#-1766853080] 03:01:13,738 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader521#426692412] 03:01:13,739 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 03:01:13,740 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,940 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.223:17355, Removed) 03:01:13,940 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 03:01:13,940 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 03:01:13,940 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 03:01:13,940 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 03:01:13,940 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior522#1031327222] 03:01:13,942 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower523#422821531] 03:01:13,942 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader524#1515381896] 03:01:13,946 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:13,946 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 03:01:14,147 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior525#1814446287] 03:01:14,158 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower526#-1114319075] 03:01:14,158 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader527#-465736152] 03:01:14,162 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 03:01:14,162 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:14,164 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 03:01:14,165 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 03:01:14,166 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior528#-1760182167] 03:01:14,176 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower529#173955602] 03:01:14,176 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader530#-1040762594] 03:01:14,180 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 03:01:14,180 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:14,181 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]]} 03:01:14,182 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 03:01:14,182 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 03:01:14,182 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 03:01:14,182 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 03:01:14,182 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 03:01:14,182 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 03:01:14,182 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} 03:01:14,182 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 03:01:14,182 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 03:01:14,183 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 03:01:14,183 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 03:01:14,183 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 03:01:14,183 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 03:01:14,183 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 03:01:14,183 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 03:01:14,183 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 03:01:14,183 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 03:01:14,183 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 03:01:14,183 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 03:01:14,184 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior531#-1275347122] 03:01:14,195 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower532#-1854464626] 03:01:14,195 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader533#-812438738] 03:01:14,198 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 03:01:14,199 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:14,199 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 03:01:14,200 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 03:01:14,200 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 03:01:14,200 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 03:01:14,201 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]]} 03:01:14,202 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} 03:01:14,202 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior534#-28898196] 03:01:14,213 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower535#1334875687] 03:01:14,213 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader536#-1173257273] 03:01:14,216 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 03:01:14,216 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:14,217 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 03:01:14,218 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]]} 03:01:14,218 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 03:01:14,218 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 03:01:14,219 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 03:01:14,219 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior537#1179804418] 03:01:14,230 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower538#-607845441] 03:01:14,230 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader539#-1724159556] 03:01:14,233 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries 03:01:14,237 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 03:01:14,238 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [12/08/2025 15:01:14.238] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@3827f7d4 [INFO] [pekkoDeadLetter][12/08/2025 15:01:14.238] [test-pekko.actor.default-dispatcher-5] [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'. 03:01:14,238 PM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 03:01:14,239 PM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 03:01:14,239 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 03:01:14,239 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 03:01:14,239 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 03:01:14,240 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 03:01:14,240 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 03:01:14,240 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 03:01:14,240 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 03:01:14,240 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 03:01:14,240 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/junit-11051555066128493576/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 03:01:14,244 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=0, votedFor=null 03:01:14,244 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 03:01:14,244 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11051555066128493576/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 03:01:14,244 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11051555066128493576/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 03:01:14,244 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11051555066128493576/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 03:01:14,244 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 03:01:14,244 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 03:01:14,244 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 03:01:14,244 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 03:01:14,244 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 4.247 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 03:01:14,244 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and can restore from snapshot 03:01:14,245 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11051555066128493576/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 03:01:14,245 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11051555066128493576/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 03:01:14,245 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11051555066128493576/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 03:01:14,245 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 03:01:14,245 PM [test-pekko.actor.default-dispatcher-12] [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 03:01:14,247 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 03:01:14,247 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 03:01:14,247 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 03:01:14,247 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 03:01:14,247 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 03:01:14,247 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 03:01:14,247 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 03:01:14,247 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 03:01:14,247 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 03:01:14,247 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 03:01:14,248 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 03:01:14,248 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 03:01:14,248 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 03:01:14,248 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 03:01:14,248 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 03:01:14,248 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 7.405 ms 03:01:14,248 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 03:01:14,248 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 03:01:14,248 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 03:01:14,248 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 03:01:14,248 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 03:01:14,248 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 03:01:14,248 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 03:01:14,248 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 03:01:14,248 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 03:01:14,248 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 03:01:14,248 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 03:01:14,248 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 03:01:14,248 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 03:01:14,253 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 03:01:14,253 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 03:01:14,253 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 5.180 ms 03:01:14,253 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 03:01:14,253 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 4.540 μs 03:01:14,253 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c09156f8@133f5e80} 03:01:14,253 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 03:01:14,253 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c09156f8@133f5e80} 03:01:14,253 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 03:01:14,253 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 03:01:14,253 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 03:01:14,253 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 03:01:14,253 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 03:01:14,253 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 195.6 μs 03:01:14,253 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 03:01:14,253 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 03:01:14,253 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 03:01:14,253 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 03:01:14,253 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 03:01:14,253 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c09156f8@133f5e80} 03:01:14,253 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 5.463 ms 03:01:14,253 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 03:01:14,253 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d879053] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-11051555066128493576/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006936E83A-0F1DF861.tmp [WARN] [12/08/2025 15:01:14.253] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][12/08/2025 15:01:14.254] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 03:01:14,254 PM [test-pekko.actor.default-dispatcher-12] [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'. 03:01:14,256 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d879053] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-11051555066128493576/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006936E83A-0F1DF861.v1 03:01:14,256 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d879053] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-11051555066128493576/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006936E83A-0F1DF861.v1 03:01:14,256 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d879053] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11051555066128493576/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 03:01:14,256 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d879053] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11051555066128493576/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 03:01:14,256 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d879053] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11051555066128493576/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 03:01:14,256 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d879053] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-12-08T15:01:14.253622369Z, file=/tmp/junit-11051555066128493576/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006936E83A-0F1DF861.v1, size=573, entryCompress=NONE, stateCompress=NONE} 03:01:14,256 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d879053] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 03:01:14,256 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 03:01:14,256 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-12-08T15:01:14.253622369Z 03:01:14,256 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 03:01:14,256 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 03:01:14,256 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.380 ms 03:01:14,257 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 03:01:14,257 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 03:01:14,257 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 03:01:14,257 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 03:01:14,257 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 176.5 μs 03:01:14,257 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 03:01:14,396 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-11051555066128493576/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006936E83A-0F1DF861.v1 03:01:14,396 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11051555066128493576/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 03:01:14,396 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11051555066128493576/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 03:01:14,396 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11051555066128493576/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 03:01:14,396 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-12-08T15:01:14.253622369Z, file=/tmp/junit-11051555066128493576/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006936E83A-0F1DF861.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 03:01:14,398 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 03:01:14,409 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#631,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156]/waiting 03:01:14,409 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 152.3 ms 03:01:14,409 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 11.39 μs 03:01:14,409 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 03:01:14,409 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 03:01:14,409 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 03:01:14,409 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 03:01:14,409 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 03:01:14,410 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [12/08/2025 15:01:14.410] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@2f197a21 [INFO] [pekkoDeadLetter][12/08/2025 15:01:14.410] [test-pekko.actor.default-dispatcher-5] [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'. 03:01:14,411 PM [test-pekko.actor.default-dispatcher-5] [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'. 03:01:14,411 PM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 03:01:14,411 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 03:01:14,411 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 03:01:14,412 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 03:01:14,412 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 03:01:14,412 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 03:01:14,412 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 03:01:14,412 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 03:01:14,412 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 03:01:14,412 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 03:01:14,412 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-11051555066128493576/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006936E83A-0F1DF861.v1 03:01:14,412 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11051555066128493576/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 03:01:14,413 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11051555066128493576/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 03:01:14,413 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11051555066128493576/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 03:01:14,413 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-12-08T15:01:14.253622369Z, file=/tmp/junit-11051555066128493576/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006936E83A-0F1DF861.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 03:01:14,413 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-12-08T15:01:14.253622369Z 03:01:14,413 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 03:01:14,413 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 03:01:14,414 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 03:01:14,414 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 03:01:14,414 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 1.447 ms: last log index = 2, last log term = 1, napshot index = 2, snapshot term = 1, journal size = 0 03:01:14,414 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and cannot restore from snapshot 03:01:14,414 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior540#2058276624] 03:01:14,425 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower541#419259314] 03:01:14,425 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader542#2106131512] 03:01:14,425 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 03:01:14,425 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#634,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/waiting 03:01:14,425 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 13.15 ms 03:01:14,425 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 10.78 μs 03:01:14,425 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 03:01:14,426 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 03:01:14,426 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 03:01:14,426 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 03:01:14,426 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 03:01:14,430 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 03:01:14,430 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:14,731 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 03:01:14,861 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 03:01:15,111 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 03:01:15,311 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 03:01:15,312 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior543#963534205] 03:01:15,323 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower544#-169812742] 03:01:15,323 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader545#-1663058150] 03:01:15,328 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:01:15,329 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 03:01:15,329 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 03:01:15,329 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 03:01:15,329 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 03:01:15,330 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior546#632490368] 03:01:15,341 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower547#-198009415] 03:01:15,341 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader548#-813843305] [INFO] [12/08/2025 15:01:15.343] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 03:01:15,343 PM [test-pekko.actor.default-dispatcher-12] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [12/08/2025 15:01:15.344] [test-pekko.actor.default-dispatcher-12] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.223:17355) [INFO] [pekkoDeadLetter][12/08/2025 15:01:15.344] [test-pekko.actor.default-dispatcher-12] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1784046402] 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'. 03:01:15,344 PM [test-pekko.actor.default-dispatcher-12] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1784046402] 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] [12/08/2025 15:01:15.345] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.223:17355] - Exiting completed 03:01:15,345 PM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.223:17355] - Exiting completed [INFO] [12/08/2025 15:01:15.345] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.223:17355] - Shutting down... [INFO] [12/08/2025 15:01:15.345] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.223:17355] - Successfully shut down 03:01:15,346 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.223:17355] - Shutting down... 03:01:15,346 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.223:17355] - Successfully shut down [INFO] [12/08/2025 15:01:15.348] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.223:17355/system/remoting-terminator] Shutting down remote daemon. 03:01:15,348 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [12/08/2025 15:01:15.348] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.223:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 03:01:15,348 PM [test-pekko.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [12/08/2025 15:01:15.351] [test-pekko.remote.default-remote-dispatcher-6] [pekko://test@10.30.171.223:17355/system/remoting-terminator] Remoting shut down. 03:01:15,351 PM [test-pekko.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down.