[DEBUG] [09/16/2025 20:50:13.969] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 08:50:13,970 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [09/16/2025 20:50:13.970] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [09/16/2025 20:50:13.971] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [09/16/2025 20:50:13.985] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.54:17355] with UID [4729517600873514136] 08:50:13,985 PM [test-pekko.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.54:17355] with UID [4729517600873514136] [INFO] [09/16/2025 20:50:13.985] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.54:17355] - Starting up, Pekko version [1.0.3] ... 08:50:13,986 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.54:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [09/16/2025 20:50:13.988] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.54:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [09/16/2025 20:50:13.988] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.54:17355] - Started up successfully 08:50:13,988 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.54:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 08:50:13,988 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.54:17355] - Started up successfully [INFO] [09/16/2025 20:50:13.989] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.54:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [09/16/2025 20:50:13.989] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.54:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 08:50:13,989 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.54:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 08:50:13,989 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.54:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 08:50:14,2 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:14,110 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 08:50:14,110 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 08:50:14,111 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior425#515437009] 08:50:14,123 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower426#-910351500] 08:50:14,123 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader427#1112652615] 08:50:14,127 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:14,130 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]]} 08:50:14,130 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:50:14,130 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 08:50:14,130 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 08:50:14,131 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 08:50:14,131 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 08:50:14,131 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} 08:50:14,132 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 08:50:14,132 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 08:50:14,133 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 08:50:14,133 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 08:50:14,133 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 08:50:14,134 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior428#1839874954] 08:50:14,144 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower429#1863390586] 08:50:14,145 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader430#1311141420] 08:50:14,154 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:14,155 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 08:50:14,155 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 08:50:14,156 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior431#859514899] 08:50:14,166 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower432#773923712] 08:50:14,166 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader433#1725374797] 08:50:14,170 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:14,171 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 08:50:14,171 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 08:50:14,172 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} 08:50:14,172 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 08:50:14,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 08:50:14,174 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 08:50:14,174 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 08:50:14,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. 08:50:14,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 08:50:14,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 08:50:14,175 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 08:50:14,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 08:50:14,176 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior434#-1316859295] 08:50:14,187 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower435#-815912058] 08:50:14,187 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader436#1586753661] 08:50:14,190 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:14,191 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 08:50:14,191 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 08:50:14,191 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:14,192 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 08:50:14,192 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 08:50:14,192 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 08:50:14,192 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 08:50:14,193 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 08:50:14,193 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior437#1487701977] 08:50:14,203 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower438#-1066136603] 08:50:14,204 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader439#-239761553] 08:50:14,207 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:14,208 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 08:50:14,209 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior440#1394246684] 08:50:14,220 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower441#-121225851] 08:50:14,221 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader442#-1693031460] 08:50:14,225 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:14,227 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 08:50:14,227 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 08:50:14,228 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior443#646808528] 08:50:14,239 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower444#-251852620] 08:50:14,239 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader445#96702139] 08:50:14,244 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 08:50:14,244 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:14,247 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 08:50:14,248 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 08:50:14,248 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:50:14,248 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 08:50:14,248 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 08:50:14,248 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 08:50:14,248 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 08:50:14,248 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 08:50:14,250 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 08:50:14,251 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior446#1971440803] 08:50:14,262 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower447#-1444151666] 08:50:14,262 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader448#-1311920344] 08:50:14,265 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 08:50:14,265 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:14,266 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]]} 08:50:14,266 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 08:50:14,267 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} 08:50:14,267 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 08:50:14,268 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior449#506054794] 08:50:14,278 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower450#1063721689] 08:50:14,278 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader451#-161323698] 08:50:14,281 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 08:50:14,281 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:14,282 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 08:50:14,282 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 08:50:14,282 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:50:14,282 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 08:50:14,283 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 08:50:14,283 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 08:50:14,283 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 08:50:14,283 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 08:50:14,283 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 08:50:14,284 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]]} 08:50:14,284 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 08:50:14,284 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} 08:50:14,284 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 08:50:14,284 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior452#-887960514] 08:50:14,296 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower453#710397119] 08:50:14,296 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader454#-1443594008] 08:50:14,301 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:14,301 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 08:50:14,303 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior455#-471238031] 08:50:14,313 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower456#1125803378] 08:50:14,314 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader457#-512560584] 08:50:14,317 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 08:50:14,317 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:14,318 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 08:50:14,319 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]]} 08:50:14,319 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:50:14,319 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 08:50:14,319 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 08:50:14,319 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 08:50:14,320 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 08:50:14,320 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} 08:50:14,320 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 08:50:14,320 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 08:50:14,321 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 08:50:14,321 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior458#1360457623] 08:50:14,334 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower459#-789619932] 08:50:14,334 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader460#-750927307] 08:50:14,341 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 08:50:14,342 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:14,342 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]]} 08:50:14,343 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:50:14,343 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 08:50:14,343 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 08:50:14,343 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 08:50:14,343 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 08:50:14,343 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} 08:50:14,343 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 08:50:14,343 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 08:50:14,343 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 08:50:14,343 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 08:50:14,343 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 08:50:14,343 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 08:50:14,344 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]]} 08:50:14,344 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 08:50:14,344 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 08:50:14,344 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 08:50:14,344 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 08:50:14,344 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 08:50:14,344 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 08:50:14,344 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} 08:50:14,344 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 08:50:14,344 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 08:50:14,345 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 08:50:14,345 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 08:50:14,345 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior461#1021683185] 08:50:14,356 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower462#1091155269] 08:50:14,356 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader463#-1192474277] 08:50:14,362 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 08:50:14,362 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:14,363 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 08:50:14,364 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 08:50:14,364 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} 08:50:14,364 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 08:50:14,365 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior464#1970627655] 08:50:14,375 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower465#-1701688101] 08:50:14,376 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader466#-994815253] 08:50:14,379 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:14,384 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior467#2096518169] 08:50:14,395 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower468#-883252744] 08:50:14,395 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader469#1254673375] 08:50:14,399 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 08:50:14,399 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:14,399 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 08:50:14,400 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 08:50:14,401 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]]} 08:50:14,401 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:50:14,401 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 08:50:14,401 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 08:50:14,401 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 08:50:14,401 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 08:50:14,401 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} 08:50:14,402 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 08:50:14,402 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 08:50:14,402 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 08:50:14,402 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 08:50:14,402 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 08:50:14,403 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior470#-636988244] 08:50:14,413 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower471#-1324598217] 08:50:14,414 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader472#-116023170] 08:50:14,417 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [09/16/2025 20:50:14.420] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@11c43cb1 [INFO] [pekkoDeadLetter][09/16/2025 20:50:14.420] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:50:14,421 PM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:50:14,422 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 08:50:14,422 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:50:14,422 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:50:14,423 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 08:50:14,423 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 08:50:14,423 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 08:50:14,423 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 08:50:14,423 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 08:50:14,425 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/junit-1051912516434221713/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 08:50:14,425 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1051912516434221713/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 08:50:14,425 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1051912516434221713/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 08:50:14,425 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 08:50:14,425 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:50:14,425 PM [test-pekko.actor.default-dispatcher-12] [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 08:50:14,430 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:50:14,430 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 08:50:14,430 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 08:50:14,430 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 08:50:14,430 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 08:50:14,430 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 08:50:14,430 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-1051912516434221713/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C9CD86-19A956D6.tmp 08:50:14,435 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-1051912516434221713/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C9CD86-19A956D6.v1 08:50:14,435 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-1051912516434221713/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C9CD86-19A956D6.v1 08:50:14,435 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1051912516434221713/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 08:50:14,435 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1051912516434221713/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 08:50:14,435 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1051912516434221713/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 08:50:14,435 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-09-16T20:50:14.430528214Z, file=/tmp/junit-1051912516434221713/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C9CD86-19A956D6.v1, size=419, entryCompress=NONE, stateCompress=NONE} 08:50:14,435 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot completed in 5.245 ms, resetting timer for the next recovery snapshot 08:50:14,435 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 08:50:14,435 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 08:50:14,435 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 08:50:14,435 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 08:50:14,435 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 08:50:14,435 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: journal recovery completedin 163.7 μs with journalIndex=1 08:50:14,435 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 08:50:14,436 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 08:50:14,537 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-1051912516434221713/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C9CD86-19A956D6.v1 08:50:14,537 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1051912516434221713/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 08:50:14,537 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1051912516434221713/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 08:50:14,537 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1051912516434221713/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 08:50:14,537 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-09-16T20:50:14.430528214Z, file=/tmp/junit-1051912516434221713/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C9CD86-19A956D6.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 08:50:14,539 PM [test-pekko.actor.default-dispatcher-12] [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]]} 08:50:14,539 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 08:50:14,539 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:50:14,539 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 08:50:14,539 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 08:50:14,539 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 08:50:14,539 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 08:50:14,539 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 08:50:14,539 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 08:50:14,539 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 116.2 ms 08:50:14,539 PM [test-pekko.actor.default-dispatcher-12] [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} 08:50:14,540 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 08:50:14,540 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 08:50:14,540 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 08:50:14,540 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 08:50:14,540 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 08:50:14,540 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 08:50:14,540 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 08:50:14,540 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 08:50:14,540 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 08:50:14,540 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 08:50:14,540 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 08:50:14,542 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 08:50:14,543 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 08:50:14,543 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 3.056 ms 08:50:14,543 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 08:50:14,543 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 3.400 μs 08:50:14,543 PM [test-pekko.actor.default-dispatcher-12] [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/0x00000007c08d2270@46c3b55b} 08:50:14,543 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 08:50:14,543 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 08:50:14,543 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 08:50:14,543 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 899.5 μs 08:50:14,544 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 08:50:14,544 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 08:50:14,544 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 08:50:14,544 PM [test-pekko.actor.default-dispatcher-12] [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] 08:50:14,544 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 08:50:14,544 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 08:50:14,544 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 08:50:14,544 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 08:50:14,544 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 08:50:14,544 PM [test-pekko.actor.default-dispatcher-12] [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/0x00000007c08d2270@46c3b55b} 08:50:14,544 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d126304] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-1051912516434221713/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C9CD86-2070BC96.tmp 08:50:14,544 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 4.070 ms [WARN] [09/16/2025 20:50:14.544] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] 08:50:14,544 PM [test-pekko.actor.default-dispatcher-6] [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'. [INFO] [pekkoDeadLetter][09/16/2025 20:50:14.544] [test-pekko.actor.default-dispatcher-6] [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'. 08:50:14,546 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d126304] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-1051912516434221713/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C9CD86-2070BC96.v1 08:50:14,546 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d126304] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-1051912516434221713/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C9CD86-19A956D6.v1 08:50:14,546 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d126304] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-1051912516434221713/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C9CD86-2070BC96.v1 08:50:14,546 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d126304] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1051912516434221713/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 08:50:14,546 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d126304] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1051912516434221713/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 08:50:14,546 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d126304] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1051912516434221713/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 08:50:14,546 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d126304] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-09-16T20:50:14.430528214Z, file=/tmp/junit-1051912516434221713/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C9CD86-19A956D6.v1, size=419, entryCompress=NONE, stateCompress=NONE} 08:50:14,546 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d126304] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-09-16T20:50:14.544259222Z, file=/tmp/junit-1051912516434221713/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C9CD86-2070BC96.v1, size=555, entryCompress=NONE, stateCompress=NONE} 08:50:14,546 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d126304] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 08:50:14,546 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 08:50:14,546 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-09-16T20:50:14.544259222Z 08:50:14,546 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 08:50:14,546 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 2.688 ms 08:50:14,546 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 08:50:14,546 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 08:50:14,546 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 08:50:14,546 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 08:50:14,546 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 130.1 μs 08:50:14,546 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 08:50:14,546 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 08:50:14,740 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-1051912516434221713/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C9CD86-2070BC96.v1 08:50:14,740 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1051912516434221713/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 08:50:14,740 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1051912516434221713/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 08:50:14,740 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1051912516434221713/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 08:50:14,740 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-09-16T20:50:14.544259222Z, file=/tmp/junit-1051912516434221713/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C9CD86-2070BC96.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 08:50:14,743 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior473#-349690059] 08:50:14,754 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower474#-1105102242] 08:50:14,754 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader475#1255723099] 08:50:14,754 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 08:50:14,755 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#829,testCaptureSnapshotOnLastEntryInAppendEntries-writer-158]/waiting 08:50:14,755 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 208.3 ms 08:50:14,755 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 14.13 μs 08:50:14,755 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 08:50:14,755 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:50:14,755 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:50:14,755 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 08:50:14,755 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 08:50:14,759 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:14,760 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior476#521640632] 08:50:14,771 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower477#-1545339226] 08:50:14,771 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader478#-749957338] 08:50:14,775 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 08:50:14,775 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:14,776 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 08:50:14,776 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 08:50:14,777 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior479#-1035096665] 08:50:14,787 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower480#2062236464] 08:50:14,788 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader481#-1654788159] 08:50:14,792 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 08:50:14,792 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:14,793 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 08:50:14,794 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]]} 08:50:14,794 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:50:14,794 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 08:50:14,794 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 08:50:14,794 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 08:50:14,794 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 08:50:14,794 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} 08:50:14,795 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 08:50:14,795 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 08:50:14,795 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 08:50:14,796 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior482#-783711006] 08:50:14,797 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower483#1271928732] 08:50:14,797 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader484#-599509025] 08:50:14,799 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 08:50:14,799 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:14,800 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 08:50:14,800 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]]} 08:50:14,800 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 08:50:14,800 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} 08:50:14,801 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 08:50:14,801 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 08:50:14,801 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]]} 08:50:14,801 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 08:50:14,801 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} 08:50:14,801 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 08:50:14,802 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior485#1972166491] 08:50:14,802 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower486#-210554075] 08:50:14,802 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader487#-145210898] 08:50:14,804 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:14,805 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior488#-418831146] 08:50:14,805 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower489#488016313] 08:50:14,805 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader490#-2057878543] 08:50:14,807 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 08:50:14,807 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:14,807 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 08:50:14,808 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]]} 08:50:14,808 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 08:50:14,808 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} 08:50:14,808 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 08:50:14,808 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 08:50:14,808 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]]} 08:50:14,809 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 08:50:14,809 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} 08:50:14,809 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 08:50:14,809 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]]} 08:50:14,809 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 08:50:14,810 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} 08:50:14,810 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 08:50:14,810 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior491#-2129888054] 08:50:14,810 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower492#-543494851] 08:50:14,810 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader493#1115250324] 08:50:14,813 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 08:50:14,813 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:14,813 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]]} 08:50:14,814 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:50:14,814 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 08:50:14,814 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 08:50:14,814 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 08:50:14,814 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 08:50:14,814 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} 08:50:14,814 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 08:50:14,814 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 08:50:14,814 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 08:50:14,814 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior494#-941173423] 08:50:14,815 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower495#1839791658] 08:50:14,815 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader496#-2109629770] 08:50:14,817 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 08:50:14,817 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:14,819 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 08:50:14,819 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader499 08:50:14,819 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader499 08:50:14,820 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:50:14,821 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior497#-2084451670] 08:50:14,822 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower498#-2056750081] 08:50:14,822 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader499#493313328] 08:50:14,824 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 08:50:14,824 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:14,825 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 08:50:14,825 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]]} 08:50:14,825 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:50:14,825 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 08:50:14,825 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 08:50:14,825 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 08:50:14,825 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 08:50:14,825 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} 08:50:14,826 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 08:50:14,826 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 08:50:14,826 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 08:50:14,826 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior500#-377339817] 08:50:14,827 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower501#-298927515] 08:50:14,827 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader502#-1481052383] 08:50:14,829 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 08:50:14,829 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:14,830 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 08:50:14,830 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]]} 08:50:14,830 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 08:50:14,831 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} 08:50:14,831 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 08:50:14,831 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior503#1644971465] 08:50:14,832 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower504#-279157766] 08:50:14,832 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader505#309948885] 08:50:14,834 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [09/16/2025 20:50:14.835] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@28a0cbd5 [INFO] [pekkoDeadLetter][09/16/2025 20:50:14.835] [test-pekko.actor.default-dispatcher-12] [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'. 08:50:14,835 PM [test-pekko.actor.default-dispatcher-12] [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'. 08:50:14,836 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 08:50:14,836 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 08:50:14,836 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 08:50:14,836 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 08:50:14,836 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 08:50:14,836 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 08:50:14,837 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 08:50:14,837 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 08:50:14,838 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/junit-1674886170188116536/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 08:50:14,838 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-1674886170188116536/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 08:50:14,838 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-1674886170188116536/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 08:50:14,838 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 08:50:14,838 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 08:50:14,838 PM [test-pekko.actor.default-dispatcher-6] [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 08:50:14,844 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 08:50:14,844 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 08:50:14,844 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: taking snapshot to clear Pekko persistence to 1 08:50:14,844 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 08:50:14,844 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Taking snapshot on entry with index -1 08:50:14,844 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 08:50:14,844 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-1674886170188116536/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C9CD86-3256C5E0.tmp 08:50:14,846 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-1674886170188116536/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C9CD86-3256C5E0.v1 08:50:14,847 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-1674886170188116536/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C9CD86-3256C5E0.v1 08:50:14,847 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-1674886170188116536/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 08:50:14,847 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-1674886170188116536/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 08:50:14,847 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-1674886170188116536/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 08:50:14,847 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-09-16T20:50:14.844547552Z, file=/tmp/junit-1674886170188116536/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C9CD86-3256C5E0.v1, size=419, entryCompress=NONE, stateCompress=NONE} 08:50:14,847 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot completed in 2.763 ms, resetting timer for the next recovery snapshot 08:50:14,847 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed and cannot restore from snapshot 08:50:14,847 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 08:50:14,847 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 08:50:14,847 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 08:50:14,847 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 08:50:14,847 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal recovery completedin 199.7 μs with journalIndex=1 08:50:14,847 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Journal recovery completed and cannot restore from snapshot 08:50:14,851 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: ignoring DeleteMessagesSuccess(1) 08:50:14,851 PM [test-pekko.actor.default-dispatcher-6] [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]]} 08:50:14,851 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 08:50:14,851 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:50:14,851 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 08:50:14,851 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 08:50:14,851 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 08:50:14,851 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 08:50:14,851 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 08:50:14,851 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 08:50:14,851 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 08:50:14,851 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 08:50:14,851 PM [test-pekko.actor.default-dispatcher-6] [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} 08:50:14,851 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 08:50:14,851 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 08:50:14,851 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 08:50:14,851 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 3 commands after 14.66 ms 08:50:14,851 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 08:50:14,851 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 08:50:14,851 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 08:50:14,851 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 08:50:14,856 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 3 completion(s) pending 08:50:14,856 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 3 commands in 4.385 ms 08:50:14,856 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 2.691 μs 08:50:14,856 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 3 completion(s) 08:50:14,856 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 08:50:14,856 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 08:50:14,856 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 08:50:14,856 PM [test-pekko.actor.default-dispatcher-6] [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/0x00000007c08d2270@3bbb3a08} 08:50:14,856 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 130.4 μs 08:50:14,856 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 08:50:14,856 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 08:50:14,856 PM [test-pekko.actor.default-dispatcher-6] [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/0x00000007c08d2270@3bbb3a08} 08:50:14,856 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 08:50:14,856 PM [test-pekko.actor.default-dispatcher-6] [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] 08:50:14,856 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 08:50:14,856 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 08:50:14,856 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 08:50:14,856 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 08:50:14,856 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 08:50:14,856 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d244991] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-1674886170188116536/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C9CD86-330F2A3E.tmp 08:50:14,856 PM [test-pekko.actor.default-dispatcher-6] [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/0x00000007c08d2270@3bbb3a08} 08:50:14,856 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 4.954 ms 08:50:14,856 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) [WARN] [09/16/2025 20:50:14.857] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] 08:50:14,857 PM [test-pekko.actor.default-dispatcher-12] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][09/16/2025 20:50:14.857] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:50:14,859 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d244991] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-1674886170188116536/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C9CD86-330F2A3E.v1 08:50:14,859 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d244991] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-1674886170188116536/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C9CD86-330F2A3E.v1 08:50:14,859 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d244991] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-1674886170188116536/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C9CD86-3256C5E0.v1 08:50:14,859 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d244991] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-1674886170188116536/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 08:50:14,859 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d244991] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-1674886170188116536/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 08:50:14,859 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d244991] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-1674886170188116536/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 08:50:14,859 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d244991] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-09-16T20:50:14.844547552Z, file=/tmp/junit-1674886170188116536/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C9CD86-3256C5E0.v1, size=419, entryCompress=NONE, stateCompress=NONE} 08:50:14,859 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d244991] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-09-16T20:50:14.856631870Z, file=/tmp/junit-1674886170188116536/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C9CD86-330F2A3E.v1, size=539, entryCompress=NONE, stateCompress=NONE} 08:50:14,859 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d244991] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 08:50:14,859 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 08:50:14,859 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-09-16T20:50:14.856631870Z 08:50:14,859 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 08:50:14,859 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 08:50:14,859 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 3.586 ms 08:50:14,860 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 08:50:14,860 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 08:50:14,860 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 08:50:14,860 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 139.7 μs 08:50:14,860 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 08:50:14,860 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 08:50:15,2 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-1674886170188116536/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C9CD86-330F2A3E.v1 08:50:15,2 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-1674886170188116536/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 08:50:15,2 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-1674886170188116536/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 08:50:15,2 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-1674886170188116536/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 08:50:15,2 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-09-16T20:50:14.856631870Z, file=/tmp/junit-1674886170188116536/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C9CD86-330F2A3E.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 08:50:15,4 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior506#1856101090] 08:50:15,5 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower507#-659242310] 08:50:15,5 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader508#1625827151] 08:50:15,5 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 08:50:15,5 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#834,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159]/waiting 08:50:15,5 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 145.6 ms 08:50:15,5 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 14.71 μs 08:50:15,5 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 08:50:15,6 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 08:50:15,6 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 08:50:15,6 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 08:50:15,6 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 08:50:15,9 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 08:50:15,9 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:15,10 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 08:50:15,10 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]]} 08:50:15,10 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 08:50:15,11 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} 08:50:15,11 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 08:50:15,11 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior509#-2092997781] 08:50:15,12 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower510#-908881753] 08:50:15,13 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader511#509678217] 08:50:15,17 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 08:50:15,17 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:15,17 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 08:50:15,18 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 08:50:15,18 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 08:50:15,18 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 08:50:15,18 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 08:50:15,19 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior512#-1555930973] 08:50:15,20 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower513#-891579139] 08:50:15,20 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader514#-354814807] 08:50:15,23 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 08:50:15,23 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:15,24 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 08:50:15,24 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]]} 08:50:15,24 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 08:50:15,24 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 08:50:15,24 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:50:15,24 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 08:50:15,24 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 08:50:15,24 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 08:50:15,25 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 08:50:15,25 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 08:50:15,25 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 08:50:15,25 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} 08:50:15,25 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 08:50:15,25 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 08:50:15,25 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 08:50:15,25 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 08:50:15,25 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 08:50:15,25 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 08:50:15,25 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 08:50:15,25 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 08:50:15,25 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 08:50:15,25 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 08:50:15,26 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior515#410442013] 08:50:15,26 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower516#304222948] 08:50:15,26 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader517#-817661188] 08:50:15,29 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 08:50:15,29 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:15,29 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 08:50:15,29 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 08:50:15,30 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior518#404431748] 08:50:15,31 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower519#34674777] 08:50:15,31 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader520#1161152251] 08:50:15,33 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 08:50:15,33 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:15,33 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 08:50:15,33 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 08:50:15,33 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:50:15,34 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 08:50:15,34 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 08:50:15,34 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]]} 08:50:15,34 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 08:50:15,34 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:50:15,34 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 08:50:15,34 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 08:50:15,34 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 08:50:15,34 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 08:50:15,35 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} 08:50:15,35 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 08:50:15,35 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 08:50:15,35 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 08:50:15,35 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 08:50:15,40 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior521#2053359973] 08:50:15,51 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower522#857850496] 08:50:15,51 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader523#1178101372] 08:50:15,54 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 08:50:15,54 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:15,55 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 08:50:15,55 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]]} 08:50:15,55 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 08:50:15,55 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} 08:50:15,56 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 08:50:15,56 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 08:50:15,56 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]]} 08:50:15,56 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 08:50:15,56 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} 08:50:15,56 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 08:50:15,56 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 08:50:15,57 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]]} 08:50:15,57 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 08:50:15,57 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} 08:50:15,57 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 08:50:15,58 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior524#971487359] 08:50:15,68 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower525#-1522520936] 08:50:15,68 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader526#-365783351] 08:50:15,72 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 08:50:15,72 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:15,272 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:50:15,273 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.171.54:17355, Removed) 08:50:15,273 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 08:50:15,273 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 08:50:15,273 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 08:50:15,273 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 08:50:15,274 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior527#-27065863] 08:50:15,285 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower528#-302219119] 08:50:15,285 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader529#-1893502987] 08:50:15,289 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:15,289 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 08:50:15,490 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:50:15,490 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior530#-70022276] 08:50:15,501 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower531#-1588189733] 08:50:15,501 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader532#-283981686] 08:50:15,507 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 08:50:15,507 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:15,512 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 08:50:15,512 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 08:50:15,513 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior533#1611705211] 08:50:15,514 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower534#1989337713] 08:50:15,514 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader535#535876049] 08:50:15,518 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 08:50:15,518 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:15,520 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]]} 08:50:15,520 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 08:50:15,520 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 08:50:15,520 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 08:50:15,520 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 08:50:15,520 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 08:50:15,520 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 08:50:15,521 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} 08:50:15,521 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 08:50:15,521 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 08:50:15,521 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 08:50:15,521 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 08:50:15,522 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 08:50:15,522 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 08:50:15,522 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 08:50:15,522 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 08:50:15,522 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 08:50:15,522 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 08:50:15,522 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 08:50:15,522 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 08:50:15,524 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior536#679567747] 08:50:15,525 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower537#196035245] 08:50:15,525 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader538#855774936] 08:50:15,528 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 08:50:15,528 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:15,529 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 08:50:15,529 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 08:50:15,529 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:50:15,529 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 08:50:15,530 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]]} 08:50:15,530 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} 08:50:15,531 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior539#-1038846725] 08:50:15,532 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower540#1778405241] 08:50:15,532 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader541#-1009599465] 08:50:15,534 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 08:50:15,534 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:15,535 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 08:50:15,535 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]]} 08:50:15,535 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 08:50:15,536 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 08:50:15,536 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 08:50:15,536 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior542#-602624551] 08:50:15,537 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower543#-187891430] 08:50:15,537 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader544#-107983803] 08:50:15,540 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [09/16/2025 20:50:15.540] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@46698446 08:50:15,541 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 08:50:15,541 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor [INFO] [pekkoDeadLetter][09/16/2025 20:50:15.541] [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. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:50:15,548 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:50:15,552 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 08:50:15,554 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 08:50:15,554 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 08:50:15,554 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 08:50:15,555 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 08:50:15,555 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 08:50:15,559 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 08:50:15,559 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 08:50:15,559 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 08:50:15,559 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 08:50:15,559 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:50:15,559 PM [test-pekko.actor.default-dispatcher-15] [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 08:50:15,561 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:50:15,561 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 08:50:15,561 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 08:50:15,561 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 08:50:15,562 PM [test-pekko.actor.default-dispatcher-15] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Taking snapshot on entry with index -1 08:50:15,562 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 08:50:15,562 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C9CD87-2180DCBB.tmp 08:50:15,563 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C9CD87-2180DCBB.v1 08:50:15,563 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C9CD87-2180DCBB.v1 08:50:15,563 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 08:50:15,563 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 08:50:15,563 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 08:50:15,563 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-09-16T20:50:15.562093243Z, file=/tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C9CD87-2180DCBB.v1, size=419, entryCompress=NONE, stateCompress=NONE} 08:50:15,564 PM [test-pekko.actor.default-dispatcher-15] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot completed in 2.045 ms, resetting timer for the next recovery snapshot 08:50:15,564 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 08:50:15,564 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 08:50:15,564 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 08:50:15,564 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 08:50:15,564 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 08:50:15,564 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 246.1 μs with journalIndex=1 08:50:15,564 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 08:50:15,565 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 08:50:15,667 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C9CD87-2180DCBB.v1 08:50:15,667 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 08:50:15,667 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 08:50:15,667 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 08:50:15,667 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-09-16T20:50:15.562093243Z, file=/tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C9CD87-2180DCBB.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 08:50:15,670 PM [test-pekko.actor.default-dispatcher-15] [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]]} 08:50:15,670 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 08:50:15,670 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:50:15,670 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 08:50:15,670 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 08:50:15,670 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 08:50:15,670 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 08:50:15,670 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 08:50:15,670 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 08:50:15,670 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 08:50:15,671 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 08:50:15,671 PM [test-pekko.actor.default-dispatcher-15] [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} 08:50:15,671 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 08:50:15,671 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 08:50:15,671 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 08:50:15,671 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 08:50:15,671 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 08:50:15,671 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 08:50:15,671 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 116.1 ms 08:50:15,671 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 08:50:15,671 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 08:50:15,671 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 08:50:15,671 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 08:50:15,671 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 08:50:15,671 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 08:50:15,671 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 08:50:15,671 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 08:50:15,672 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 08:50:15,679 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 08:50:15,680 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 08:50:15,680 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 08:50:15,680 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 8.502 ms 08:50:15,680 PM [test-pekko.actor.default-dispatcher-15] [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/0x00000007c08d2270@10e4af3d} 08:50:15,680 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 08:50:15,680 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 9.260 μs 08:50:15,680 PM [test-pekko.actor.default-dispatcher-15] [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/0x00000007c08d2270@10e4af3d} 08:50:15,680 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 08:50:15,680 PM [test-pekko.actor.default-dispatcher-15] [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] 08:50:15,680 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 08:50:15,680 PM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 08:50:15,680 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 08:50:15,680 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 08:50:15,680 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 288.1 μs 08:50:15,680 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 08:50:15,680 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 08:50:15,681 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 08:50:15,681 PM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 08:50:15,681 PM [test-pekko.actor.default-dispatcher-15] [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/0x00000007c08d2270@10e4af3d} 08:50:15,681 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 8.742 ms 08:50:15,681 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) [WARN] [09/16/2025 20:50:15.681] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][09/16/2025 20:50:15.682] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:50:15,682 PM [test-pekko.actor.default-dispatcher-15] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:50:15,683 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d980146] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C9CD87-28965338.tmp 08:50:15,685 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d980146] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C9CD87-28965338.v1 08:50:15,685 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d980146] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C9CD87-2180DCBB.v1 08:50:15,685 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d980146] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 08:50:15,685 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d980146] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 08:50:15,685 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d980146] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C9CD87-28965338.v1 08:50:15,685 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d980146] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 08:50:15,685 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d980146] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-09-16T20:50:15.562093243Z, file=/tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C9CD87-2180DCBB.v1, size=419, entryCompress=NONE, stateCompress=NONE} 08:50:15,685 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d980146] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-09-16T20:50:15.680940344Z, file=/tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C9CD87-28965338.v1, size=573, entryCompress=NONE, stateCompress=NONE} 08:50:15,685 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d980146] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 08:50:15,685 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 08:50:15,685 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-09-16T20:50:15.680940344Z 08:50:15,685 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 08:50:15,685 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 08:50:15,685 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 5.476 ms 08:50:15,686 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 08:50:15,686 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 08:50:15,686 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 08:50:15,686 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 126.4 μs 08:50:15,686 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 08:50:15,686 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 08:50:15,900 PM [test-pekko.actor.default-dispatcher-12] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 08:50:15,922 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 08:50:15,922 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 08:50:15,922 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C9CD87-28965338.v1 08:50:15,922 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 08:50:15,922 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-09-16T20:50:15.680940344Z, file=/tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C9CD87-28965338.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 08:50:15,925 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 08:50:15,937 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#838,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160]/waiting 08:50:15,937 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 251.4 ms 08:50:15,937 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 16.18 μs 08:50:15,937 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 08:50:15,938 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 08:50:15,938 PM [test-pekko.actor.default-dispatcher-15] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 08:50:15,938 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 08:50:15,938 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [09/16/2025 20:50:15.939] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@67c089e6 [INFO] [pekkoDeadLetter][09/16/2025 20:50:15.940] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:50:15,940 PM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:50:15,941 PM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 08:50:15,941 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 08:50:15,941 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 08:50:15,942 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 08:50:15,942 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 08:50:15,942 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 08:50:15,943 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 08:50:15,943 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 08:50:15,944 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:50:15,944 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 08:50:15,944 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 08:50:15,944 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C9CD87-28965338.v1 08:50:15,944 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 08:50:15,945 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-09-16T20:50:15.680940344Z, file=/tmp/junit-11989034514057075087/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C9CD87-28965338.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 08:50:15,945 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 08:50:15,945 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-09-16T20:50:15.680940344Z 08:50:15,945 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:50:15,946 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 146.8 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 08:50:15,946 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 261.1 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 08:50:15,946 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 08:50:15,946 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:50:15,946 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 08:50:15,946 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 08:50:15,946 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 08:50:15,946 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 08:50:15,946 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 08:50:15,946 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 141.1 μs with journalIndex=4 08:50:15,946 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 08:50:15,947 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior545#-145147804] 08:50:15,958 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower546#205283621] 08:50:15,958 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader547#1224500843] 08:50:15,958 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 08:50:15,958 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#843,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161]/waiting 08:50:15,958 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 15.96 ms 08:50:15,959 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 8.541 μs 08:50:15,959 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 08:50:15,959 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 08:50:15,959 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 08:50:15,959 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 08:50:15,959 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 08:50:15,965 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 08:50:15,965 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:16,266 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 08:50:16,396 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:50:16,396 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 08:50:16,646 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 08:50:16,846 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 08:50:16,847 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior548#192186356] 08:50:16,858 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower549#-431008459] 08:50:16,858 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader550#940682479] 08:50:16,862 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:50:16,863 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:50:16,864 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 08:50:16,864 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 08:50:16,864 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 08:50:16,864 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 08:50:16,865 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior551#223628362] 08:50:16,875 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower552#-127314049] 08:50:16,875 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader553#-826707249] [INFO] [09/16/2025 20:50:16.877] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 08:50:16,877 PM [test-pekko.actor.default-dispatcher-12] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [09/16/2025 20:50:16.878] [test-pekko.actor.default-dispatcher-12] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.54:17355) [INFO] [pekkoDeadLetter][09/16/2025 20:50:16.878] [test-pekko.actor.default-dispatcher-12] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1962643108] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:50:16,878 PM [test-pekko.actor.default-dispatcher-12] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1962643108] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:50:16,879 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.54:17355] - Exiting completed 08:50:16,879 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.54:17355] - Shutting down... 08:50:16,879 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.54:17355] - Successfully shut down [INFO] [09/16/2025 20:50:16.879] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.54:17355] - Exiting completed [INFO] [09/16/2025 20:50:16.879] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.54:17355] - Shutting down... [INFO] [09/16/2025 20:50:16.879] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.54:17355] - Successfully shut down [INFO] [09/16/2025 20:50:16.880] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.54:17355/system/remoting-terminator] Shutting down remote daemon. 08:50:16,880 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [09/16/2025 20:50:16.881] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.54:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 08:50:16,881 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [09/16/2025 20:50:16.883] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.54:17355/system/remoting-terminator] Remoting shut down. 08:50:16,883 PM [test-pekko.actor.default-dispatcher-15] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [09/16/2025 20:50:16.883] [test-pekko.actor.internal-dispatcher-9] [EventStream] shutting down: StandardOutLogger