[DEBUG] [10/16/2025 19:51:12.032] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 07:51:12,32 PM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [10/16/2025 19:51:12.032] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [10/16/2025 19:51:12.032] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [10/16/2025 19:51:12.054] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.167:17355] with UID [-9064849093944363371] 07:51:12,54 PM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.167:17355] with UID [-9064849093944363371] [INFO] [10/16/2025 19:51:12.055] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.167:17355] - Starting up, Pekko version [1.0.3] ... 07:51:12,55 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.167:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [10/16/2025 19:51:12.057] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.167:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [10/16/2025 19:51:12.057] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.167:17355] - Started up successfully 07:51:12,57 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.167:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 07:51:12,57 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.167:17355] - Started up successfully [INFO] [10/16/2025 19:51:12.058] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.167:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [10/16/2025 19:51:12.058] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.167:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 07:51:12,58 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.167:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 07:51:12,58 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.167:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 07:51:12,71 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:12,152 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 07:51:12,153 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 07:51:12,153 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior337#-1387777624] 07:51:12,155 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower338#449195620] 07:51:12,155 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader339#1769914550] 07:51:12,158 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:12,160 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]]} 07:51:12,160 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:51:12,161 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 07:51:12,161 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 07:51:12,161 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:51:12,161 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 07:51:12,161 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} 07:51:12,161 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 07:51:12,161 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 07:51:12,163 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:51:12,163 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:51:12,163 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 07:51:12,164 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior340#1801157716] 07:51:12,164 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower341#-1905365034] 07:51:12,164 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader342#121569702] 07:51:12,167 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:12,168 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 07:51:12,168 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 07:51:12,168 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior343#625352144] 07:51:12,169 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower344#-193363996] 07:51:12,169 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader345#625466648] 07:51:12,171 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:12,172 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 07:51:12,172 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 07:51:12,173 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} 07:51:12,173 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 07:51:12,173 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 07:51:12,174 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 07:51:12,174 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 07:51:12,174 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. 07:51:12,174 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 07:51:12,175 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 07:51:12,175 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 07:51:12,176 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 07:51:12,176 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior346#-1791318467] 07:51:12,177 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower347#-1949338253] 07:51:12,177 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader348#-1054077372] 07:51:12,179 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:12,179 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:51:12,180 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:51:12,180 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:12,180 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 07:51:12,180 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 07:51:12,180 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 07:51:12,180 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 07:51:12,181 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 07:51:12,181 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior349#2096306041] 07:51:12,181 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower350#1988143259] 07:51:12,181 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader351#1898337156] 07:51:12,184 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:12,184 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 07:51:12,185 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior352#541434098] 07:51:12,185 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower353#-1089644487] 07:51:12,185 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader354#-238169334] 07:51:12,188 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:12,188 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 07:51:12,189 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 07:51:12,189 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior355#35861631] 07:51:12,189 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower356#-860264190] 07:51:12,189 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader357#1561765432] 07:51:12,192 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 07:51:12,192 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:12,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} 07:51:12,194 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:51:12,194 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:51:12,194 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:51:12,194 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 07:51:12,194 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 07:51:12,194 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 07:51:12,195 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 07:51:12,197 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 07:51:12,197 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior358#-844187498] 07:51:12,198 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower359#-1938644325] 07:51:12,198 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader360#-1656307921] 07:51:12,201 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 07:51:12,201 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:12,201 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]]} 07:51:12,201 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 07:51:12,202 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} 07:51:12,202 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 07:51:12,202 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior361#-1249024164] 07:51:12,203 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower362#115524213] 07:51:12,203 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader363#-601257115] 07:51:12,205 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 07:51:12,205 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:12,206 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:51:12,206 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:51:12,206 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:51:12,206 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:51:12,206 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 07:51:12,206 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 07:51:12,206 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 07:51:12,207 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:51:12,207 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 07:51:12,207 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]]} 07:51:12,207 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 07:51:12,208 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} 07:51:12,208 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 07:51:12,208 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior364#1873606154] 07:51:12,208 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower365#1749654011] 07:51:12,209 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader366#-786485676] 07:51:12,211 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:12,212 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 07:51:12,212 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior367#-791227766] 07:51:12,213 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower368#2081871841] 07:51:12,213 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader369#-1113480824] 07:51:12,215 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 07:51:12,215 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:12,216 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 07:51:12,216 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]]} 07:51:12,216 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:51:12,216 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:51:12,216 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:51:12,216 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:51:12,216 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:51:12,216 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} 07:51:12,216 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:51:12,217 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:51:12,217 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:51:12,217 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior370#1017987680] 07:51:12,217 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower371#-1621183723] 07:51:12,218 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader372#-901209621] 07:51:12,233 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 07:51:12,233 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:12,234 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]]} 07:51:12,234 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:51:12,234 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 07:51:12,234 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 07:51:12,234 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:51:12,234 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 07:51:12,234 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} 07:51:12,235 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:51:12,235 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 07:51:12,235 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:51:12,235 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:51:12,235 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:51:12,235 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:51:12,235 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]]} 07:51:12,236 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:51:12,236 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 07:51:12,236 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 07:51:12,236 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 07:51:12,236 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 07:51:12,236 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 07:51:12,236 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} 07:51:12,236 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 07:51:12,236 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 07:51:12,236 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:51:12,236 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:51:12,236 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior373#-829313734] 07:51:12,237 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower374#620833986] 07:51:12,237 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader375#-1313564965] 07:51:12,240 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 07:51:12,240 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:12,240 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 07:51:12,241 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 07:51:12,241 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} 07:51:12,241 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 07:51:12,241 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior376#1063796949] 07:51:12,242 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower377#-1700962812] 07:51:12,242 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader378#-300349712] 07:51:12,244 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:12,246 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior379#-1573761946] 07:51:12,247 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower380#-1968648353] 07:51:12,247 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader381#-205456273] 07:51:12,249 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 07:51:12,249 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:12,249 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 07:51:12,250 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 07:51:12,250 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]]} 07:51:12,250 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:51:12,250 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:51:12,250 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:51:12,250 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:51:12,251 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:51:12,251 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} 07:51:12,251 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:51:12,251 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 07:51:12,251 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 07:51:12,251 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 07:51:12,251 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 07:51:12,251 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior382#-1941532521] 07:51:12,252 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower383#384618648] 07:51:12,252 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader384#-995262033] 07:51:12,254 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [10/16/2025 19:51:12.256] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@5243c08f [INFO] [pekkoDeadLetter][10/16/2025 19:51:12.257] [test-pekko.actor.default-dispatcher-11] [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'. 07:51:12,260 PM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:51:12,263 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 07:51:12,263 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 07:51:12,263 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 07:51:12,263 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 07:51:12,264 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 07:51:12,264 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 07:51:12,264 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 07:51:12,264 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 07:51:12,265 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/junit-14403483820868759800/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 07:51:12,265 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14403483820868759800/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:51:12,265 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14403483820868759800/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:51:12,265 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 07:51:12,265 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:51:12,265 PM [test-pekko.actor.default-dispatcher-6] [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 07:51:12,292 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:51:12,292 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 07:51:12,292 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 07:51:12,292 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 07:51:12,292 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 07:51:12,292 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 07:51:12,292 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-14403483820868759800/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F14CB0-11758CE9.tmp 07:51:12,337 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-14403483820868759800/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F14CB0-11758CE9.v1 07:51:12,337 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14403483820868759800/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:51:12,337 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-14403483820868759800/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F14CB0-11758CE9.v1 07:51:12,337 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14403483820868759800/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:51:12,337 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14403483820868759800/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:51:12,337 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-10-16T19:51:12.292916457Z, file=/tmp/junit-14403483820868759800/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F14CB0-11758CE9.v1, size=419, entryCompress=NONE, stateCompress=NONE} 07:51:12,337 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot completed in 45.17 ms, resetting timer for the next recovery snapshot 07:51:12,338 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 07:51:12,338 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 07:51:12,338 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 07:51:12,338 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 07:51:12,338 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 07:51:12,338 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: journal recovery completedin 179.7 μs with journalIndex=1 07:51:12,338 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 07:51:12,339 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 07:51:12,439 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14403483820868759800/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:51:12,439 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-14403483820868759800/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F14CB0-11758CE9.v1 07:51:12,440 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14403483820868759800/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:51:12,440 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14403483820868759800/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:51:12,440 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-10-16T19:51:12.292916457Z, file=/tmp/junit-14403483820868759800/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F14CB0-11758CE9.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 07:51:12,440 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 07:51:12,440 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 07:51:12,440 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:51:12,440 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 07:51:12,440 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:51:12,441 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 07:51:12,441 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:51:12,441 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 07:51:12,441 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 07:51:12,441 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 176.5 ms 07:51:12,441 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:51:12,441 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 07:51:12,441 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 07:51:12,441 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 07:51:12,441 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 07:51:12,441 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 07:51:12,441 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 07:51:12,441 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 07:51:12,441 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 07:51:12,441 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 07:51:12,441 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 07:51:12,441 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 07:51:12,479 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 07:51:12,479 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 07:51:12,479 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 38.19 ms 07:51:12,479 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:51:12,479 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 3.250 μs 07:51:12,479 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c0909de0@54aeb554} 07:51:12,479 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 07:51:12,481 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 07:51:12,481 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 07:51:12,481 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 2.098 ms 07:51:12,481 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 07:51:12,481 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 07:51:12,481 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:51:12,481 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 07:51:12,481 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 07:51:12,481 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 07:51:12,481 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 07:51:12,481 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 07:51:12,481 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 07:51:12,481 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c0909de0@54aeb554} 07:51:12,481 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d554781] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-14403483820868759800/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F14CB0-1CB5CAFD.tmp 07:51:12,481 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 40.15 ms [WARN] [10/16/2025 19:51:12.481] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][10/16/2025 19:51:12.482] [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'. 07:51:12,482 PM [test-pekko.actor.default-dispatcher-14] [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'. 07:51:12,485 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d554781] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-14403483820868759800/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F14CB0-1CB5CAFD.v1 07:51:12,485 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d554781] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14403483820868759800/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:51:12,485 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d554781] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-14403483820868759800/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F14CB0-11758CE9.v1 07:51:12,485 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d554781] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14403483820868759800/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:51:12,485 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d554781] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14403483820868759800/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:51:12,485 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d554781] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-14403483820868759800/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F14CB0-1CB5CAFD.v1 07:51:12,485 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d554781] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-10-16T19:51:12.292916457Z, file=/tmp/junit-14403483820868759800/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F14CB0-11758CE9.v1, size=419, entryCompress=NONE, stateCompress=NONE} 07:51:12,485 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d554781] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-10-16T19:51:12.481676029Z, file=/tmp/junit-14403483820868759800/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F14CB0-1CB5CAFD.v1, size=555, entryCompress=NONE, stateCompress=NONE} 07:51:12,485 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d554781] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 07:51:12,485 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 07:51:12,485 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-10-16T19:51:12.481676029Z 07:51:12,485 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 07:51:12,486 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 4.525 ms 07:51:12,486 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 07:51:12,486 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 07:51:12,486 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 07:51:12,486 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 154.6 μs 07:51:12,486 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 07:51:12,486 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 07:51:12,486 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 07:51:12,642 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14403483820868759800/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:51:12,642 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14403483820868759800/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:51:12,642 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14403483820868759800/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:51:12,642 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-14403483820868759800/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F14CB0-1CB5CAFD.v1 07:51:12,642 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-10-16T19:51:12.481676029Z, file=/tmp/junit-14403483820868759800/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F14CB0-1CB5CAFD.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 07:51:12,645 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior385#-71470725] 07:51:12,656 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower386#-47630920] 07:51:12,656 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader387#1152001682] 07:51:12,657 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 07:51:12,657 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#852,testCaptureSnapshotOnLastEntryInAppendEntries-writer-155]/waiting 07:51:12,657 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 171.4 ms 07:51:12,657 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 12.16 μs 07:51:12,657 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 07:51:12,657 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 07:51:12,657 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 07:51:12,658 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 07:51:12,658 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 07:51:12,662 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:12,663 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior388#-945061016] 07:51:12,664 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower389#-725274876] 07:51:12,664 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader390#-90872590] 07:51:12,667 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 07:51:12,667 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:12,668 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 07:51:12,668 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 07:51:12,670 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior391#-830754304] 07:51:12,670 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower392#-1079459179] 07:51:12,671 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader393#1978076898] 07:51:12,674 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 07:51:12,674 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:12,674 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 07:51:12,674 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]]} 07:51:12,674 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:51:12,674 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:51:12,674 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:51:12,675 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:51:12,675 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:51:12,675 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} 07:51:12,675 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:51:12,675 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:51:12,675 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:51:12,676 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior394#584904820] 07:51:12,676 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower395#-495620260] 07:51:12,676 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader396#701745908] 07:51:12,679 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 07:51:12,679 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:12,679 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 07:51:12,680 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]]} 07:51:12,680 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 07:51:12,680 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} 07:51:12,680 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:51:12,680 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 07:51:12,681 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]]} 07:51:12,681 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 07:51:12,681 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} 07:51:12,682 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 07:51:12,682 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior397#968596432] 07:51:12,682 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower398#34910739] 07:51:12,683 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader399#1577002084] 07:51:12,686 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:12,686 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior400#1645472295] 07:51:12,687 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower401#1149333588] 07:51:12,687 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader402#1621238306] 07:51:12,689 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 07:51:12,689 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:12,690 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 07:51:12,690 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]]} 07:51:12,691 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 07:51:12,691 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} 07:51:12,691 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:51:12,691 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:51:12,692 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]]} 07:51:12,692 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 07:51:12,692 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} 07:51:12,692 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:51:12,692 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]]} 07:51:12,693 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 07:51:12,693 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} 07:51:12,693 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:51:12,693 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior403#-421505711] 07:51:12,694 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower404#1888637706] 07:51:12,694 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader405#-223463869] 07:51:12,696 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 07:51:12,696 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:12,697 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]]} 07:51:12,697 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:51:12,697 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 07:51:12,697 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 07:51:12,697 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:51:12,697 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 07:51:12,697 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} 07:51:12,697 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 07:51:12,697 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 07:51:12,697 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 07:51:12,698 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior406#1887554329] 07:51:12,698 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower407#1422404385] 07:51:12,698 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader408#-309366467] 07:51:12,700 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 07:51:12,701 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:12,701 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 07:51:12,702 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader411 07:51:12,702 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader411 07:51:12,703 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 07:51:12,704 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior409#-2085521575] 07:51:12,704 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower410#65699394] 07:51:12,704 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader411#249937454] 07:51:12,706 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 07:51:12,707 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:12,707 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 07:51:12,707 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]]} 07:51:12,707 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:51:12,708 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:51:12,708 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:51:12,708 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:51:12,708 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:51:12,708 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} 07:51:12,708 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:51:12,708 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:51:12,708 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:51:12,708 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior412#-2111598822] 07:51:12,709 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower413#-1750054748] 07:51:12,709 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader414#-1790173918] 07:51:12,711 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 07:51:12,711 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:12,712 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 07:51:12,712 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]]} 07:51:12,712 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 07:51:12,712 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} 07:51:12,712 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:51:12,712 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior415#521252427] 07:51:12,713 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower416#-1255922078] 07:51:12,713 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader417#-1775721760] 07:51:12,715 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 07:51:12,716 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 07:51:12,716 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 07:51:12,716 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 07:51:12,716 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 07:51:12,717 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 07:51:12,717 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 [WARN] [10/16/2025 19:51:12.717] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@7f2fe88b [INFO] [pekkoDeadLetter][10/16/2025 19:51:12.717] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:51:12,717 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:51:12,717 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 07:51:12,717 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 07:51:12,718 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/junit-2972274638177515939/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 07:51:12,719 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2972274638177515939/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 07:51:12,719 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2972274638177515939/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 07:51:12,719 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 07:51:12,719 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 07:51:12,719 PM [test-pekko.actor.default-dispatcher-14] [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 07:51:12,757 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 07:51:12,757 PM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 07:51:12,757 PM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: taking snapshot to clear Pekko persistence to 1 07:51:12,757 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 07:51:12,757 PM [test-pekko.actor.default-dispatcher-14] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Taking snapshot on entry with index -1 07:51:12,758 PM [test-pekko.actor.default-dispatcher-6] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$1(FollowerTest.java:1290) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:197) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:164) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:145) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:232) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) [ERROR] [10/16/2025 19:51:12.758] [test-pekko.actor.internal-dispatcher-3] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$1(FollowerTest.java:1290) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:197) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:164) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:145) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:232) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 07:51:12,758 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#857,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156]/waiting 07:51:12,758 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 41.31 ms 07:51:12,758 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 13.84 μs 07:51:12,759 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 07:51:12,759 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 07:51:12,759 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 07:51:12,759 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 07:51:12,759 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks [WARN] [10/16/2025 19:51:12.759] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@647d0b98 [INFO] [pekkoDeadLetter][10/16/2025 19:51:12.760] [test-pekko.actor.default-dispatcher-14] [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. [4] 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'. 07:51:12,760 PM [test-pekko.actor.default-dispatcher-14] [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. [4] 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'. 07:51:12,760 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 07:51:12,760 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 07:51:12,760 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 07:51:12,761 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 07:51:12,761 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 07:51:12,761 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 07:51:12,761 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 07:51:12,761 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 07:51:12,763 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 07:51:12,764 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2972274638177515939/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 07:51:12,764 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2972274638177515939/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 07:51:12,764 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2972274638177515939/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 07:51:12,764 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 07:51:12,764 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 07:51:12,764 PM [test-pekko.actor.default-dispatcher-12] [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 07:51:12,764 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: restoring local TermInfo{term=1} 07:51:12,764 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 07:51:12,764 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: taking snapshot to clear Pekko persistence to 1 07:51:12,764 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 07:51:12,764 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Taking snapshot on entry with index -1 07:51:12,764 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 07:51:12,764 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-2972274638177515939/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068F14CB0-2D91451F.tmp 07:51:12,800 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-2972274638177515939/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068F14CB0-2D91451F.v1 07:51:12,800 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2972274638177515939/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 07:51:12,800 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-2972274638177515939/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068F14CB0-2D91451F.v1 07:51:12,800 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2972274638177515939/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 07:51:12,800 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2972274638177515939/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 07:51:12,800 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-10-16T19:51:12.764495135Z, file=/tmp/junit-2972274638177515939/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068F14CB0-2D91451F.v1, size=419, entryCompress=NONE, stateCompress=NONE} 07:51:12,800 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot completed in 36.56 ms, resetting timer for the next recovery snapshot 07:51:12,801 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed and cannot restore from snapshot 07:51:12,801 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 07:51:12,801 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 07:51:12,801 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 07:51:12,801 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 07:51:12,801 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal recovery completedin 283.0 μs with journalIndex=1 07:51:12,801 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Journal recovery completed and cannot restore from snapshot 07:51:12,802 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: ignoring DeleteMessagesSuccess(1) 07:51:12,802 PM [test-pekko.actor.default-dispatcher-12] [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]]} 07:51:12,802 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 07:51:12,802 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:51:12,802 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 07:51:12,802 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:51:12,802 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 07:51:12,802 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:51:12,802 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 07:51:12,802 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 07:51:12,802 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 07:51:12,802 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 07:51:12,802 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 40.84 ms 07:51:12,802 PM [test-pekko.actor.default-dispatcher-12] [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} 07:51:12,802 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 07:51:12,802 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 07:51:12,802 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 07:51:12,802 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 07:51:12,802 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 07:51:12,802 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 07:51:12,803 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 07:51:12,818 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 07:51:12,818 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 16.09 ms 07:51:12,818 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 07:51:12,818 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 3.300 μs 07:51:12,818 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:51:12,818 PM [test-pekko.actor.default-dispatcher-12] [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/0x00000007c0909de0@68efe47c} 07:51:12,819 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:51:12,819 PM [test-pekko.actor.default-dispatcher-12] [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/0x00000007c0909de0@68efe47c} 07:51:12,819 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 1 synchronized callback(s) 07:51:12,821 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 07:51:12,821 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 07:51:12,821 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 07:51:12,821 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 2.497 ms 07:51:12,821 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 07:51:12,821 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 07:51:12,821 PM [test-pekko.actor.default-dispatcher-12] [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] 07:51:12,821 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 07:51:12,821 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 07:51:12,821 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 07:51:12,821 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 07:51:12,821 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 07:51:12,821 PM [test-pekko.actor.default-dispatcher-12] [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/0x00000007c0909de0@68efe47c} 07:51:12,821 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d857411] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-2972274638177515939/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068F14CB0-30F9DAE6.tmp 07:51:12,821 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 18.69 ms [WARN] [10/16/2025 19:51:12.822] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][10/16/2025 19:51:12.822] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [5] 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'. 07:51:12,822 PM [test-pekko.actor.default-dispatcher-7] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [5] 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'. 07:51:12,855 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d857411] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-2972274638177515939/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068F14CB0-30F9DAE6.v1 07:51:12,855 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d857411] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2972274638177515939/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 07:51:12,855 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d857411] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-2972274638177515939/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068F14CB0-2D91451F.v1 07:51:12,856 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d857411] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-2972274638177515939/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068F14CB0-30F9DAE6.v1 07:51:12,856 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d857411] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2972274638177515939/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 07:51:12,856 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d857411] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2972274638177515939/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 07:51:12,856 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d857411] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-10-16T19:51:12.764495135Z, file=/tmp/junit-2972274638177515939/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068F14CB0-2D91451F.v1, size=419, entryCompress=NONE, stateCompress=NONE} 07:51:12,856 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d857411] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-10-16T19:51:12.821680870Z, file=/tmp/junit-2972274638177515939/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068F14CB0-30F9DAE6.v1, size=539, entryCompress=NONE, stateCompress=NONE} 07:51:12,856 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d857411] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 07:51:12,856 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 07:51:12,856 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-10-16T19:51:12.821680870Z 07:51:12,856 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 07:51:12,856 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 07:51:12,856 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 35.26 ms 07:51:12,856 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 07:51:12,856 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 07:51:12,856 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 07:51:12,856 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 07:51:12,856 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 181.6 μs 07:51:12,857 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 07:51:12,953 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2972274638177515939/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 07:51:12,953 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-2972274638177515939/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068F14CB0-30F9DAE6.v1 07:51:12,954 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2972274638177515939/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 07:51:12,954 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-2972274638177515939/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 07:51:12,954 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-10-16T19:51:12.821680870Z, file=/tmp/junit-2972274638177515939/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068F14CB0-30F9DAE6.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 07:51:12,955 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior418#1806367141] 07:51:12,966 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower419#1797245777] 07:51:12,967 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader420#1807315678] 07:51:12,967 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 07:51:12,967 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#858,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157]/waiting 07:51:12,967 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 110.5 ms 07:51:12,967 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 13.00 μs 07:51:12,967 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 07:51:12,967 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 07:51:12,967 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 07:51:12,967 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 07:51:12,967 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 07:51:12,972 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 07:51:12,972 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:12,973 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 07:51:12,974 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]]} 07:51:12,974 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 07:51:12,974 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} 07:51:12,974 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 07:51:12,975 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior421#1292676068] 07:51:12,985 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower422#1011914129] 07:51:12,986 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader423#1085599718] 07:51:12,990 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 07:51:12,990 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:12,991 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 07:51:12,992 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 07:51:12,992 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 07:51:12,992 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 07:51:12,993 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 07:51:12,993 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior424#-1146937508] 07:51:13,4 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower425#1289042559] 07:51:13,4 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader426#-504904541] 07:51:13,8 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 07:51:13,8 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:13,9 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 07:51:13,9 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]]} 07:51:13,10 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:51:13,10 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 07:51:13,10 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:51:13,10 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 07:51:13,10 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 07:51:13,10 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 07:51:13,10 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 07:51:13,10 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 07:51:13,10 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 07:51:13,10 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} 07:51:13,10 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 07:51:13,10 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 07:51:13,11 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:51:13,11 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:51:13,11 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:51:13,11 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:51:13,11 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:51:13,11 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:51:13,11 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 07:51:13,11 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 07:51:13,12 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior427#-107906944] 07:51:13,23 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower428#-624102438] 07:51:13,23 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader429#-664436759] 07:51:13,27 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 07:51:13,27 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:13,28 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 07:51:13,28 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 07:51:13,29 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior430#-540709207] 07:51:13,39 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower431#-376570968] 07:51:13,40 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader432#938708177] 07:51:13,43 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 07:51:13,43 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:13,44 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:51:13,44 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:51:13,44 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:51:13,44 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:51:13,45 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 07:51:13,46 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]]} 07:51:13,46 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 07:51:13,46 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:51:13,46 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 07:51:13,46 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 07:51:13,46 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 07:51:13,46 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 07:51:13,46 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} 07:51:13,47 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 07:51:13,47 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 07:51:13,47 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:51:13,47 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:51:13,48 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior433#667500376] 07:51:13,59 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower434#1015438607] 07:51:13,59 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader435#46754413] 07:51:13,62 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 07:51:13,62 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:13,63 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 07:51:13,64 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]]} 07:51:13,64 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 07:51:13,65 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} 07:51:13,65 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:51:13,65 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:51:13,66 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]]} 07:51:13,66 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 07:51:13,66 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} 07:51:13,67 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:51:13,67 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 07:51:13,67 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]]} 07:51:13,68 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 07:51:13,68 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} 07:51:13,68 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 07:51:13,69 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior436#-212519360] 07:51:13,80 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower437#-2108162642] 07:51:13,80 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader438#729173895] 07:51:13,84 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 07:51:13,84 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:13,284 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:51:13,284 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.167:17355, Removed) 07:51:13,285 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 07:51:13,285 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 07:51:13,285 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 07:51:13,285 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 07:51:13,285 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior439#569510987] 07:51:13,296 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower440#-478399378] 07:51:13,296 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader441#1806073866] 07:51:13,301 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:13,301 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 07:51:13,452 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:51:13,452 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior442#-1958417855] 07:51:13,463 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower443#-1167095521] 07:51:13,463 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader444#-1645471799] 07:51:13,467 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 07:51:13,467 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:13,469 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 07:51:13,469 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 07:51:13,470 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior445#48317613] 07:51:13,480 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower446#1207808700] 07:51:13,480 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader447#-782442249] 07:51:13,483 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 07:51:13,483 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:13,484 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]]} 07:51:13,484 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:51:13,484 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 07:51:13,484 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 07:51:13,484 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 07:51:13,484 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 07:51:13,485 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 07:51:13,485 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} 07:51:13,485 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 07:51:13,485 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 07:51:13,485 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:51:13,485 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:51:13,485 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:51:13,485 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:51:13,485 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:51:13,485 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:51:13,485 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 07:51:13,485 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 07:51:13,485 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 07:51:13,485 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 07:51:13,486 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior448#-1823304369] 07:51:13,497 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower449#578702656] 07:51:13,497 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader450#-1220191565] 07:51:13,501 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 07:51:13,502 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:13,502 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:51:13,503 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:51:13,503 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:51:13,503 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:51:13,504 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]]} 07:51:13,505 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} 07:51:13,506 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior451#-194205328] 07:51:13,516 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower452#1409295148] 07:51:13,516 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader453#1832815385] 07:51:13,522 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 07:51:13,522 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:13,523 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 07:51:13,524 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]]} 07:51:13,524 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:51:13,524 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 07:51:13,525 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 07:51:13,525 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior454#1708828823] 07:51:13,536 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower455#711726661] 07:51:13,536 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader456#99954028] 07:51:13,540 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries 07:51:13,541 PM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 07:51:13,541 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor [WARN] [10/16/2025 19:51:13.541] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@63680639 07:51:13,542 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor [INFO] [pekkoDeadLetter][10/16/2025 19:51:13.541] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [6] 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'. 07:51:13,542 PM [test-pekko.actor.default-dispatcher-7] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [6] 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'. 07:51:13,542 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 07:51:13,542 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 07:51:13,543 PM [test-pekko.actor.default-dispatcher-14] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 07:51:13,543 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 07:51:13,543 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 07:51:13,544 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 07:51:13,544 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:51:13,544 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:51:13,544 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 07:51:13,545 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:51:13,545 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 07:51:13,612 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:51:13,612 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 07:51:13,612 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 07:51:13,612 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 07:51:13,612 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Taking snapshot on entry with index -1 07:51:13,612 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 07:51:13,612 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F14CB1-248334ED.tmp 07:51:13,671 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F14CB1-248334ED.v1 07:51:13,671 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:51:13,671 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F14CB1-248334ED.v1 07:51:13,671 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:51:13,671 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:51:13,672 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-10-16T19:51:13.612578541Z, file=/tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F14CB1-248334ED.v1, size=419, entryCompress=NONE, stateCompress=NONE} 07:51:13,672 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot completed in 59.67 ms, resetting timer for the next recovery snapshot 07:51:13,672 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 07:51:13,672 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 07:51:13,672 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 07:51:13,672 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 07:51:13,672 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 07:51:13,672 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 210.0 μs with journalIndex=1 07:51:13,672 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 07:51:13,673 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 07:51:13,774 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:51:13,774 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F14CB1-248334ED.v1 07:51:13,774 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:51:13,774 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:51:13,774 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-10-16T19:51:13.612578541Z, file=/tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F14CB1-248334ED.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 07:51:13,775 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]]} 07:51:13,775 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 07:51:13,775 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:51:13,775 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 07:51:13,775 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:51:13,775 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 07:51:13,775 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:51:13,775 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 07:51:13,775 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 07:51:13,775 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 07:51:13,775 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 07:51:13,775 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} 07:51:13,775 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 07:51:13,775 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 07:51:13,775 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 07:51:13,775 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 07:51:13,775 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 07:51:13,775 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 07:51:13,775 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 07:51:13,775 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 07:51:13,775 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 07:51:13,775 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 07:51:13,775 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 07:51:13,775 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 07:51:13,775 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 07:51:13,775 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 07:51:13,775 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 232.6 ms 07:51:13,776 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 07:51:13,782 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 07:51:13,782 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 6.115 ms 07:51:13,782 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 07:51:13,782 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.411 μs 07:51:13,782 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:51:13,782 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/0x00000007c0909de0@745753bd} 07:51:13,782 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:51:13,782 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/0x00000007c0909de0@745753bd} 07:51:13,782 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 07:51:13,782 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 07:51:13,782 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 07:51:13,782 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] 07:51:13,782 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 07:51:13,782 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 199.5 μs 07:51:13,782 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 07:51:13,782 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 07:51:13,782 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 07:51:13,782 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 07:51:13,782 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 07:51:13,782 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/0x00000007c0909de0@745753bd} 07:51:13,782 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d90112] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F14CB1-2EA408C4.tmp 07:51:13,782 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 6.602 ms 07:51:13,782 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) [WARN] [10/16/2025 19:51:13.782] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][10/16/2025 19:51:13.782] [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. [7] 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'. 07:51:13,783 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. [7] 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'. 07:51:13,785 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d90112] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F14CB1-2EA408C4.v1 07:51:13,785 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d90112] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:51:13,785 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d90112] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F14CB1-248334ED.v1 07:51:13,785 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d90112] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:51:13,785 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d90112] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:51:13,785 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d90112] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F14CB1-2EA408C4.v1 07:51:13,785 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d90112] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-10-16T19:51:13.612578541Z, file=/tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F14CB1-248334ED.v1, size=419, entryCompress=NONE, stateCompress=NONE} 07:51:13,785 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d90112] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-10-16T19:51:13.782502084Z, file=/tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F14CB1-2EA408C4.v1, size=573, entryCompress=NONE, stateCompress=NONE} 07:51:13,785 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d90112] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 07:51:13,786 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 07:51:13,786 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-10-16T19:51:13.782502084Z 07:51:13,786 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 07:51:13,786 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 07:51:13,786 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.748 ms 07:51:13,786 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 07:51:13,786 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 07:51:13,786 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 07:51:13,786 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 07:51:13,786 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 216.5 μs 07:51:13,786 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 07:51:14,27 PM [test-pekko.actor.default-dispatcher-7] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 07:51:14,27 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:51:14,27 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:51:14,27 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:51:14,27 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F14CB1-2EA408C4.v1 07:51:14,28 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-10-16T19:51:13.782502084Z, file=/tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F14CB1-2EA408C4.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 07:51:14,29 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 07:51:14,40 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#861,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158]/waiting 07:51:14,41 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 254.5 ms 07:51:14,41 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 17.74 μs 07:51:14,41 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 07:51:14,41 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 07:51:14,41 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 07:51:14,41 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:51:14,41 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [10/16/2025 19:51:14.042] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@350fe106 07:51:14,42 PM [test-pekko.actor.default-dispatcher-14] [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. [8] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][10/16/2025 19:51:14.042] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [8] 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'. 07:51:14,43 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 07:51:14,43 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:51:14,43 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:51:14,44 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 07:51:14,44 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 07:51:14,44 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 07:51:14,44 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 07:51:14,44 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 07:51:14,46 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:51:14,46 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:51:14,46 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:51:14,46 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:51:14,46 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F14CB1-2EA408C4.v1 07:51:14,46 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-10-16T19:51:13.782502084Z, file=/tmp/junit-8256817176708233144/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F14CB1-2EA408C4.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 07:51:14,46 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 07:51:14,47 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-10-16T19:51:13.782502084Z 07:51:14,47 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:51:14,47 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 167.0 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 07:51:14,47 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 312.3 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 07:51:14,47 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 07:51:14,47 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:51:14,47 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 07:51:14,47 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 07:51:14,47 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 07:51:14,47 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 07:51:14,47 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 07:51:14,47 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 125.6 μs with journalIndex=4 07:51:14,47 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 07:51:14,48 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior457#1806792775] 07:51:14,59 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower458#1071283503] 07:51:14,59 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader459#-819471432] 07:51:14,59 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 07:51:14,59 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#866,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159]/waiting 07:51:14,60 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 15.20 ms 07:51:14,60 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 10.89 μs 07:51:14,60 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 07:51:14,60 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 07:51:14,60 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 07:51:14,60 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:51:14,60 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:51:14,63 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 07:51:14,63 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:14,364 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 07:51:14,494 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:51:14,494 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 07:51:14,745 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 07:51:14,945 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 07:51:14,945 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior460#-1287533249] 07:51:14,956 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower461#1606758051] 07:51:14,957 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader462#-2135990752] 07:51:14,961 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:51:14,962 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:51:14,962 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 07:51:14,962 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 07:51:14,962 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 07:51:14,963 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 07:51:14,963 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior463#-102139905] 07:51:14,964 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower464#807100209] 07:51:14,964 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader465#1702373375] [INFO] [10/16/2025 19:51:14.965] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 07:51:14,966 PM [test-pekko.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [10/16/2025 19:51:14.966] [test-pekko.actor.default-dispatcher-6] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.167:17355) [INFO] [pekkoDeadLetter][10/16/2025 19:51:14.966] [test-pekko.actor.default-dispatcher-7] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1042630807] was unhandled. [9] 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'. 07:51:14,966 PM [test-pekko.actor.default-dispatcher-7] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1042630807] was unhandled. [9] 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] [10/16/2025 19:51:14.967] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.167:17355] - Exiting completed [INFO] [10/16/2025 19:51:14.967] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.167:17355] - Shutting down... 07:51:14,967 PM [test-pekko.actor.default-dispatcher-14] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.167:17355] - Exiting completed 07:51:14,967 PM [test-pekko.actor.default-dispatcher-14] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.167:17355] - Shutting down... [INFO] [10/16/2025 19:51:14.967] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.167:17355] - Successfully shut down 07:51:14,967 PM [test-pekko.actor.default-dispatcher-14] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.167:17355] - Successfully shut down 07:51:14,969 PM [test-pekko.actor.default-dispatcher-14] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 07:51:14,969 PM [test-pekko.actor.default-dispatcher-14] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [10/16/2025 19:51:14.968] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.170.167:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [10/16/2025 19:51:14.968] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.170.167:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 07:51:14,970 PM [test-pekko.actor.default-dispatcher-14] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [10/16/2025 19:51:14.970] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.167:17355/system/remoting-terminator] Remoting shut down. [DEBUG] [10/16/2025 19:51:14.971] [test-pekko.actor.internal-dispatcher-4] [EventStream] shutting down: StandardOutLogger