[DEBUG] [08/25/2025 21:13:49.955] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 09:13:49,959 PM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [08/25/2025 21:13:49.960] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [08/25/2025 21:13:49.962] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [08/25/2025 21:13:49.971] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.59:17355] with UID [-47519487033253773] 09:13:49,971 PM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.59:17355] with UID [-47519487033253773] [INFO] [08/25/2025 21:13:49.971] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.59:17355] - Starting up, Pekko version [1.1.4] ... 09:13:49,971 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.59:17355] - Starting up, Pekko version [1.1.4] ... [INFO] [08/25/2025 21:13:49.973] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.59:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [08/25/2025 21:13:49.973] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.59:17355] - Started up successfully 09:13:49,973 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.59:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 09:13:49,973 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.59:17355] - Started up successfully [INFO] [08/25/2025 21:13:49.975] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.59:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 09:13:49,975 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.59:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 09:13:49,975 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.59:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [08/25/2025 21:13:49.975] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.59:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 09:13:49,990 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:50,79 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 09:13:50,80 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 09:13:50,81 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior425#-425348432] 09:13:50,92 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower426#488875284] 09:13:50,92 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader427#-1505561611] 09:13:50,95 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:50,97 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]]} 09:13:50,97 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:13:50,97 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 09:13:50,97 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 09:13:50,97 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 09:13:50,97 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 09:13:50,98 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} 09:13:50,98 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 09:13:50,98 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 09:13:50,99 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:13:50,99 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:13:50,99 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 09:13:50,101 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior428#1537669903] 09:13:50,111 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower429#-1251948338] 09:13:50,111 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader430#-837050210] 09:13:50,114 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:50,115 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 09:13:50,115 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 09:13:50,116 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior431#-1070884070] 09:13:50,126 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower432#659923052] 09:13:50,126 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader433#532697112] 09:13:50,129 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:50,129 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 09:13:50,130 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 09:13:50,130 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} 09:13:50,130 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 09:13:50,131 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 09:13:50,132 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 09:13:50,132 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 09:13:50,132 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. 09:13:50,132 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 09:13:50,133 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 09:13:50,134 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 09:13:50,134 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 09:13:50,135 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior434#-1842091061] 09:13:50,145 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower435#-560551437] 09:13:50,145 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader436#-397214644] 09:13:50,148 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:50,148 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:13:50,148 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:13:50,149 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:50,149 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 09:13:50,149 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 09:13:50,149 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 09:13:50,150 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 09:13:50,150 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 09:13:50,150 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior437#137121251] 09:13:50,160 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower438#1619315568] 09:13:50,160 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader439#-431892549] 09:13:50,163 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:50,163 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 09:13:50,164 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior440#-1787791966] 09:13:50,175 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower441#1362699910] 09:13:50,175 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader442#-1917116382] 09:13:50,177 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:50,178 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 09:13:50,178 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 09:13:50,179 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior443#-1203098898] 09:13:50,189 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower444#298431327] 09:13:50,189 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader445#1384178945] 09:13:50,192 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 09:13:50,192 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:50,194 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:13:50,194 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:13:50,194 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:13:50,194 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:13:50,195 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 09:13:50,195 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 09:13:50,195 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 09:13:50,195 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 09:13:50,198 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 09:13:50,199 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior446#-1293477573] 09:13:50,210 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower447#1165467741] 09:13:50,211 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader448#689950171] 09:13:50,214 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 09:13:50,215 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:50,216 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]]} 09:13:50,216 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 09:13:50,216 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} 09:13:50,216 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 09:13:50,217 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior449#288081713] 09:13:50,227 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower450#252918227] 09:13:50,227 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader451#-125920126] 09:13:50,232 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 09:13:50,232 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:50,232 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:13:50,233 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:13:50,233 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:13:50,233 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:13:50,233 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 09:13:50,233 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 09:13:50,233 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 09:13:50,236 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 09:13:50,236 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 09:13:50,237 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]]} 09:13:50,237 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 09:13:50,238 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} 09:13:50,238 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 09:13:50,239 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior452#-1050785408] 09:13:50,249 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower453#-1117639839] 09:13:50,250 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader454#264141122] 09:13:50,255 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:50,256 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 09:13:50,257 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior455#1040715108] 09:13:50,258 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower456#2009695112] 09:13:50,258 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader457#1369251913] 09:13:50,260 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 09:13:50,261 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:50,261 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 09:13:50,262 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]]} 09:13:50,262 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:13:50,262 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:13:50,262 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:13:50,262 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:13:50,262 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:13:50,262 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} 09:13:50,262 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:13:50,262 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 09:13:50,263 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 09:13:50,263 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior458#-1374452451] 09:13:50,264 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower459#-1970410231] 09:13:50,264 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader460#497544852] 09:13:50,266 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 09:13:50,266 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:50,267 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]]} 09:13:50,267 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:13:50,267 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 09:13:50,267 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 09:13:50,267 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:13:50,267 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 09:13:50,267 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} 09:13:50,267 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:13:50,267 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 09:13:50,268 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:13:50,268 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:13:50,268 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 09:13:50,268 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 09:13:50,268 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]]} 09:13:50,269 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:13:50,269 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 09:13:50,269 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 09:13:50,269 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 09:13:50,269 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 09:13:50,269 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 09:13:50,269 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} 09:13:50,269 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 09:13:50,269 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 09:13:50,269 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:13:50,269 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:13:50,270 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior461#206971194] 09:13:50,270 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower462#-137021434] 09:13:50,270 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader463#-1339178616] 09:13:50,272 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 09:13:50,272 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:50,273 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 09:13:50,273 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 09:13:50,273 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} 09:13:50,274 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 09:13:50,274 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior464#-1312214107] 09:13:50,274 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower465#-1887786859] 09:13:50,274 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader466#2882973] 09:13:50,276 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:50,278 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior467#-427390567] 09:13:50,279 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower468#-276836997] 09:13:50,279 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader469#-914761626] 09:13:50,281 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 09:13:50,281 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:50,281 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 09:13:50,281 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 09:13:50,282 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]]} 09:13:50,282 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:13:50,282 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:13:50,282 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:13:50,282 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:13:50,282 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:13:50,282 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} 09:13:50,282 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:13:50,282 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 09:13:50,282 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 09:13:50,282 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 09:13:50,282 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 09:13:50,283 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior470#826228212] 09:13:50,283 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower471#-606802341] 09:13:50,283 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader472#374493466] 09:13:50,285 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [08/25/2025 21:13:50.286] [test-pekko.actor.default-dispatcher-9] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@4286df3f [INFO] [pekkoDeadLetter][08/25/2025 21:13:50.287] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:13:50,287 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:13:50,288 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 09:13:50,288 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 09:13:50,288 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 09:13:50,289 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 09:13:50,289 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 09:13:50,289 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 09:13:50,289 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 09:13:50,289 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 09:13:50,290 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/junit-11473120673048374951/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 09:13:50,291 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-11473120673048374951/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 09:13:50,291 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-11473120673048374951/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 09:13:50,291 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 09:13:50,291 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:13:50,291 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 09:13:50,296 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:13:50,296 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 09:13:50,296 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 09:13:50,296 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 09:13:50,296 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 09:13:50,296 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 09:13:50,296 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-11473120673048374951/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068ACD20E-11A7DD7F.tmp 09:13:50,300 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-11473120673048374951/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068ACD20E-11A7DD7F.v1 09:13:50,301 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-11473120673048374951/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068ACD20E-11A7DD7F.v1 09:13:50,301 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-11473120673048374951/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 09:13:50,301 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-11473120673048374951/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 09:13:50,301 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-11473120673048374951/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 09:13:50,301 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-25T21:13:50.296213887Z, file=/tmp/junit-11473120673048374951/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068ACD20E-11A7DD7F.v1, size=419, entryCompress=NONE, stateCompress=NONE} 09:13:50,301 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot completed in 5.137 ms, resetting timer for the next recovery snapshot 09:13:50,301 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 09:13:50,301 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 09:13:50,301 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 09:13:50,301 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 09:13:50,301 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 09:13:50,301 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: journal recovery completedin 145.0 μs with journalIndex=1 09:13:50,301 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 09:13:50,302 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 09:13:50,402 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-11473120673048374951/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068ACD20E-11A7DD7F.v1 09:13:50,402 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-11473120673048374951/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 09:13:50,402 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-11473120673048374951/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 09:13:50,402 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-11473120673048374951/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 09:13:50,403 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-25T21:13:50.296213887Z, file=/tmp/junit-11473120673048374951/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068ACD20E-11A7DD7F.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 09:13:50,403 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 09:13:50,403 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 09:13:50,403 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 09:13:50,403 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 09:13:50,403 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 09:13:50,404 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 09:13:50,404 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 09:13:50,404 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 09:13:50,404 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 09:13:50,404 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:13:50,404 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 09:13:50,404 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 09:13:50,404 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 09:13:50,404 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 09:13:50,404 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 09:13:50,404 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 09:13:50,404 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 09:13:50,404 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 09:13:50,404 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 09:13:50,404 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 09:13:50,404 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 09:13:50,404 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 3 commands after 114.9 ms 09:13:50,408 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 09:13:50,408 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 3 completion(s) pending 09:13:50,409 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 3 completion(s) 09:13:50,409 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 3 commands in 4.477 ms 09:13:50,409 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 09:13:50,409 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 09:13:50,409 PM [test-pekko.actor.default-dispatcher-7] [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/0x00000007c092c228@6a5da8b5} 09:13:50,409 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 09:13:50,409 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 09:13:50,409 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 09:13:50,409 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 09:13:50,409 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 09:13:50,409 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 09:13:50,409 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 09:13:50,409 PM [test-pekko.actor.default-dispatcher-7] [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/0x00000007c092c228@6a5da8b5} 09:13:50,409 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d734137] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-11473120673048374951/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068ACD20E-1865E99E.tmp 09:13:50,409 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 5.037 ms [WARN] [08/25/2025 21:13:50.409] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][08/25/2025 21:13:50.409] [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'. 09:13:50,410 PM [test-pekko.actor.default-dispatcher-8] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:13:50,411 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d734137] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-11473120673048374951/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068ACD20E-1865E99E.v1 09:13:50,411 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d734137] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-11473120673048374951/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068ACD20E-11A7DD7F.v1 09:13:50,411 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d734137] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-11473120673048374951/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 09:13:50,411 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d734137] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-11473120673048374951/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 09:13:50,411 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d734137] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-11473120673048374951/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068ACD20E-1865E99E.v1 09:13:50,411 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d734137] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-11473120673048374951/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 09:13:50,411 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d734137] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-25T21:13:50.296213887Z, file=/tmp/junit-11473120673048374951/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068ACD20E-11A7DD7F.v1, size=419, entryCompress=NONE, stateCompress=NONE} 09:13:50,411 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d734137] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-08-25T21:13:50.409332126Z, file=/tmp/junit-11473120673048374951/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068ACD20E-1865E99E.v1, size=555, entryCompress=NONE, stateCompress=NONE} 09:13:50,411 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d734137] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 09:13:50,412 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 09:13:50,412 PM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-08-25T21:13:50.409332126Z 09:13:50,412 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 09:13:50,412 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 3.169 ms 09:13:50,412 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 09:13:50,412 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 09:13:50,412 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 09:13:50,412 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 09:13:50,412 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 125.2 μs 09:13:50,412 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 09:13:50,412 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 09:13:50,606 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-11473120673048374951/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 09:13:50,606 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-11473120673048374951/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 09:13:50,606 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-11473120673048374951/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068ACD20E-1865E99E.v1 09:13:50,606 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-11473120673048374951/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 09:13:50,606 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-08-25T21:13:50.409332126Z, file=/tmp/junit-11473120673048374951/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068ACD20E-1865E99E.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 09:13:50,610 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior473#961932315] 09:13:50,611 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower474#267929421] 09:13:50,612 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader475#-437488946] 09:13:50,612 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 09:13:50,612 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#823,testCaptureSnapshotOnLastEntryInAppendEntries-writer-158]/waiting 09:13:50,612 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 200.2 ms 09:13:50,612 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 16.38 μs 09:13:50,612 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 09:13:50,612 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 09:13:50,612 PM [test-pekko.actor.default-dispatcher-8] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 09:13:50,613 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 09:13:50,613 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 09:13:50,617 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:50,618 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior476#1550759241] 09:13:50,619 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower477#1654745909] 09:13:50,619 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader478#-1995281911] 09:13:50,621 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 09:13:50,621 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:50,622 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 09:13:50,622 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 09:13:50,623 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior479#-1220006194] 09:13:50,623 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower480#1986894488] 09:13:50,623 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader481#-1402290664] 09:13:50,625 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 09:13:50,625 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:50,626 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 09:13:50,626 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]]} 09:13:50,626 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:13:50,626 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:13:50,626 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:13:50,626 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 09:13:50,626 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:13:50,626 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} 09:13:50,626 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:13:50,626 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 09:13:50,626 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 09:13:50,627 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior482#-1932443347] 09:13:50,627 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower483#1281851462] 09:13:50,627 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader484#148230521] 09:13:50,629 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 09:13:50,629 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:50,629 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 09:13:50,630 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]]} 09:13:50,630 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 09:13:50,630 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} 09:13:50,630 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:13:50,630 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 09:13:50,630 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]]} 09:13:50,631 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 09:13:50,631 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} 09:13:50,631 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 09:13:50,631 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior485#-530815653] 09:13:50,632 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower486#1537781178] 09:13:50,632 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader487#-616692136] 09:13:50,633 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:50,634 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior488#-1928797160] 09:13:50,634 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower489#510900669] 09:13:50,634 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader490#-104561807] 09:13:50,636 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 09:13:50,636 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:50,636 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 09:13:50,636 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]]} 09:13:50,637 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 09:13:50,637 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} 09:13:50,637 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:13:50,637 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 09:13:50,637 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]]} 09:13:50,637 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 09:13:50,638 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} 09:13:50,638 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 09:13:50,638 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]]} 09:13:50,638 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 09:13:50,638 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} 09:13:50,638 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 09:13:50,639 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior491#-371670100] 09:13:50,639 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower492#1861742216] 09:13:50,639 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader493#818710196] 09:13:50,641 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 09:13:50,641 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:50,642 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]]} 09:13:50,642 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:13:50,642 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 09:13:50,642 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 09:13:50,642 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 09:13:50,642 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 09:13:50,642 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} 09:13:50,642 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 09:13:50,642 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 09:13:50,642 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 09:13:50,642 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior494#686762460] 09:13:50,643 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower495#298910605] 09:13:50,643 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader496#949755118] 09:13:50,644 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 09:13:50,645 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:50,645 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 09:13:50,646 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader499 09:13:50,646 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader499 09:13:50,647 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 09:13:50,647 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior497#-927091553] 09:13:50,648 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower498#1398141583] 09:13:50,648 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader499#667988184] 09:13:50,649 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 09:13:50,649 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:50,650 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 09:13:50,650 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]]} 09:13:50,650 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:13:50,650 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:13:50,650 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:13:50,650 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:13:50,650 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:13:50,650 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} 09:13:50,650 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:13:50,650 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 09:13:50,650 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 09:13:50,651 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior500#-1263438672] 09:13:50,651 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower501#787016152] 09:13:50,651 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader502#-1679589959] 09:13:50,653 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 09:13:50,653 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:50,653 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 09:13:50,654 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]]} 09:13:50,654 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 09:13:50,654 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} 09:13:50,654 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:13:50,654 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior503#-400537743] 09:13:50,655 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower504#2146850703] 09:13:50,655 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader505#1419809746] 09:13:50,656 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [08/25/2025 21:13:50.657] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@6cd92c0e [INFO] [pekkoDeadLetter][08/25/2025 21:13:50.657] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:13:50,657 PM [test-pekko.actor.default-dispatcher-9] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:13:50,658 PM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 09:13:50,658 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 09:13:50,658 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 09:13:50,659 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 09:13:50,659 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 09:13:50,659 PM [test-pekko.actor.default-dispatcher-8] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 09:13:50,659 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 09:13:50,659 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 09:13:50,660 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] PropertiesTermInfoStore - /tmp/junit-17407803419117736564/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 09:13:50,660 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-17407803419117736564/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 09:13:50,660 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-17407803419117736564/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 09:13:50,660 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 09:13:50,660 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 09:13:50,661 PM [test-pekko.actor.default-dispatcher-9] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 09:13:50,663 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 09:13:50,663 PM [test-pekko.actor.default-dispatcher-9] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 09:13:50,663 PM [test-pekko.actor.default-dispatcher-9] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: taking snapshot to clear Pekko persistence to 1 09:13:50,663 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 09:13:50,663 PM [test-pekko.actor.default-dispatcher-9] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Taking snapshot on entry with index -1 09:13:50,663 PM [test-pekko.actor.default-dispatcher-9] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 09:13:50,663 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-17407803419117736564/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068ACD20E-278DB4BF.tmp 09:13:50,666 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-17407803419117736564/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068ACD20E-278DB4BF.v1 09:13:50,666 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-17407803419117736564/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068ACD20E-278DB4BF.v1 09:13:50,666 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-17407803419117736564/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 09:13:50,666 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-17407803419117736564/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 09:13:50,666 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-17407803419117736564/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 09:13:50,666 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-25T21:13:50.663598271Z, file=/tmp/junit-17407803419117736564/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068ACD20E-278DB4BF.v1, size=419, entryCompress=NONE, stateCompress=NONE} 09:13:50,666 PM [test-pekko.actor.default-dispatcher-9] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot completed in 3.054 ms, resetting timer for the next recovery snapshot 09:13:50,666 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed and cannot restore from snapshot 09:13:50,666 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 09:13:50,666 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 09:13:50,666 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 09:13:50,666 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 09:13:50,666 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal recovery completedin 161.8 μs with journalIndex=1 09:13:50,666 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Journal recovery completed and cannot restore from snapshot 09:13:50,667 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: ignoring DeleteMessagesSuccess(1) 09:13:50,667 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 09:13:50,667 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 09:13:50,667 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 09:13:50,667 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 09:13:50,667 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 09:13:50,667 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 09:13:50,667 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 09:13:50,667 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 09:13:50,667 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 09:13:50,667 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 09:13:50,667 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 09:13:50,667 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:13:50,667 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 09:13:50,667 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 09:13:50,667 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 09:13:50,667 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 09:13:50,667 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 09:13:50,667 PM [test-pekko.actor.default-dispatcher-9] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 09:13:50,667 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 3 commands after 8.374 ms 09:13:50,668 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 09:13:50,672 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 3 completion(s) pending 09:13:50,672 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 3 completion(s) 09:13:50,672 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 3 commands in 4.756 ms 09:13:50,672 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 09:13:50,672 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 2.020 μs 09:13:50,672 PM [test-pekko.actor.default-dispatcher-9] [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/0x00000007c092c228@111f2bdb} 09:13:50,672 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 09:13:50,672 PM [test-pekko.actor.default-dispatcher-9] [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/0x00000007c092c228@111f2bdb} 09:13:50,672 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 09:13:50,672 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 09:13:50,672 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 09:13:50,672 PM [test-pekko.actor.default-dispatcher-9] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 09:13:50,672 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 132.3 μs 09:13:50,672 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 09:13:50,672 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 09:13:50,672 PM [test-pekko.actor.default-dispatcher-9] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 09:13:50,673 PM [test-pekko.actor.default-dispatcher-9] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 09:13:50,673 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 09:13:50,673 PM [test-pekko.actor.default-dispatcher-9] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 09:13:50,673 PM [test-pekko.actor.default-dispatcher-9] [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/0x00000007c092c228@111f2bdb} 09:13:50,673 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d551403] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-17407803419117736564/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068ACD20E-281D796D.tmp 09:13:50,673 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 5.111 ms 09:13:50,673 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 09:13:50,673 PM [test-pekko.actor.default-dispatcher-9] [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'. [WARN] [08/25/2025 21:13:50.673] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][08/25/2025 21:13:50.673] [test-pekko.actor.default-dispatcher-9] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:13:50,675 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d551403] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-17407803419117736564/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068ACD20E-281D796D.v1 09:13:50,675 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d551403] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-17407803419117736564/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068ACD20E-278DB4BF.v1 09:13:50,675 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d551403] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-17407803419117736564/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068ACD20E-281D796D.v1 09:13:50,675 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d551403] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-17407803419117736564/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 09:13:50,675 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d551403] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-17407803419117736564/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 09:13:50,675 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d551403] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-17407803419117736564/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 09:13:50,675 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d551403] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-25T21:13:50.663598271Z, file=/tmp/junit-17407803419117736564/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068ACD20E-278DB4BF.v1, size=419, entryCompress=NONE, stateCompress=NONE} 09:13:50,675 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d551403] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-08-25T21:13:50.673020269Z, file=/tmp/junit-17407803419117736564/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068ACD20E-281D796D.v1, size=539, entryCompress=NONE, stateCompress=NONE} 09:13:50,675 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d551403] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 09:13:50,675 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 09:13:50,675 PM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-08-25T21:13:50.673020269Z 09:13:50,675 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 09:13:50,675 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 2.891 ms 09:13:50,675 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 09:13:50,675 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 09:13:50,675 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 09:13:50,675 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 09:13:50,675 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 92.80 μs 09:13:50,676 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 09:13:50,676 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 09:13:50,818 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-17407803419117736564/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068ACD20E-281D796D.v1 09:13:50,818 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-17407803419117736564/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 09:13:50,818 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-17407803419117736564/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 09:13:50,818 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-17407803419117736564/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 09:13:50,819 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-08-25T21:13:50.673020269Z, file=/tmp/junit-17407803419117736564/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068ACD20E-281D796D.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 09:13:50,820 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior506#902555426] 09:13:50,831 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower507#-334843783] 09:13:50,832 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader508#729409004] 09:13:50,832 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 09:13:50,832 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#828,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159]/waiting 09:13:50,832 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 156.6 ms 09:13:50,832 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 11.80 μs 09:13:50,832 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 09:13:50,832 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 09:13:50,833 PM [test-pekko.actor.default-dispatcher-9] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 09:13:50,833 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 09:13:50,833 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 09:13:50,837 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 09:13:50,837 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:50,838 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 09:13:50,839 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]]} 09:13:50,840 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 09:13:50,840 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} 09:13:50,840 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 09:13:50,841 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior509#1884131935] 09:13:50,851 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower510#-796224227] 09:13:50,852 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader511#-1026440770] 09:13:50,855 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 09:13:50,856 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:50,856 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 09:13:50,857 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 09:13:50,857 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 09:13:50,857 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 09:13:50,857 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 09:13:50,858 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior512#1626557782] 09:13:50,868 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower513#1848908823] 09:13:50,869 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader514#-389642245] 09:13:50,873 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 09:13:50,873 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:50,874 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 09:13:50,875 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]]} 09:13:50,875 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:13:50,875 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 09:13:50,875 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:13:50,875 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 09:13:50,875 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 09:13:50,875 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 09:13:50,875 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 09:13:50,875 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 09:13:50,875 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 09:13:50,875 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} 09:13:50,876 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 09:13:50,876 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 09:13:50,876 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:13:50,876 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:13:50,876 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 09:13:50,876 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 09:13:50,876 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:13:50,876 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:13:50,876 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 09:13:50,876 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 09:13:50,877 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior515#2005622302] 09:13:50,888 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower516#-1538236992] 09:13:50,888 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader517#-1597388425] 09:13:50,891 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 09:13:50,892 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:50,892 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 09:13:50,892 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 09:13:50,893 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior518#2127707190] 09:13:50,904 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower519#1816614884] 09:13:50,904 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader520#1712264113] 09:13:50,907 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 09:13:50,907 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:50,908 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:13:50,908 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:13:50,908 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:13:50,908 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:13:50,909 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 09:13:50,910 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]]} 09:13:50,910 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 09:13:50,910 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:13:50,911 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 09:13:50,911 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 09:13:50,911 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 09:13:50,911 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 09:13:50,911 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} 09:13:50,911 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 09:13:50,912 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 09:13:50,912 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:13:50,912 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:13:50,915 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior521#597097673] 09:13:50,926 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower522#1249443423] 09:13:50,926 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader523#-1759649320] 09:13:50,930 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 09:13:50,930 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:50,931 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 09:13:50,932 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]]} 09:13:50,932 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 09:13:50,933 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} 09:13:50,933 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:13:50,933 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 09:13:50,934 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]]} 09:13:50,934 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 09:13:50,935 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} 09:13:50,935 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 09:13:50,935 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 09:13:50,936 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]]} 09:13:50,936 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 09:13:50,936 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} 09:13:50,936 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 09:13:50,936 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior524#-2105135909] 09:13:50,947 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower525#736224690] 09:13:50,947 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader526#1877746927] 09:13:50,950 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 09:13:50,950 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:51,150 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:13:51,150 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.171.59:17355, Removed) 09:13:51,150 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 09:13:51,150 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 09:13:51,150 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 09:13:51,150 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 09:13:51,151 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior527#-1331359022] 09:13:51,161 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower528#133206450] 09:13:51,162 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader529#-1981344821] 09:13:51,166 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:51,166 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 09:13:51,367 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:13:51,367 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior530#529670248] 09:13:51,378 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower531#63898022] 09:13:51,379 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader532#-714328974] 09:13:51,382 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 09:13:51,383 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:51,384 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 09:13:51,385 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 09:13:51,385 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior533#-805374945] 09:13:51,396 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower534#-1748126963] 09:13:51,396 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader535#-1559297227] 09:13:51,398 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 09:13:51,398 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:51,399 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]]} 09:13:51,399 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:13:51,399 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 09:13:51,399 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 09:13:51,399 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 09:13:51,399 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 09:13:51,399 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 09:13:51,399 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} 09:13:51,400 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 09:13:51,400 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 09:13:51,400 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:13:51,400 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:13:51,400 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 09:13:51,400 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 09:13:51,400 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:13:51,400 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:13:51,400 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 09:13:51,400 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 09:13:51,400 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 09:13:51,400 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 09:13:51,401 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior536#1004026267] 09:13:51,411 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower537#-945613491] 09:13:51,411 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader538#-161897898] 09:13:51,415 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 09:13:51,415 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:51,415 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:13:51,416 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:13:51,416 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:13:51,416 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:13:51,417 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]]} 09:13:51,418 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} 09:13:51,419 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior539#-1735791612] 09:13:51,430 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower540#322721111] 09:13:51,430 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader541#755456967] 09:13:51,433 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 09:13:51,434 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:51,434 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 09:13:51,435 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]]} 09:13:51,435 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:13:51,435 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 09:13:51,436 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 09:13:51,436 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior542#-74560356] 09:13:51,447 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower543#-345276648] 09:13:51,447 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader544#252631844] 09:13:51,450 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [08/25/2025 21:13:51.451] [test-pekko.actor.default-dispatcher-9] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@6a904a45 [INFO] [pekkoDeadLetter][08/25/2025 21:13:51.451] [test-pekko.actor.default-dispatcher-9] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:13:51,452 PM [test-pekko.actor.default-dispatcher-9] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:13:51,452 PM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 09:13:51,452 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:13:51,452 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:13:51,452 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 09:13:51,453 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 09:13:51,453 PM [test-pekko.actor.default-dispatcher-8] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 09:13:51,453 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 09:13:51,453 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 09:13:51,454 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 09:13:51,454 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 09:13:51,454 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 09:13:51,454 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 09:13:51,454 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:13:51,454 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 09:13:51,462 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:13:51,462 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 09:13:51,462 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 09:13:51,462 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 09:13:51,462 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Taking snapshot on entry with index -1 09:13:51,462 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 09:13:51,462 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068ACD20F-1B8D4D2A.tmp 09:13:51,464 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068ACD20F-1B8D4D2A.v1 09:13:51,464 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068ACD20F-1B8D4D2A.v1 09:13:51,464 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:13:51,464 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 09:13:51,464 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 09:13:51,464 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-25T21:13:51.462245162Z, file=/tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068ACD20F-1B8D4D2A.v1, size=419, entryCompress=NONE, stateCompress=NONE} 09:13:51,464 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot completed in 2.432 ms, resetting timer for the next recovery snapshot 09:13:51,464 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 09:13:51,464 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 09:13:51,464 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 09:13:51,464 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 09:13:51,464 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 09:13:51,465 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 174.6 μs with journalIndex=1 09:13:51,465 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 09:13:51,465 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 09:13:51,566 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068ACD20F-1B8D4D2A.v1 09:13:51,566 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:13:51,566 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 09:13:51,566 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 09:13:51,567 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-25T21:13:51.462245162Z, file=/tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068ACD20F-1B8D4D2A.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 09:13:51,567 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 09:13:51,567 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 09:13:51,567 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 09:13:51,567 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 09:13:51,567 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 09:13:51,567 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 09:13:51,567 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 09:13:51,567 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 09:13:51,567 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 09:13:51,567 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 114.5 ms 09:13:51,567 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 09:13:51,568 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 09:13:51,568 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:13:51,568 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 09:13:51,568 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 09:13:51,568 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 09:13:51,568 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 09:13:51,568 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 09:13:51,568 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 09:13:51,568 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 09:13:51,568 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 09:13:51,568 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 09:13:51,568 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 09:13:51,568 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 09:13:51,568 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 09:13:51,568 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 09:13:51,568 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 09:13:51,568 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 09:13:51,571 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 09:13:51,571 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 3.420 ms 09:13:51,571 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 09:13:51,571 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 4.780 μs 09:13:51,571 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 09:13:51,571 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c092c228@5d630bcd} 09:13:51,571 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 09:13:51,573 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 09:13:51,573 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 09:13:51,573 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 09:13:51,573 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 1.702 ms 09:13:51,573 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 09:13:51,573 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 09:13:51,573 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c092c228@5d630bcd} 09:13:51,573 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 09:13:51,573 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 09:13:51,573 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 09:13:51,573 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 09:13:51,573 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 09:13:51,573 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 09:13:51,573 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 09:13:51,573 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d402692] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068ACD20F-222E21F7.tmp 09:13:51,573 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c092c228@5d630bcd} 09:13:51,573 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 5.211 ms [WARN] [08/25/2025 21:13:51.573] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][08/25/2025 21:13:51.574] [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'. 09:13:51,574 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'. 09:13:51,575 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d402692] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068ACD20F-222E21F7.v1 09:13:51,576 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d402692] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068ACD20F-222E21F7.v1 09:13:51,576 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d402692] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068ACD20F-1B8D4D2A.v1 09:13:51,576 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d402692] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:13:51,576 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d402692] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 09:13:51,576 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d402692] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 09:13:51,576 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d402692] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-25T21:13:51.462245162Z, file=/tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068ACD20F-1B8D4D2A.v1, size=419, entryCompress=NONE, stateCompress=NONE} 09:13:51,576 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d402692] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-25T21:13:51.573448695Z, file=/tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068ACD20F-222E21F7.v1, size=573, entryCompress=NONE, stateCompress=NONE} 09:13:51,576 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d402692] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 09:13:51,576 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 09:13:51,576 PM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-08-25T21:13:51.573448695Z 09:13:51,576 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 09:13:51,576 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 09:13:51,576 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.619 ms 09:13:51,576 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 09:13:51,576 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 09:13:51,576 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 09:13:51,577 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 135.7 μs 09:13:51,577 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 09:13:51,577 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 09:13:51,770 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068ACD20F-222E21F7.v1 09:13:51,770 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:13:51,770 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 09:13:51,770 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 09:13:51,770 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-25T21:13:51.573448695Z, file=/tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068ACD20F-222E21F7.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 09:13:51,772 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 09:13:51,783 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#831,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160]/waiting 09:13:51,783 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 206.7 ms 09:13:51,783 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 43.78 μs 09:13:51,783 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 09:13:51,784 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 09:13:51,784 PM [test-pekko.actor.default-dispatcher-8] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 09:13:51,784 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 09:13:51,784 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 09:13:51,785 PM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 09:13:51,785 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:13:51,785 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:13:51,786 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 09:13:51,787 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 09:13:51,787 PM [test-pekko.actor.default-dispatcher-8] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 09:13:51,787 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 09:13:51,787 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands [WARN] [08/25/2025 21:13:51.787] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@727a04ed [INFO] [pekkoDeadLetter][08/25/2025 21:13:51.787] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:13:51,787 PM [test-pekko.actor.default-dispatcher-8] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:13:51,789 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:13:51,789 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068ACD20F-222E21F7.v1 09:13:51,789 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:13:51,789 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 09:13:51,789 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 09:13:51,789 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-25T21:13:51.573448695Z, file=/tmp/junit-14778084354544732577/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068ACD20F-222E21F7.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 09:13:51,789 PM [test-pekko.actor.default-dispatcher-8] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 09:13:51,790 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-08-25T21:13:51.573448695Z 09:13:51,790 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:13:51,790 PM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 140.9 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 09:13:51,790 PM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 247.5 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 09:13:51,790 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 09:13:51,790 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:13:51,790 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 09:13:51,790 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 09:13:51,791 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 09:13:51,791 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 09:13:51,791 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 09:13:51,791 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 103.6 μs with journalIndex=4 09:13:51,791 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 09:13:51,791 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior545#-311565607] 09:13:51,802 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower546#562150473] 09:13:51,802 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader547#-58314585] 09:13:51,802 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 09:13:51,802 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#836,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161]/waiting 09:13:51,802 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 15.19 ms 09:13:51,802 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 13.16 μs 09:13:51,802 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 09:13:51,802 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 09:13:51,802 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 09:13:51,802 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 09:13:51,803 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 09:13:51,809 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 09:13:51,809 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:52,109 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 09:13:52,239 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:13:52,239 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 09:13:52,490 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 09:13:52,690 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 09:13:52,690 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior548#1615346765] 09:13:52,702 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower549#951498256] 09:13:52,702 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader550#-1618336683] 09:13:52,706 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:13:52,717 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:13:52,717 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 09:13:52,717 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 09:13:52,717 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 09:13:52,717 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 09:13:52,718 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior551#1191249755] 09:13:52,728 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower552#1801249181] 09:13:52,728 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader553#-5437663] [INFO] [08/25/2025 21:13:52.729] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 09:13:52,730 PM [test-pekko.actor.default-dispatcher-7] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [08/25/2025 21:13:52.730] [test-pekko.actor.default-dispatcher-8] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.59:17355) [INFO] [pekkoDeadLetter][08/25/2025 21:13:52.731] [test-pekko.actor.default-dispatcher-8] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1850499769] 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'. 09:13:52,731 PM [test-pekko.actor.default-dispatcher-8] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1850499769] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [08/25/2025 21:13:52.731] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.59:17355] - Exiting completed 09:13:52,731 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.59:17355] - Exiting completed [INFO] [08/25/2025 21:13:52.731] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.59:17355] - Shutting down... 09:13:52,733 PM [test-pekko.actor.default-dispatcher-9] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.59:17355] - Shutting down... 09:13:52,733 PM [test-pekko.actor.default-dispatcher-9] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.59:17355] - Successfully shut down [INFO] [08/25/2025 21:13:52.732] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.59:17355] - Successfully shut down [INFO] [08/25/2025 21:13:52.734] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.171.59:17355/system/remoting-terminator] Shutting down remote daemon. 09:13:52,735 PM [test-pekko.actor.default-dispatcher-9] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [08/25/2025 21:13:52.734] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.171.59:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 09:13:52,735 PM [test-pekko.actor.default-dispatcher-9] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [08/25/2025 21:13:52.737] [test-pekko.remote.default-remote-dispatcher-11] [pekko://test@10.30.171.59:17355/system/remoting-terminator] Remoting shut down. [DEBUG] [08/25/2025 21:13:52.737] [test-pekko.actor.internal-dispatcher-5] [EventStream] shutting down: StandardOutLogger 09:13:52,737 PM [test-pekko.actor.default-dispatcher-9] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down.