[DEBUG] [11/08/2025 04:14:13.072] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 04:14:13,73 AM [test-pekko.actor.default-dispatcher-7] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [11/08/2025 04:14:13.073] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [11/08/2025 04:14:13.073] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [11/08/2025 04:14:13.094] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.233:17355] with UID [-7695286913863919132] 04:14:13,94 AM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.233:17355] with UID [-7695286913863919132] 04:14:13,95 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.233:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [11/08/2025 04:14:13.095] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.233:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [11/08/2025 04:14:13.097] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.233:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 04:14:13,97 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.233:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 04:14:13,97 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.233:17355] - Started up successfully [INFO] [11/08/2025 04:14:13.097] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.233:17355] - Started up successfully [INFO] [11/08/2025 04:14:13.098] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.233:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [11/08/2025 04:14:13.099] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.233:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 04:14:13,99 AM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.233:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 04:14:13,99 AM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.233:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 04:14:13,112 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:13,222 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 04:14:13,223 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 04:14:13,224 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior337#-998016351] 04:14:13,235 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower338#-1577271946] 04:14:13,236 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader339#1072585317] 04:14:13,241 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:13,245 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 04:14:13,245 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:14:13,245 AM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 04:14:13,245 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 04:14:13,245 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 04:14:13,245 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 04:14:13,245 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:13,246 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 04:14:13,246 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 04:14:13,247 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:14:13,247 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:14:13,247 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 04:14:13,247 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior340#2049460558] 04:14:13,258 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower341#1834833700] 04:14:13,258 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader342#-1672101518] 04:14:13,261 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:13,262 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 04:14:13,263 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 04:14:13,263 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior343#-2034565141] 04:14:13,274 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower344#-100516009] 04:14:13,274 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader345#615368132] 04:14:13,277 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:13,277 AM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 04:14:13,278 AM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 04:14:13,278 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:13,279 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 04:14:13,279 AM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 04:14:13,280 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 04:14:13,280 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 04:14:13,280 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 04:14:13,280 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 04:14:13,281 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 04:14:13,282 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 04:14:13,282 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 04:14:13,283 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior346#1035976352] 04:14:13,293 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower347#1854843854] 04:14:13,294 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader348#526469028] 04:14:13,298 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:13,298 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:14:13,298 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:14:13,299 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:13,299 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 04:14:13,299 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 04:14:13,299 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 04:14:13,300 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 04:14:13,300 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 04:14:13,301 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior349#1351584532] 04:14:13,312 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower350#-994240953] 04:14:13,312 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader351#1536781303] 04:14:13,318 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:13,320 AM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 04:14:13,320 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior352#939920251] 04:14:13,331 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower353#963568713] 04:14:13,331 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader354#-1257646273] 04:14:13,335 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:13,336 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 04:14:13,337 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 04:14:13,337 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior355#-1396167445] 04:14:13,348 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower356#-475415167] 04:14:13,348 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader357#103039476] 04:14:13,353 AM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 04:14:13,354 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:13,357 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:14:13,357 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:14:13,357 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:14:13,358 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:14:13,358 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 04:14:13,358 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 04:14:13,358 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 04:14:13,358 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 04:14:13,361 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 04:14:13,364 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior358#1531261429] 04:14:13,375 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower359#-1799385129] 04:14:13,375 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader360#-1343705782] 04:14:13,380 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 04:14:13,380 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:13,382 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 04:14:13,382 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 04:14:13,384 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:13,384 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 04:14:13,384 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior361#-1500450076] 04:14:13,396 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower362#-773659537] 04:14:13,396 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader363#-1155867856] 04:14:13,401 AM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 04:14:13,401 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:13,402 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:14:13,402 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:14:13,402 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:14:13,402 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:14:13,403 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 04:14:13,403 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 04:14:13,404 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 04:14:13,404 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 04:14:13,404 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:14:13,405 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:14:13,405 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 04:14:13,405 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:13,405 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 04:14:13,406 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior364#820921764] 04:14:13,416 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower365#-612808010] 04:14:13,416 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader366#-841712142] 04:14:13,421 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:13,422 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 04:14:13,423 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior367#-531187031] 04:14:13,434 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower368#2131388461] 04:14:13,434 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader369#3216506] 04:14:13,437 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 04:14:13,437 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:13,437 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:14:13,438 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:14:13,438 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:14:13,438 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:14:13,438 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:14:13,438 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:14:13,438 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:14:13,438 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:13,439 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:14:13,439 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 04:14:13,439 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 04:14:13,439 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior370#-665521017] 04:14:13,450 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower371#175232048] 04:14:13,450 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader372#-313424662] 04:14:13,453 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 04:14:13,453 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:13,454 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 04:14:13,455 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:14:13,455 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 04:14:13,455 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 04:14:13,455 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:14:13,455 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 04:14:13,455 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:13,455 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:14:13,455 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 04:14:13,456 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:14:13,456 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:14:13,456 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 04:14:13,456 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 04:14:13,457 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 04:14:13,457 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:14:13,457 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 04:14:13,457 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 04:14:13,457 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 04:14:13,457 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 04:14:13,457 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 04:14:13,457 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:13,458 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 04:14:13,458 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 04:14:13,458 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:14:13,458 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:14:13,458 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior373#792099218] 04:14:13,469 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower374#134979263] 04:14:13,469 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader375#-1910895929] 04:14:13,474 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 04:14:13,474 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:13,475 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 04:14:13,476 AM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:14:13,476 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:13,477 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 04:14:13,477 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior376#-507478742] 04:14:13,487 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower377#-1275513026] 04:14:13,488 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader378#-1209899247] 04:14:13,491 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:13,496 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior379#1012996333] 04:14:13,506 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower380#-1426527377] 04:14:13,506 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader381#-274662208] 04:14:13,511 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 04:14:13,511 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:13,511 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 04:14:13,512 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:14:13,513 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:14:13,513 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:14:13,513 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:14:13,513 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:14:13,513 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:14:13,513 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:14:13,514 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:13,514 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:14:13,514 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 04:14:13,514 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 04:14:13,514 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 04:14:13,514 AM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 04:14:13,515 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior382#1735258064] 04:14:13,527 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower383#-445640880] 04:14:13,528 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader384#-1822554965] 04:14:13,533 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [11/08/2025 04:14:13.536] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@d112715 [INFO] [pekkoDeadLetter][11/08/2025 04:14:13.536] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:14:13,537 AM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:14:13,538 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 04:14:13,539 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 04:14:13,539 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 04:14:13,539 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 04:14:13,540 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 04:14:13,540 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 04:14:13,540 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 04:14:13,540 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 04:14:13,541 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/junit-5004254216579918837/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 04:14:13,542 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-5004254216579918837/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:14:13,542 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-5004254216579918837/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:14:13,542 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 04:14:13,542 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:14:13,542 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 04:14:13,545 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:14:13,545 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 04:14:13,545 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 04:14:13,545 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 04:14:13,545 AM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 04:14:13,545 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 04:14:13,545 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-5004254216579918837/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000690EC395-20869044.tmp 04:14:13,552 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-5004254216579918837/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000690EC395-20869044.v1 04:14:13,552 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-5004254216579918837/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:14:13,552 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-5004254216579918837/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000690EC395-20869044.v1 04:14:13,552 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-5004254216579918837/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:14:13,552 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-5004254216579918837/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:14:13,552 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-11-08T04:14:13.545689668Z, file=/tmp/junit-5004254216579918837/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000690EC395-20869044.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:14:13,552 AM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot completed in 6.793 ms, resetting timer for the next recovery snapshot 04:14:13,552 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 04:14:13,552 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 04:14:13,552 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 04:14:13,552 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 04:14:13,552 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 04:14:13,552 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: journal recovery completedin 288.6 μs with journalIndex=1 04:14:13,552 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 04:14:13,553 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 04:14:13,654 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-5004254216579918837/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:14:13,654 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-5004254216579918837/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000690EC395-20869044.v1 04:14:13,655 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-5004254216579918837/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:14:13,655 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-5004254216579918837/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:14:13,655 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-11-08T04:14:13.545689668Z, file=/tmp/junit-5004254216579918837/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000690EC395-20869044.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 04:14:13,655 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 04:14:13,656 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 04:14:13,656 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:14:13,656 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 04:14:13,656 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 04:14:13,656 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 04:14:13,656 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 04:14:13,656 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 04:14:13,656 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 04:14:13,656 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:13,656 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 04:14:13,656 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 04:14:13,656 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 116.2 ms 04:14:13,658 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 04:14:13,658 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 04:14:13,658 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 04:14:13,658 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 04:14:13,658 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 04:14:13,658 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 04:14:13,658 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 04:14:13,658 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 04:14:13,658 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 04:14:13,663 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 04:14:13,663 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 04:14:13,663 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 04:14:13,663 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 6.946 ms 04:14:13,663 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 3.090 μs 04:14:13,663 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c091e460@a1ead85} 04:14:13,663 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 04:14:13,663 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 04:14:13,663 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 04:14:13,663 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 04:14:13,663 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 04:14:13,663 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 04:14:13,663 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 04:14:13,663 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 224.1 μs 04:14:13,663 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 04:14:13,663 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 04:14:13,663 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 04:14:13,663 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c091e460@a1ead85} 04:14:13,664 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d873495] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-5004254216579918837/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000690EC395-2790A806.tmp 04:14:13,663 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 5.123 ms 04:14:13,664 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) [WARN] [11/08/2025 04:14:13.664] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] 04:14:13,664 AM [test-pekko.actor.default-dispatcher-7] [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][11/08/2025 04:14:13.664] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:14:13,666 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d873495] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-5004254216579918837/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000690EC395-2790A806.v1 04:14:13,666 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d873495] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-5004254216579918837/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000690EC395-2790A806.v1 04:14:13,666 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d873495] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-5004254216579918837/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:14:13,666 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d873495] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-5004254216579918837/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000690EC395-20869044.v1 04:14:13,666 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d873495] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-5004254216579918837/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:14:13,666 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d873495] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-5004254216579918837/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:14:13,666 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d873495] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-11-08T04:14:13.545689668Z, file=/tmp/junit-5004254216579918837/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000690EC395-20869044.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:14:13,667 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d873495] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-11-08T04:14:13.663791622Z, file=/tmp/junit-5004254216579918837/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000690EC395-2790A806.v1, size=555, entryCompress=NONE, stateCompress=NONE} 04:14:13,667 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d873495] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 04:14:13,667 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 04:14:13,667 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-11-08T04:14:13.663791622Z 04:14:13,667 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 04:14:13,667 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 04:14:13,667 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 3.438 ms 04:14:13,667 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 04:14:13,667 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 04:14:13,667 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 04:14:13,667 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 130.6 μs 04:14:13,667 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 04:14:13,667 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 04:14:13,857 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-5004254216579918837/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000690EC395-2790A806.v1 04:14:13,858 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-5004254216579918837/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:14:13,858 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-5004254216579918837/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:14:13,858 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-5004254216579918837/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:14:13,858 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-11-08T04:14:13.663791622Z, file=/tmp/junit-5004254216579918837/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000690EC395-2790A806.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 04:14:13,861 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior385#-1041782968] 04:14:13,873 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower386#1056192941] 04:14:13,873 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader387#981339187] 04:14:13,873 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 04:14:13,874 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#851,testCaptureSnapshotOnLastEntryInAppendEntries-writer-155]/waiting 04:14:13,874 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 206.8 ms 04:14:13,874 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 16.90 μs 04:14:13,874 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 04:14:13,874 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 04:14:13,874 AM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 04:14:13,874 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 04:14:13,874 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 04:14:13,880 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:13,882 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior388#1895444434] 04:14:13,893 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower389#-601206849] 04:14:13,893 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader390#665293735] 04:14:13,897 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 04:14:13,897 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:13,898 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 04:14:13,899 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 04:14:13,899 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior391#299540921] 04:14:13,910 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower392#1275936645] 04:14:13,910 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader393#-1686314024] 04:14:13,914 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 04:14:13,914 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:13,915 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:14:13,917 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:14:13,917 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:14:13,917 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:14:13,917 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:14:13,917 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 04:14:13,917 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:14:13,918 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:13,918 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:14:13,918 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 04:14:13,919 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 04:14:13,920 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior394#-739218850] 04:14:13,930 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower395#-2072836155] 04:14:13,931 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader396#-46938630] 04:14:13,935 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 04:14:13,935 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:13,935 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:14:13,936 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:14:13,936 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:14:13,937 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:13,937 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:14:13,937 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 04:14:13,937 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:14:13,938 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 04:14:13,938 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:13,938 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 04:14:13,938 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior397#-1898192642] 04:14:13,949 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower398#1111455740] 04:14:13,949 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader399#1071690794] 04:14:13,956 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:13,957 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior400#2083511122] 04:14:13,967 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower401#1296396262] 04:14:13,968 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader402#-1820879703] 04:14:13,973 AM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 04:14:13,973 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:13,975 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:14:13,976 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:14:13,976 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:14:13,976 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:13,977 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:14:13,977 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 04:14:13,977 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:14:13,977 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 04:14:13,978 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:13,978 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 04:14:13,978 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:14:13,978 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 04:14:13,979 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:13,979 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 04:14:13,979 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior403#-766771271] 04:14:13,990 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower404#-1678416825] 04:14:13,990 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader405#236061779] 04:14:13,995 AM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 04:14:13,995 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:13,997 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 04:14:13,998 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:14:13,998 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 04:14:13,998 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 04:14:13,998 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 04:14:13,998 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 04:14:13,998 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:13,999 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 04:14:13,999 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 04:14:13,999 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 04:14:14,0 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior406#-2093198788] 04:14:14,11 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower407#1398654882] 04:14:14,11 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader408#1079196076] 04:14:14,15 AM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 04:14:14,16 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:14,18 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 04:14:14,19 AM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader411 04:14:14,19 AM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader411 04:14:14,21 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 04:14:14,22 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior409#-1804246008] 04:14:14,33 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower410#-2043544721] 04:14:14,33 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader411#-1267881105] 04:14:14,37 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 04:14:14,37 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:14,38 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:14:14,38 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:14:14,39 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:14:14,39 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:14:14,39 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:14:14,39 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:14:14,39 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:14:14,39 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:14,39 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:14:14,39 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 04:14:14,39 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 04:14:14,40 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior412#-1329624399] 04:14:14,51 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower413#-1244403411] 04:14:14,51 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader414#18169987] 04:14:14,55 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 04:14:14,55 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:14,55 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:14:14,56 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:14:14,56 AM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:14:14,57 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:14,57 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:14:14,57 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior415#-1166704491] 04:14:14,68 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower416#-2142756309] 04:14:14,68 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader417#-1502202090] 04:14:14,72 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [11/08/2025 04:14:14.073] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@322df91 [INFO] [pekkoDeadLetter][11/08/2025 04:14:14.074] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:14:14,74 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 04:14:14,74 AM [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'. 04:14:14,74 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 04:14:14,74 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 04:14:14,76 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 04:14:14,77 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 04:14:14,77 AM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 04:14:14,77 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 04:14:14,77 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 04:14:14,79 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/junit-6755411451528117454/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 04:14:14,79 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6755411451528117454/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:14:14,79 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6755411451528117454/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:14:14,79 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 04:14:14,79 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 04:14:14,79 AM [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 04:14:14,82 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 04:14:14,82 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 04:14:14,82 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: taking snapshot to clear Pekko persistence to 1 04:14:14,82 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 04:14:14,82 AM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Taking snapshot on entry with index -1 04:14:14,82 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 04:14:14,82 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-6755411451528117454/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000690EC396-04EE20D6.tmp 04:14:14,84 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-6755411451528117454/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000690EC396-04EE20D6.v1 04:14:14,84 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6755411451528117454/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 04:14:14,84 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-6755411451528117454/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000690EC396-04EE20D6.v1 04:14:14,84 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6755411451528117454/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:14:14,84 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6755411451528117454/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:14:14,84 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-11-08T04:14:14.082714838Z, file=/tmp/junit-6755411451528117454/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000690EC396-04EE20D6.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:14:14,84 AM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot completed in 2.060 ms, resetting timer for the next recovery snapshot 04:14:14,84 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed and cannot restore from snapshot 04:14:14,84 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 04:14:14,84 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 04:14:14,84 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 04:14:14,84 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 04:14:14,85 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal recovery completedin 161.2 μs with journalIndex=1 04:14:14,85 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Journal recovery completed and cannot restore from snapshot 04:14:14,85 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: ignoring DeleteMessagesSuccess(1) 04:14:14,85 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 04:14:14,85 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 04:14:14,85 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:14:14,85 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 04:14:14,85 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 04:14:14,86 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 04:14:14,86 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 04:14:14,86 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 04:14:14,86 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 04:14:14,86 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 04:14:14,86 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 04:14:14,86 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:14,86 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 04:14:14,86 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 04:14:14,86 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 04:14:14,86 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 04:14:14,86 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 04:14:14,86 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 04:14:14,86 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 3 commands after 8.854 ms 04:14:14,86 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 04:14:14,91 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 3 completion(s) pending 04:14:14,91 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 3 completion(s) 04:14:14,91 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 3 commands in 5.240 ms 04:14:14,91 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 04:14:14,91 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 3.720 μs 04:14:14,91 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c091e460@40e8db5a} 04:14:14,91 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 04:14:14,91 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c091e460@40e8db5a} 04:14:14,91 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 04:14:14,91 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 04:14:14,91 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 04:14:14,91 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 04:14:14,91 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 04:14:14,91 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 04:14:14,91 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 04:14:14,91 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 254.2 μs 04:14:14,91 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 04:14:14,91 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 04:14:14,91 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 04:14:14,91 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c091e460@40e8db5a} 04:14:14,91 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 5.354 ms 04:14:14,91 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 04:14:14,91 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d212371] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-6755411451528117454/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000690EC396-05782DF8.tmp [WARN] [11/08/2025 04:14:14.092] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][11/08/2025 04:14:14.092] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:14:14,92 AM [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'. 04:14:14,94 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d212371] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-6755411451528117454/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000690EC396-05782DF8.v1 04:14:14,94 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d212371] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-6755411451528117454/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000690EC396-05782DF8.v1 04:14:14,94 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d212371] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6755411451528117454/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 04:14:14,94 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d212371] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-6755411451528117454/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000690EC396-04EE20D6.v1 04:14:14,94 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d212371] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6755411451528117454/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:14:14,94 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d212371] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6755411451528117454/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:14:14,94 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d212371] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-11-08T04:14:14.082714838Z, file=/tmp/junit-6755411451528117454/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000690EC396-04EE20D6.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:14:14,94 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d212371] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-11-08T04:14:14.091762168Z, file=/tmp/junit-6755411451528117454/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000690EC396-05782DF8.v1, size=539, entryCompress=NONE, stateCompress=NONE} 04:14:14,94 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d212371] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 04:14:14,94 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 04:14:14,94 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-11-08T04:14:14.091762168Z 04:14:14,94 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 04:14:14,94 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 04:14:14,94 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 3.014 ms 04:14:14,95 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 04:14:14,95 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 04:14:14,95 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 04:14:14,95 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 274.6 μs 04:14:14,95 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 04:14:14,95 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 04:14:14,238 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-6755411451528117454/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000690EC396-05782DF8.v1 04:14:14,238 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6755411451528117454/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 04:14:14,238 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6755411451528117454/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:14:14,238 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6755411451528117454/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:14:14,238 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-11-08T04:14:14.091762168Z, file=/tmp/junit-6755411451528117454/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000690EC396-05782DF8.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 04:14:14,240 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior418#-1361792682] 04:14:14,252 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower419#-1731321838] 04:14:14,252 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader420#-1377030934] 04:14:14,252 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 04:14:14,252 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#856,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156]/waiting 04:14:14,253 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 157.8 ms 04:14:14,253 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 21.42 μs 04:14:14,253 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 04:14:14,253 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 04:14:14,253 AM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 04:14:14,253 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 04:14:14,253 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 04:14:14,258 AM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 04:14:14,258 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:14,259 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:14:14,260 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 04:14:14,260 AM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 04:14:14,260 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:14,261 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 04:14:14,261 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior421#1310474835] 04:14:14,272 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower422#1867934690] 04:14:14,272 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader423#-478233038] 04:14:14,275 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 04:14:14,275 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:14,276 AM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 04:14:14,276 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 04:14:14,277 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 04:14:14,277 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 04:14:14,277 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 04:14:14,277 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior424#2060657056] 04:14:14,288 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower425#29791899] 04:14:14,288 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader426#-574048807] 04:14:14,292 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 04:14:14,292 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:14,293 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 04:14:14,293 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 04:14:14,294 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:14:14,294 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 04:14:14,294 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:14:14,294 AM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 04:14:14,294 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 04:14:14,294 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 04:14:14,294 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 04:14:14,294 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 04:14:14,294 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 04:14:14,294 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:14,294 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 04:14:14,294 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 04:14:14,295 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:14:14,295 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:14:14,295 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 04:14:14,295 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 04:14:14,295 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:14:14,295 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:14:14,295 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 04:14:14,295 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 04:14:14,296 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior427#1525468944] 04:14:14,307 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower428#-446076871] 04:14:14,307 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader429#1301500953] 04:14:14,311 AM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 04:14:14,311 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:14,312 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 04:14:14,312 AM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 04:14:14,313 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior430#-348146399] 04:14:14,324 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower431#1238122253] 04:14:14,324 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader432#750784942] 04:14:14,328 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 04:14:14,328 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:14,329 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:14:14,329 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:14:14,329 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:14:14,329 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:14:14,330 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 04:14:14,331 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 04:14:14,331 AM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 04:14:14,331 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:14:14,331 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 04:14:14,331 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 04:14:14,331 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 04:14:14,331 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 04:14:14,332 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:14,332 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 04:14:14,332 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 04:14:14,332 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:14:14,332 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:14:14,333 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior433#-1811988119] 04:14:14,344 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower434#1033832709] 04:14:14,344 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader435#1535913708] 04:14:14,348 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 04:14:14,348 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:14,350 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:14:14,351 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:14:14,351 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:14:14,352 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:14,352 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:14:14,352 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 04:14:14,353 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:14:14,353 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 04:14:14,353 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:14,353 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 04:14:14,353 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 04:14:14,354 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:14:14,354 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 04:14:14,354 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:14,354 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 04:14:14,355 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior436#1959277199] 04:14:14,366 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower437#-55851805] 04:14:14,366 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader438#-683556257] 04:14:14,372 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 04:14:14,372 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:14,572 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:14:14,573 AM [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.233:17355, Removed) 04:14:14,573 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 04:14:14,573 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 04:14:14,573 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 04:14:14,573 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 04:14:14,573 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior439#-455584077] 04:14:14,584 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower440#-662801989] 04:14:14,584 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader441#-80641048] 04:14:14,588 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:14,588 AM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 04:14:14,840 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:14:14,840 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior442#-210041277] 04:14:14,851 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower443#1532479354] 04:14:14,851 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader444#512102067] 04:14:14,856 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 04:14:14,856 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:14,858 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 04:14:14,859 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 04:14:14,860 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior445#-401967762] 04:14:14,871 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower446#946060574] 04:14:14,871 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader447#1341674038] 04:14:14,874 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 04:14:14,874 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:14,875 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 04:14:14,876 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:14:14,876 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 04:14:14,876 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 04:14:14,876 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 04:14:14,876 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 04:14:14,876 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 04:14:14,876 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:14,876 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 04:14:14,876 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 04:14:14,877 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:14:14,877 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:14:14,877 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 04:14:14,877 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 04:14:14,877 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:14:14,877 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:14:14,877 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 04:14:14,877 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 04:14:14,877 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 04:14:14,877 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 04:14:14,878 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior448#1060118444] 04:14:14,889 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower449#-1079616438] 04:14:14,889 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader450#1642314451] 04:14:14,894 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 04:14:14,894 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:14,895 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:14:14,895 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:14:14,895 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:14:14,895 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:14:14,896 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 04:14:14,897 AM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:14:14,897 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior451#-1941820321] 04:14:14,898 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower452#1515564639] 04:14:14,898 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader453#-584617922] 04:14:14,902 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 04:14:14,903 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:14,903 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 04:14:14,904 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 04:14:14,904 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:14:14,904 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 04:14:14,905 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 04:14:14,905 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior454#1915342582] 04:14:14,906 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower455#1620658945] 04:14:14,906 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader456#1144114281] 04:14:14,909 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [11/08/2025 04:14:14.909] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@2d5ebb68 [INFO] [pekkoDeadLetter][11/08/2025 04:14:14.910] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:14:14,910 AM [test-pekko.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:14:14,910 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 04:14:14,910 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:14:14,910 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:14:14,911 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 04:14:14,911 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 04:14:14,911 AM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 04:14:14,911 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 04:14:14,911 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:14:14,914 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 04:14:14,914 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:14:14,914 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:14:14,914 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 04:14:14,914 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:14:14,914 AM [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 04:14:14,920 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:14:14,920 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 04:14:14,920 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 04:14:14,920 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 04:14:14,920 AM [test-pekko.actor.default-dispatcher-15] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Taking snapshot on entry with index -1 04:14:14,920 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 04:14:14,920 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690EC396-36DD9D79.tmp 04:14:14,922 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690EC396-36DD9D79.v1 04:14:14,922 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690EC396-36DD9D79.v1 04:14:14,922 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:14:14,922 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:14:14,922 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:14:14,922 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-11-08T04:14:14.920493433Z, file=/tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690EC396-36DD9D79.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:14:14,922 AM [test-pekko.actor.default-dispatcher-15] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot completed in 2.534 ms, resetting timer for the next recovery snapshot 04:14:14,923 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 04:14:14,923 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 04:14:14,923 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 04:14:14,923 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 04:14:14,923 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 04:14:14,923 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 277.0 μs with journalIndex=1 04:14:14,923 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 04:14:14,924 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 04:14:15,25 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690EC396-36DD9D79.v1 04:14:15,25 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:14:15,25 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:14:15,25 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:14:15,25 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-11-08T04:14:14.920493433Z, file=/tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690EC396-36DD9D79.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 04:14:15,27 AM [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]]} 04:14:15,27 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 04:14:15,27 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:14:15,27 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 04:14:15,27 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 04:14:15,27 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 115.8 ms 04:14:15,28 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 04:14:15,28 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 04:14:15,28 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 04:14:15,28 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 04:14:15,28 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 04:14:15,28 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 04:14:15,28 AM [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} 04:14:15,28 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 04:14:15,28 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 04:14:15,28 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 04:14:15,28 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 04:14:15,28 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 04:14:15,28 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 04:14:15,28 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 04:14:15,28 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 04:14:15,28 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 04:14:15,28 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 04:14:15,28 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 04:14:15,28 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 04:14:15,28 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 04:14:15,28 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 04:14:15,29 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 04:14:15,31 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 04:14:15,31 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 3.939 ms 04:14:15,31 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 3.320 μs 04:14:15,31 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 04:14:15,31 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 04:14:15,32 AM [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/0x00000007c091e460@44cd9eb1} 04:14:15,32 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 04:14:15,33 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 04:14:15,33 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 04:14:15,33 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 04:14:15,33 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 04:14:15,33 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 1.993 ms 04:14:15,33 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:14:15,33 AM [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/0x00000007c091e460@44cd9eb1} 04:14:15,33 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 04:14:15,33 AM [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] 04:14:15,34 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 04:14:15,34 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 04:14:15,34 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 04:14:15,34 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 04:14:15,34 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 04:14:15,34 AM [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/0x00000007c091e460@44cd9eb1} 04:14:15,34 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 5.195 ms 04:14:15,34 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d104170] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690EC397-0207F5EB.tmp [WARN] [11/08/2025 04:14:15.034] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] 04:14:15,35 AM [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'. [INFO] [pekkoDeadLetter][11/08/2025 04:14:15.034] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:14:15,36 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d104170] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690EC397-0207F5EB.v1 04:14:15,36 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d104170] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690EC396-36DD9D79.v1 04:14:15,37 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d104170] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:14:15,37 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d104170] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:14:15,37 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d104170] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:14:15,37 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d104170] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690EC397-0207F5EB.v1 04:14:15,37 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d104170] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-11-08T04:14:14.920493433Z, file=/tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690EC396-36DD9D79.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:14:15,37 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d104170] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-11-08T04:14:15.034076139Z, file=/tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690EC397-0207F5EB.v1, size=573, entryCompress=NONE, stateCompress=NONE} 04:14:15,37 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d104170] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 04:14:15,37 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 04:14:15,37 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-11-08T04:14:15.034076139Z 04:14:15,37 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 04:14:15,37 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 04:14:15,37 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 4.061 ms 04:14:15,37 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 04:14:15,38 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 04:14:15,38 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 04:14:15,38 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 181.7 μs 04:14:15,38 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 04:14:15,38 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:14:15,280 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:14:15,280 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:14:15,280 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:14:15,280 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690EC397-0207F5EB.v1 04:14:15,280 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-11-08T04:14:15.034076139Z, file=/tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690EC397-0207F5EB.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 04:14:15,283 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 04:14:15,294 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#860,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/waiting 04:14:15,294 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 256.2 ms 04:14:15,294 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 19.79 μs 04:14:15,294 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 04:14:15,294 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:14:15,294 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:14:15,294 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:14:15,294 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [11/08/2025 04:14:15.296] [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@4862ec77 [INFO] [pekkoDeadLetter][11/08/2025 04:14:15.296] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:14:15,297 AM [test-pekko.actor.default-dispatcher-15] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:14:15,297 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 04:14:15,297 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:14:15,297 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:14:15,298 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 04:14:15,298 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 04:14:15,298 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 04:14:15,299 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 04:14:15,299 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:14:15,300 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:14:15,300 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:14:15,300 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:14:15,300 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:14:15,300 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690EC397-0207F5EB.v1 04:14:15,301 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-11-08T04:14:15.034076139Z, file=/tmp/junit-13966568870126793157/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690EC397-0207F5EB.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 04:14:15,301 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 04:14:15,302 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-11-08T04:14:15.034076139Z 04:14:15,302 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:14:15,302 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 311.6 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 04:14:15,302 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 504.8 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 04:14:15,302 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 04:14:15,302 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:14:15,302 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 04:14:15,302 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 04:14:15,302 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 04:14:15,302 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 04:14:15,302 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 04:14:15,302 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 161.5 μs with journalIndex=4 04:14:15,302 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 04:14:15,396 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior457#1973025892] 04:14:15,408 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower458#405235724] 04:14:15,408 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader459#-1966422189] 04:14:15,408 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 04:14:15,410 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#865,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158]/waiting 04:14:15,410 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 111.2 ms 04:14:15,410 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 18.03 μs 04:14:15,410 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 04:14:15,410 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:14:15,410 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:14:15,410 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:14:15,410 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:14:15,417 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 04:14:15,417 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:15,718 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 04:14:15,848 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:14:15,848 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 04:14:16,99 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 04:14:16,299 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 04:14:16,300 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior460#-680928513] 04:14:16,311 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower461#-2020071639] 04:14:16,311 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader462#-1382047774] 04:14:16,317 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:14:16,317 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:14:16,317 AM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 04:14:16,317 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 04:14:16,317 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 04:14:16,318 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 04:14:16,318 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior463#1674134717] 04:14:16,319 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower464#1961229314] 04:14:16,319 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader465#-248241115] [INFO] [11/08/2025 04:14:16.320] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 04:14:16,320 AM [test-pekko.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [11/08/2025 04:14:16.321] [test-pekko.actor.default-dispatcher-6] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.233:17355) 04:14:16,321 AM [test-pekko.actor.default-dispatcher-6] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1035206759] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][11/08/2025 04:14:16.321] [test-pekko.actor.default-dispatcher-11] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1035206759] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:14:16,322 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.233:17355] - Exiting completed [INFO] [11/08/2025 04:14:16.322] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.233:17355] - Exiting completed 04:14:16,322 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.233:17355] - Shutting down... [INFO] [11/08/2025 04:14:16.322] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.233:17355] - Shutting down... [INFO] [11/08/2025 04:14:16.322] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.233:17355] - Successfully shut down 04:14:16,324 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.233:17355] - Successfully shut down [INFO] [11/08/2025 04:14:16.324] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.171.233:17355/system/remoting-terminator] Shutting down remote daemon. 04:14:16,324 AM [test-pekko.actor.default-dispatcher-15] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [11/08/2025 04:14:16.324] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.171.233:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 04:14:16,324 AM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. 04:14:16,327 AM [test-pekko.actor.default-dispatcher-15] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [11/08/2025 04:14:16.327] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.233:17355/system/remoting-terminator] Remoting shut down.