[DEBUG] [09/04/2025 16:14:47.885] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 04:14:47,885 PM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [09/04/2025 16:14:47.885] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [09/04/2025 16:14:47.886] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [09/04/2025 16:14:47.900] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.28:17355] with UID [2893825865420972201] 04:14:47,901 PM [test-pekko.actor.default-dispatcher-7] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.28:17355] with UID [2893825865420972201] [INFO] [09/04/2025 16:14:47.901] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.28:17355] - Starting up, Pekko version [1.1.5] ... 04:14:47,901 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.28:17355] - Starting up, Pekko version [1.1.5] ... [INFO] [09/04/2025 16:14:47.906] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.28:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [09/04/2025 16:14:47.906] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.28:17355] - Started up successfully 04:14:47,906 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.28:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 04:14:47,906 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.28:17355] - Started up successfully [INFO] [09/04/2025 16:14:47.909] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.28:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [09/04/2025 16:14:47.909] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.28:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 04:14:47,910 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.28:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 04:14:47,910 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.28:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 04:14:47,917 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,0 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 04:14:48,0 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 04:14:48,0 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior420#-1450631723] 04:14:48,12 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower421#-1781728757] 04:14:48,12 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader422#-366017059] 04:14:48,16 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,19 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 04:14:48,19 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:14:48,19 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 04:14:48,19 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 04:14:48,20 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 04:14:48,20 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 04:14:48,20 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:48,20 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 04:14:48,20 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 04:14:48,21 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:14:48,21 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:14:48,21 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 04:14:48,22 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior423#1842895122] 04:14:48,33 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower424#-920988291] 04:14:48,33 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader425#121060716] 04:14:48,37 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,39 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 04:14:48,39 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 04:14:48,40 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior426#-692812937] 04:14:48,51 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower427#1801813409] 04:14:48,51 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader428#395318423] 04:14:48,55 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,56 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 04:14:48,57 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 04:14:48,58 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:48,59 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 04:14:48,60 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 04:14:48,60 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 04:14:48,60 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 04:14:48,60 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 04:14:48,60 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 04:14:48,61 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 04:14:48,61 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 04:14:48,62 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 04:14:48,62 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior429#2075157523] 04:14:48,73 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower430#-1549308604] 04:14:48,73 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader431#1635931539] 04:14:48,77 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,77 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:14:48,78 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:14:48,78 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,78 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 04:14:48,79 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 04:14:48,79 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 04:14:48,80 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 04:14:48,80 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 04:14:48,80 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior432#-1275951434] 04:14:48,91 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower433#1833878077] 04:14:48,91 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader434#-1543188443] 04:14:48,95 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,97 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 04:14:48,98 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior435#1972303008] 04:14:48,109 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower436#1543516722] 04:14:48,109 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader437#-1654828263] 04:14:48,113 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,114 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 04:14:48,114 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 04:14:48,115 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior438#355390598] 04:14:48,126 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower439#1044513359] 04:14:48,126 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader440#-654179121] 04:14:48,132 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 04:14:48,132 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,137 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:14:48,137 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:14:48,137 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:14:48,138 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:14:48,138 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 04:14:48,139 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 04:14:48,139 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 04:14:48,139 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 04:14:48,142 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 04:14:48,143 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior441#2113209623] 04:14:48,154 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower442#-90716414] 04:14:48,154 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader443#-267045253] 04:14:48,157 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 04:14:48,158 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,159 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 04:14:48,159 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 04:14:48,160 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:48,160 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 04:14:48,161 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior444#309727055] 04:14:48,171 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower445#-2086031679] 04:14:48,172 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader446#1532777359] 04:14:48,175 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 04:14:48,175 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,176 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:14:48,176 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:14:48,176 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:14:48,176 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:14:48,177 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 04:14:48,177 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 04:14:48,177 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 04:14:48,178 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 04:14:48,179 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:14:48,179 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:14:48,179 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 04:14:48,180 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:48,180 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 04:14:48,180 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior447#-1920447140] 04:14:48,191 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower448#-1921682797] 04:14:48,191 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader449#842764376] 04:14:48,195 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,196 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 04:14:48,197 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior450#1864374175] 04:14:48,207 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower451#1354001350] 04:14:48,207 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader452#528994433] 04:14:48,211 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 04:14:48,211 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,212 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:14:48,212 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:14:48,212 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:14:48,213 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:14:48,213 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:14:48,213 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:14:48,213 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:14:48,213 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:48,213 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:14:48,213 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 04:14:48,213 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 04:14:48,214 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior453#316849379] 04:14:48,224 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower454#-1521782688] 04:14:48,224 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader455#-976615009] 04:14:48,227 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 04:14:48,227 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,228 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 04:14:48,228 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:14:48,228 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 04:14:48,228 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 04:14:48,228 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:14:48,228 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 04:14:48,228 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:48,228 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:14:48,228 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 04:14:48,228 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:14:48,228 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:14:48,228 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 04:14:48,228 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 04:14:48,230 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 04:14:48,230 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:14:48,230 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 04:14:48,230 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 04:14:48,230 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 04:14:48,230 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 04:14:48,230 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 04:14:48,231 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:48,231 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 04:14:48,231 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 04:14:48,231 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:14:48,231 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:14:48,231 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#-399611544] 04:14:48,242 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower457#423065210] 04:14:48,242 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader458#-113117254] 04:14:48,245 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 04:14:48,245 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,246 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 04:14:48,246 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:14:48,247 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:48,247 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 04:14:48,248 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#-853476469] 04:14:48,258 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower460#462920036] 04:14:48,258 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader461#324530040] 04:14:48,264 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,267 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#-967010495] 04:14:48,278 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower463#1281584000] 04:14:48,278 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader464#-1514426267] 04:14:48,282 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 04:14:48,282 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,282 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 04:14:48,283 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:14:48,283 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:14:48,284 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:14:48,284 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:14:48,284 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:14:48,284 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:14:48,284 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:14:48,284 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:48,284 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:14:48,284 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 04:14:48,285 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 04:14:48,285 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 04:14:48,285 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 04:14:48,285 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#1588770238] 04:14:48,296 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower466#-1482942928] 04:14:48,296 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader467#-120072521] 04:14:48,300 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries 04:14:48,305 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:14:48,306 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] [WARN] [09/04/2025 16:14:48.306] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@dc4d9e4 04:14:48,307 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 [INFO] [pekkoDeadLetter][09/04/2025 16:14:48.307] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:14:48,307 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 04:14:48,307 PM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:14:48,307 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 04:14:48,308 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 04:14:48,308 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 04:14:48,308 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 04:14:48,308 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 04:14:48,308 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 04:14:48,308 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 04:14:48,308 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/junit-15020577188108991781/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 04:14:48,311 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=0, votedFor=null 04:14:48,311 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 04:14:48,311 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15020577188108991781/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:14:48,311 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15020577188108991781/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:14:48,311 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15020577188108991781/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:14:48,311 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 04:14:48,311 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 04:14:48,311 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 04:14:48,311 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 04:14:48,311 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed in in 2.713 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 04:14:48,311 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed and can restore from snapshot 04:14:48,312 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15020577188108991781/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:14:48,312 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15020577188108991781/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:14:48,312 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15020577188108991781/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:14:48,312 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 04:14:48,312 PM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]}" message is greater than follower's term 0 - updating term 04:14:48,314 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:14:48,314 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 04:14:48,314 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 04:14:48,314 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:14:48,314 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 04:14:48,314 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 04:14:48,314 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 04:14:48,314 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 04:14:48,314 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 04:14:48,314 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 04:14:48,314 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:48,314 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 04:14:48,314 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 04:14:48,314 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 04:14:48,314 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 04:14:48,314 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 04:14:48,314 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 04:14:48,314 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 5.490 ms 04:14:48,314 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 04:14:48,314 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 04:14:48,314 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 04:14:48,314 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 04:14:48,314 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 04:14:48,318 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 04:14:48,318 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 3.916 ms 04:14:48,318 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 5.520 μs 04:14:48,318 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 04:14:48,318 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 04:14:48,318 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 04:14:48,318 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 04:14:48,318 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 85.93 μs 04:14:48,318 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 04:14:48,318 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d4228@2e9ee98d} 04:14:48,318 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 04:14:48,318 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 04:14:48,318 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 04:14:48,318 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 04:14:48,318 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 04:14:48,318 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 04:14:48,318 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 04:14:48,318 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d776764] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-15020577188108991781/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B9BAF8-13003EB6.tmp 04:14:48,318 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d4228@2e9ee98d} 04:14:48,318 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 4.431 ms 04:14:48,319 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) [WARN] [09/04/2025 16:14:48.319] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][09/04/2025 16:14:48.319] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:14:48,319 PM [test-pekko.actor.default-dispatcher-11] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:14:48,323 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d776764] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-15020577188108991781/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B9BAF8-13003EB6.v1 04:14:48,323 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d776764] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-15020577188108991781/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B9BAF8-13003EB6.v1 04:14:48,323 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d776764] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15020577188108991781/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:14:48,323 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d776764] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15020577188108991781/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:14:48,323 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d776764] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15020577188108991781/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:14:48,323 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d776764] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-09-04T16:14:48.318783158Z, file=/tmp/junit-15020577188108991781/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B9BAF8-13003EB6.v1, size=555, entryCompress=NONE, stateCompress=NONE} 04:14:48,323 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d776764] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 04:14:48,324 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 04:14:48,324 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-09-04T16:14:48.318783158Z 04:14:48,324 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 04:14:48,324 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 04:14:48,324 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 6.190 ms 04:14:48,324 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 04:14:48,325 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 04:14:48,325 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 04:14:48,325 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 04:14:48,325 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 297.8 μs 04:14:48,325 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 04:14:48,413 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-15020577188108991781/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B9BAF8-13003EB6.v1 04:14:48,413 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15020577188108991781/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:14:48,413 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15020577188108991781/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:14:48,413 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15020577188108991781/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:14:48,413 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-09-04T16:14:48.318783158Z, file=/tmp/junit-15020577188108991781/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B9BAF8-13003EB6.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 04:14:48,415 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#-2002969230] 04:14:48,426 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower469#-866136340] 04:14:48,426 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader470#1192611443] 04:14:48,427 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 04:14:48,427 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#628,testCaptureSnapshotOnLastEntryInAppendEntries-writer-154]/waiting 04:14:48,427 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 102.3 ms 04:14:48,427 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 17.53 μs 04:14:48,427 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 04:14:48,427 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 04:14:48,427 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 04:14:48,427 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 04:14:48,427 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 04:14:48,432 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,433 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior471#-145736970] 04:14:48,444 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower472#981924272] 04:14:48,444 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader473#-1300793998] 04:14:48,449 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 04:14:48,449 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,451 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 04:14:48,451 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 04:14:48,452 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior474#401096510] 04:14:48,463 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower475#-1566029495] 04:14:48,463 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader476#-1061391408] 04:14:48,467 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 04:14:48,467 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,468 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:14:48,468 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:14:48,468 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:14:48,468 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:14:48,468 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:14:48,468 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 04:14:48,468 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:14:48,469 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:48,469 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:14:48,469 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 04:14:48,469 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 04:14:48,469 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#-1319785484] 04:14:48,480 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower478#1586799133] 04:14:48,480 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader479#1364315561] 04:14:48,484 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 04:14:48,484 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,485 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:14:48,485 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:14:48,485 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:14:48,486 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:48,486 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:14:48,486 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 04:14:48,486 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:14:48,487 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 04:14:48,487 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:48,487 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 04:14:48,488 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#-1402802110] 04:14:48,498 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower481#-451042877] 04:14:48,498 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader482#-47531040] 04:14:48,501 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,502 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior483#-754837002] 04:14:48,513 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower484#-1323764895] 04:14:48,513 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader485#1915393356] 04:14:48,518 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 04:14:48,518 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,519 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:14:48,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]]} 04:14:48,520 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:14:48,520 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:48,520 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:14:48,520 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 04:14:48,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]]} 04:14:48,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 04:14:48,521 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:48,522 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 04:14:48,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]]} 04:14:48,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 04:14:48,523 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:48,523 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 04:14:48,523 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior486#1427655721] 04:14:48,524 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower487#-1396281761] 04:14:48,524 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader488#1731844567] 04:14:48,528 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 04:14:48,528 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,529 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 04:14:48,529 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:14:48,529 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 04:14:48,529 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 04:14:48,529 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 04:14:48,530 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 04:14:48,530 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:48,530 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 04:14:48,530 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 04:14:48,530 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 04:14:48,531 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior489#1151490746] 04:14:48,532 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower490#1285349328] 04:14:48,532 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader491#-761556684] 04:14:48,534 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 04:14:48,534 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,536 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 04:14:48,536 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader494 04:14:48,536 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader494 04:14:48,537 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 04:14:48,538 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior492#1278713381] 04:14:48,538 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower493#1718041310] 04:14:48,539 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader494#-1813043303] 04:14:48,541 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 04:14:48,541 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,541 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:14:48,542 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:14:48,542 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:14:48,542 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:14:48,542 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:14:48,542 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:14:48,542 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:14:48,542 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:48,542 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:14:48,542 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 04:14:48,543 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 04:14:48,543 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior495#-1497509999] 04:14:48,544 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower496#-1197428273] 04:14:48,544 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader497#-1879225172] 04:14:48,546 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 04:14:48,546 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,547 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:14:48,547 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:14:48,547 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:14:48,547 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:48,548 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:14:48,548 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#1382537876] 04:14:48,548 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower499#1118238799] 04:14:48,549 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader500#-1544584302] 04:14:48,550 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 04:14:48,553 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 04:14:48,553 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] [WARN] [09/04/2025 16:14:48.554] [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@2c6c7d6a [INFO] [pekkoDeadLetter][09/04/2025 16:14:48.554] [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'. 04:14:48,554 PM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:14:48,554 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 04:14:48,554 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 04:14:48,554 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 04:14:48,555 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 04:14:48,555 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 04:14:48,555 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 04:14:48,555 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 04:14:48,555 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/junit-9618560859446954215/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 04:14:48,556 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 04:14:48,556 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 04:14:48,558 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=0, votedFor=null 04:14:48,558 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=0} 04:14:48,558 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-9618560859446954215/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 04:14:48,558 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-9618560859446954215/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:14:48,558 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-9618560859446954215/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:14:48,558 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 04:14:48,558 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 04:14:48,558 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 04:14:48,558 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 04:14:48,558 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed in in 2.800 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 04:14:48,558 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed and can restore from snapshot 04:14:48,558 PM [test-pekko.actor.default-dispatcher-7] [INFO] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]}" message is greater than follower's term 0 - updating term 04:14:48,560 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 04:14:48,560 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 04:14:48,560 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 04:14:48,560 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:14:48,560 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 04:14:48,560 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 04:14:48,560 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 4.523 ms 04:14:48,560 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 04:14:48,560 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 04:14:48,560 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 04:14:48,560 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 04:14:48,560 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 04:14:48,560 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 04:14:48,560 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:48,560 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 04:14:48,560 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 04:14:48,560 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 04:14:48,560 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 04:14:48,560 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 04:14:48,561 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 04:14:48,561 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 04:14:48,563 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 04:14:48,563 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 2.881 ms 04:14:48,563 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 04:14:48,563 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 3 commands after 3.940 μs 04:14:48,563 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 04:14:48,563 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d4228@4e5c7884} 04:14:48,563 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 2 synchronized callback(s) 04:14:48,564 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 04:14:48,564 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 3 completion(s) pending 04:14:48,564 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 3 commands in 1.233 ms 04:14:48,564 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 04:14:48,564 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 3 completion(s) 04:14:48,564 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 04:14:48,564 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d4228@4e5c7884} 04:14:48,564 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 04:14:48,564 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 04:14:48,565 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 04:14:48,565 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 04:14:48,565 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 04:14:48,565 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 04:14:48,565 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 04:14:48,565 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d421610] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-9618560859446954215/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B9BAF8-21AEA221.tmp 04:14:48,565 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d4228@4e5c7884} 04:14:48,565 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 4.168 ms [WARN] [09/04/2025 16:14:48.565] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][09/04/2025 16:14:48.565] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:14:48,565 PM [test-pekko.actor.default-dispatcher-6] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:14:48,566 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d421610] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-9618560859446954215/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B9BAF8-21AEA221.v1 04:14:48,566 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d421610] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-9618560859446954215/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 04:14:48,566 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d421610] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-9618560859446954215/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:14:48,566 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d421610] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-9618560859446954215/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B9BAF8-21AEA221.v1 04:14:48,566 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d421610] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-9618560859446954215/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:14:48,566 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d421610] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-09-04T16:14:48.565092897Z, file=/tmp/junit-9618560859446954215/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B9BAF8-21AEA221.v1, size=539, entryCompress=NONE, stateCompress=NONE} 04:14:48,566 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d421610] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 04:14:48,566 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 04:14:48,566 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-09-04T16:14:48.565092897Z 04:14:48,566 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 04:14:48,567 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 04:14:48,567 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 2.274 ms 04:14:48,567 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 04:14:48,567 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 04:14:48,567 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 04:14:48,567 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 04:14:48,567 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 118.3 μs 04:14:48,567 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 04:14:48,710 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-9618560859446954215/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 04:14:48,710 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-9618560859446954215/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:14:48,710 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-9618560859446954215/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B9BAF8-21AEA221.v1 04:14:48,710 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-9618560859446954215/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:14:48,710 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-09-04T16:14:48.565092897Z, file=/tmp/junit-9618560859446954215/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B9BAF8-21AEA221.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 04:14:48,713 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#454950364] 04:14:48,714 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower502#2071874503] 04:14:48,714 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader503#-1011857635] 04:14:48,714 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 04:14:48,714 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#632,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155]/waiting 04:14:48,715 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 147.8 ms 04:14:48,715 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 18.52 μs 04:14:48,715 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 04:14:48,715 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 04:14:48,715 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 04:14:48,715 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 04:14:48,715 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 04:14:48,720 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 04:14:48,720 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,721 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:14:48,721 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 04:14:48,722 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 04:14:48,722 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:48,722 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 04:14:48,723 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior504#875456041] 04:14:48,723 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower505#1479163641] 04:14:48,723 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader506#630361287] 04:14:48,726 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 04:14:48,726 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,727 PM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 04:14:48,728 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 04:14:48,728 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 04:14:48,728 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 04:14:48,728 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 04:14:48,728 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#-946901093] 04:14:48,729 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower508#-945059027] 04:14:48,729 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader509#1038133976] 04:14:48,731 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 04:14:48,731 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,732 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 04:14:48,732 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 04:14:48,732 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:14:48,733 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 04:14:48,733 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:14:48,733 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 04:14:48,733 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 04:14:48,733 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 04:14:48,733 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 04:14:48,733 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 04:14:48,733 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 04:14:48,733 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:48,733 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 04:14:48,733 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 04:14:48,733 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:14:48,733 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:14:48,733 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 04:14:48,733 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 04:14:48,733 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:14:48,733 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:14:48,733 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 04:14:48,733 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 04:14:48,734 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior510#740182894] 04:14:48,734 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower511#-382259363] 04:14:48,735 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader512#-1389662497] 04:14:48,737 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 04:14:48,737 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,737 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 04:14:48,737 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 04:14:48,738 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#1590880993] 04:14:48,739 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower514#-1621063392] 04:14:48,739 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader515#-1717807666] 04:14:48,741 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 04:14:48,741 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,741 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:14:48,741 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:14:48,741 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:14:48,742 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:14:48,749 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 04:14:48,749 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 04:14:48,749 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 04:14:48,749 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:14:48,749 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 04:14:48,749 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 04:14:48,749 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 04:14:48,749 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 04:14:48,749 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:48,750 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 04:14:48,750 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 04:14:48,750 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:14:48,750 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:14:48,750 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior516#-1935005947] 04:14:48,751 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower517#1662800532] 04:14:48,751 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518#-12555802] 04:14:48,753 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 04:14:48,753 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,754 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:14:48,754 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:14:48,754 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:14:48,754 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:48,755 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:14:48,755 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 04:14:48,755 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:14:48,755 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 04:14:48,755 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:48,755 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 04:14:48,756 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 04:14:48,756 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:14:48,756 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 04:14:48,756 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:48,756 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 04:14:48,757 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior519#-397421851] 04:14:48,757 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower520#-1094430261] 04:14:48,757 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader521#-851582954] 04:14:48,760 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 04:14:48,760 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,960 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:14:48,960 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.28:17355, Removed) 04:14:48,960 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 04:14:48,960 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 04:14:48,960 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 04:14:48,960 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 04:14:48,961 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior522#355084857] 04:14:48,962 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower523#2119213554] 04:14:48,962 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader524#-2110198609] 04:14:48,966 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:48,966 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 04:14:49,167 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:14:49,168 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior525#1024536801] 04:14:49,169 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower526#1328924376] 04:14:49,170 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader527#-2105834816] 04:14:49,174 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 04:14:49,174 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:49,175 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 04:14:49,176 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 04:14:49,176 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior528#1484943836] 04:14:49,177 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower529#-965951931] 04:14:49,177 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader530#-6195121] 04:14:49,180 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 04:14:49,180 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:49,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]]} 04:14:49,182 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:14:49,182 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 04:14:49,182 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 04:14:49,182 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 04:14:49,182 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 04:14:49,182 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 04:14:49,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} 04:14:49,182 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 04:14:49,182 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 04:14:49,182 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:14:49,182 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:14:49,183 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 04:14:49,183 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 04:14:49,183 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:14:49,183 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:14:49,183 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 04:14:49,183 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 04:14:49,183 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 04:14:49,183 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 04:14:49,184 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior531#-1842108950] 04:14:49,185 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower532#691500030] 04:14:49,185 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader533#-329515175] 04:14:49,187 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 04:14:49,187 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:49,188 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:14:49,188 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:14:49,188 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:14:49,188 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:14:49,189 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 04:14:49,190 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:49,190 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior534#539682763] 04:14:49,191 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower535#-864288570] 04:14:49,191 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader536#-862211161] 04:14:49,193 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 04:14:49,193 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:49,194 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 04:14:49,194 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 04:14:49,194 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:14:49,195 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 04:14:49,195 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 04:14:49,195 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior537#-1594788951] 04:14:49,196 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower538#-1707980857] 04:14:49,196 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader539#1813816126] 04:14:49,198 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries 04:14:49,201 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:14:49,201 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [09/04/2025 16:14:49.202] [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@2f1bb3b5 [INFO] [pekkoDeadLetter][09/04/2025 16:14:49.202] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:14:49,202 PM [test-pekko.actor.default-dispatcher-7] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:14:49,202 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 04:14:49,202 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:14:49,202 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:14:49,203 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 04:14:49,203 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 04:14:49,203 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 04:14:49,203 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 04:14:49,203 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/junit-11225635803375658115/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 04:14:49,203 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 04:14:49,203 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:14:49,207 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=0, votedFor=null 04:14:49,207 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 04:14:49,207 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11225635803375658115/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:14:49,207 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11225635803375658115/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:14:49,207 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11225635803375658115/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:14:49,207 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 04:14:49,207 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 04:14:49,207 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 04:14:49,207 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 04:14:49,207 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 3.973 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 04:14:49,207 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and can restore from snapshot 04:14:49,207 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11225635803375658115/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:14:49,207 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11225635803375658115/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:14:49,207 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11225635803375658115/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:14:49,207 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 04:14:49,208 PM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]}" message is greater than follower's term 0 - updating term 04:14:49,209 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:14:49,209 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 04:14:49,209 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 04:14:49,209 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:14:49,209 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 04:14:49,209 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 04:14:49,209 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 04:14:49,209 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 04:14:49,209 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 04:14:49,209 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 04:14:49,209 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 04:14:49,209 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 6.399 ms 04:14:49,209 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 04:14:49,209 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:49,209 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 04:14:49,209 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 04:14:49,209 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 04:14:49,209 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 04:14:49,209 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 04:14:49,209 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 04:14:49,210 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 04:14:49,210 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 04:14:49,210 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 04:14:49,210 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 04:14:49,210 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 04:14:49,210 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 04:14:49,210 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 04:14:49,210 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 04:14:49,210 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 04:14:49,213 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 04:14:49,213 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 4.076 ms 04:14:49,214 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 5.960 μs 04:14:49,214 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 04:14:49,214 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 04:14:49,214 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d4228@664875ab} 04:14:49,214 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 04:14:49,214 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d4228@664875ab} 04:14:49,214 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 04:14:49,214 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 04:14:49,214 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 04:14:49,214 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 04:14:49,214 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 919.1 μs 04:14:49,214 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 04:14:49,215 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:14:49,215 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 04:14:49,215 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 04:14:49,215 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 04:14:49,215 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 04:14:49,215 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 04:14:49,215 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 04:14:49,215 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d4228@664875ab} 04:14:49,215 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d390076] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-11225635803375658115/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B9BAF9-0CD3F620.tmp 04:14:49,215 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 5.176 ms [WARN] [09/04/2025 16:14:49.215] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][09/04/2025 16:14:49.215] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:14:49,215 PM [test-pekko.actor.default-dispatcher-7] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:14:49,218 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d390076] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-11225635803375658115/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B9BAF9-0CD3F620.v1 04:14:49,218 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d390076] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-11225635803375658115/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B9BAF9-0CD3F620.v1 04:14:49,219 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d390076] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11225635803375658115/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:14:49,219 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d390076] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11225635803375658115/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:14:49,219 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d390076] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11225635803375658115/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:14:49,219 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d390076] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-09-04T16:14:49.215217696Z, file=/tmp/junit-11225635803375658115/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B9BAF9-0CD3F620.v1, size=573, entryCompress=NONE, stateCompress=NONE} 04:14:49,219 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d390076] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 04:14:49,219 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 04:14:49,219 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-09-04T16:14:49.215217696Z 04:14:49,219 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 04:14:49,219 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 04:14:49,219 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 4.429 ms 04:14:49,219 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 04:14:49,219 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 04:14:49,219 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 04:14:49,219 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 110.9 μs 04:14:49,219 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:14:49,219 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 04:14:49,359 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-11225635803375658115/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B9BAF9-0CD3F620.v1 04:14:49,359 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11225635803375658115/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:14:49,359 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11225635803375658115/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:14:49,359 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11225635803375658115/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:14:49,359 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-09-04T16:14:49.215217696Z, file=/tmp/junit-11225635803375658115/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B9BAF9-0CD3F620.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 04:14:49,361 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 04:14:49,363 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#635,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156]/waiting 04:14:49,363 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 143.7 ms 04:14:49,363 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 17.93 μs 04:14:49,363 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 04:14:49,363 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:14:49,363 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:14:49,363 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:14:49,363 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:14:49,364 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [09/04/2025 16:14:49.364] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@380f642b [INFO] [pekkoDeadLetter][09/04/2025 16:14:49.364] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:14:49,364 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. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:14:49,365 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 04:14:49,365 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:14:49,365 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:14:49,366 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 04:14:49,366 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 04:14:49,366 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 04:14:49,366 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 04:14:49,366 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 04:14:49,366 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:14:49,367 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:14:49,367 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-11225635803375658115/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B9BAF9-0CD3F620.v1 04:14:49,367 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11225635803375658115/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:14:49,367 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11225635803375658115/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:14:49,367 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11225635803375658115/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:14:49,367 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-09-04T16:14:49.215217696Z, file=/tmp/junit-11225635803375658115/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B9BAF9-0CD3F620.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 04:14:49,367 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-09-04T16:14:49.215217696Z 04:14:49,367 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 04:14:49,368 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 04:14:49,368 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 04:14:49,368 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 04:14:49,368 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 1.669 ms: last log index = 2, last log term = 1, napshot index = 2, snapshot term = 1, journal size = 0 04:14:49,368 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and cannot restore from snapshot 04:14:49,369 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior540#1940551929] 04:14:49,370 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower541#-1681311834] 04:14:49,370 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader542#222646434] 04:14:49,370 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 04:14:49,370 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#638,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/waiting 04:14:49,370 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.696 ms 04:14:49,370 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 12.55 μs 04:14:49,370 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 04:14:49,370 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:14:49,370 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:14:49,370 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:14:49,370 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:14:49,374 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 04:14:49,374 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:49,674 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 04:14:49,804 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:14:49,804 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 04:14:50,55 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 04:14:50,255 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 04:14:50,255 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior543#848116944] 04:14:50,266 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower544#-1716061022] 04:14:50,267 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader545#1402776575] 04:14:50,270 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:50,270 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:14:50,270 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 04:14:50,270 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 04:14:50,270 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 04:14:50,271 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 04:14:50,271 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior546#646787436] 04:14:50,282 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower547#464017983] 04:14:50,282 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader548#-1581022141] [INFO] [09/04/2025 16:14:50.284] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 04:14:50,284 PM [test-pekko.actor.default-dispatcher-11] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [09/04/2025 16:14:50.285] [test-pekko.actor.default-dispatcher-11] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.28:17355) [INFO] [pekkoDeadLetter][09/04/2025 16:14:50.285] [test-pekko.actor.default-dispatcher-11] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1049585107] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:14:50,286 PM [test-pekko.actor.default-dispatcher-11] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1049585107] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:14:50,286 PM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.28:17355] - Exiting completed 04:14:50,286 PM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.28:17355] - Shutting down... [INFO] [09/04/2025 16:14:50.286] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.28:17355] - Exiting completed [INFO] [09/04/2025 16:14:50.286] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.28:17355] - Shutting down... [INFO] [09/04/2025 16:14:50.286] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.28:17355] - Successfully shut down [INFO] [09/04/2025 16:14:50.287] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.28:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [09/04/2025 16:14:50.287] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.28:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 04:14:50,287 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.28:17355] - Successfully shut down 04:14:50,287 PM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 04:14:50,287 PM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. 04:14:50,290 PM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [09/04/2025 16:14:50.289] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.28:17355/system/remoting-terminator] Remoting shut down. [DEBUG] [09/04/2025 16:14:50.290] [test-pekko.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger