[DEBUG] [03/18/2026 08:22:34.386] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 08:22:34,386 AM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [03/18/2026 08:22:34.386] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [03/18/2026 08:22:34.386] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [03/18/2026 08:22:34.398] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.100:17355] with UID [2158455332332032271] 08:22:34,398 AM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.100:17355] with UID [2158455332332032271] [INFO] [03/18/2026 08:22:34.398] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.100:17355] - Starting up, Pekko version [1.2.1] ... 08:22:34,399 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.100:17355] - Starting up, Pekko version [1.2.1] ... [INFO] [03/18/2026 08:22:34.401] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.100:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 08:22:34,401 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.100:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [03/18/2026 08:22:34.401] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.100:17355] - Started up successfully 08:22:34,401 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.100:17355] - Started up successfully 08:22:34,404 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.100:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [03/18/2026 08:22:34.403] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.100:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 08:22:34,404 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.100:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [03/18/2026 08:22:34.403] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.100:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 08:22:34,422 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:34,510 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 08:22:34,510 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 08:22:34,511 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior420#-983334082] 08:22:34,512 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower421#82002586] 08:22:34,512 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader422#-565641373] 08:22:34,515 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:34,516 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]]} 08:22:34,516 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:22:34,517 AM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 08:22:34,517 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 08:22:34,517 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 08:22:34,517 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 08:22:34,517 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} 08:22:34,517 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 08:22:34,517 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 08:22:34,518 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 08:22:34,518 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 08:22:34,518 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 08:22:34,519 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior423#452569735] 08:22:34,520 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower424#754337590] 08:22:34,520 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader425#-1421528954] 08:22:34,522 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:34,523 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 08:22:34,523 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 08:22:34,524 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior426#1053942400] 08:22:34,524 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower427#278055417] 08:22:34,524 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader428#-1736184761] 08:22:34,526 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:34,527 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 08:22:34,527 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 08:22:34,528 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} 08:22:34,528 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 08:22:34,528 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 08:22:34,529 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 08:22:34,529 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 08:22:34,529 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. 08:22:34,529 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 08:22:34,530 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 08:22:34,530 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 08:22:34,530 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 08:22:34,531 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior429#-1927751632] 08:22:34,532 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower430#-808832290] 08:22:34,532 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader431#-1224126058] 08:22:34,534 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:34,534 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 08:22:34,535 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 08:22:34,535 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:34,535 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 08:22:34,535 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 08:22:34,535 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 08:22:34,536 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 08:22:34,536 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 08:22:34,536 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior432#2002802720] 08:22:34,536 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower433#-1260219535] 08:22:34,536 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader434#-1309155250] 08:22:34,538 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:34,539 AM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 08:22:34,540 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior435#-159048977] 08:22:34,540 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower436#-1423315385] 08:22:34,540 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader437#2008275296] 08:22:34,542 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:34,543 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 08:22:34,543 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 08:22:34,543 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior438#842420826] 08:22:34,544 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower439#279510309] 08:22:34,544 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader440#1830296219] 08:22:34,546 AM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 08:22:34,546 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:34,548 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 08:22:34,548 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 08:22:34,548 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:22:34,548 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 08:22:34,548 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 08:22:34,549 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 08:22:34,549 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 08:22:34,549 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 08:22:34,551 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 08:22:34,551 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior441#592567139] 08:22:34,552 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower442#1741975452] 08:22:34,552 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader443#-610213382] 08:22:34,554 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 08:22:34,554 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:34,555 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]]} 08:22:34,555 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 08:22:34,556 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} 08:22:34,556 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 08:22:34,556 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior444#1036734124] 08:22:34,556 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower445#1580897805] 08:22:34,557 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader446#671704684] 08:22:34,558 AM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 08:22:34,559 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:34,559 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 08:22:34,559 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 08:22:34,559 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:22:34,559 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 08:22:34,560 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 08:22:34,560 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 08:22:34,560 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 08:22:34,560 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 08:22:34,560 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 08:22:34,561 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]]} 08:22:34,561 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 08:22:34,561 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} 08:22:34,561 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 08:22:34,562 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior447#1304671421] 08:22:34,562 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower448#-2078874077] 08:22:34,562 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader449#2109292109] 08:22:34,565 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:34,565 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 08:22:34,565 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior450#167129215] 08:22:34,566 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower451#-524652043] 08:22:34,566 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader452#201343957] 08:22:34,568 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 08:22:34,568 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:34,568 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 08:22:34,569 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]]} 08:22:34,569 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:22:34,569 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 08:22:34,569 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 08:22:34,569 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 08:22:34,569 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 08:22:34,569 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} 08:22:34,569 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 08:22:34,569 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 08:22:34,569 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 08:22:34,569 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior453#1966798041] 08:22:34,570 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower454#155357140] 08:22:34,570 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader455#23388071] 08:22:34,574 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 08:22:34,574 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:34,575 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]]} 08:22:34,575 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:22:34,575 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 08:22:34,575 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 08:22:34,575 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 08:22:34,576 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 08:22:34,576 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} 08:22:34,576 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 08:22:34,576 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 08:22:34,576 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 08:22:34,576 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 08:22:34,576 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 08:22:34,576 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 08:22:34,577 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]]} 08:22:34,578 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 08:22:34,578 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 08:22:34,578 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 08:22:34,578 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 08:22:34,578 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 08:22:34,578 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 08:22:34,578 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} 08:22:34,579 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 08:22:34,579 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 08:22:34,579 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 08:22:34,579 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 08:22:34,580 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#1749121436] 08:22:34,581 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower457#572505339] 08:22:34,581 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader458#-503510724] 08:22:34,584 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 08:22:34,584 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:34,585 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 08:22:34,585 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 08:22:34,585 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} 08:22:34,585 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 08:22:34,586 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#6432612] 08:22:34,586 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower460#-1834020073] 08:22:34,587 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader461#-1863628] 08:22:34,589 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:34,591 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#-48460339] 08:22:34,591 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower463#-990567476] 08:22:34,592 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader464#-994018246] 08:22:34,594 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 08:22:34,594 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:34,594 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 08:22:34,595 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 08:22:34,595 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]]} 08:22:34,595 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:22:34,595 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 08:22:34,595 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 08:22:34,595 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 08:22:34,595 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 08:22:34,596 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} 08:22:34,596 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 08:22:34,596 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 08:22:34,596 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 08:22:34,596 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 08:22:34,596 AM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 08:22:34,596 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#-690873917] 08:22:34,597 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower466#-1263128971] 08:22:34,597 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader467#1857051370] 08:22:34,599 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries 08:22:34,618 AM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:22:34,619 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] [WARN] [03/18/2026 08:22:34.620] [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@21b5cf81 [INFO] [pekkoDeadLetter][03/18/2026 08:22:34.620] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:22:34,620 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'. 08:22:34,620 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 08:22:34,621 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:22:34,621 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:22:34,621 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 08:22:34,622 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 08:22:34,622 AM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 08:22:34,622 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 08:22:34,622 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/junit-2282462067957755894/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 08:22:34,913 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=0, votedFor=null 08:22:34,913 AM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 08:22:34,914 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-2282462067957755894/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 08:22:34,914 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-2282462067957755894/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 08:22:34,914 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-2282462067957755894/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 08:22:34,914 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 08:22:34,914 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 08:22:34,914 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 08:22:34,914 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 08:22:34,914 AM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed in in 292.0 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 08:22:34,914 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed and can restore from snapshot 08:22:34,914 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: writer thread VirtualThread[#624,testCaptureSnapshotOnLastEntryInAppendEntries-writer-154]/runnable started 08:22:34,914 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 08:22:34,914 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands [WARN] [03/18/2026 08:22:34.915] [test-pekko.actor.default-dispatcher-7] [pekko://test/temp/_user_testCaptureSnapshotOnLastEntryInAppendEntries$a] received dead letter: ActorIdentity(,Some(TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries])) 08:22:34,915 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-2282462067957755894/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 08:22:34,915 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-2282462067957755894/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 08:22:34,915 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-2282462067957755894/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 08:22:34,915 AM [test-pekko.actor.default-dispatcher-7] [INFO] PromiseActorRef - pekkoDeadLetter Message [org.apache.pekko.actor.ActorIdentity] to Actor[pekko://test/temp/_user_testCaptureSnapshotOnLastEntryInAppendEntries$a] was not delivered. [2] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/temp/_user_testCaptureSnapshotOnLastEntryInAppendEntries$a] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][03/18/2026 08:22:34.915] [test-pekko.actor.default-dispatcher-6] [pekko://test/temp/_user_testCaptureSnapshotOnLastEntryInAppendEntries$a] Message [org.apache.pekko.actor.ActorIdentity] to Actor[pekko://test/temp/_user_testCaptureSnapshotOnLastEntryInAppendEntries$a] was not delivered. [2] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/temp/_user_testCaptureSnapshotOnLastEntryInAppendEntries$a] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:22:34,915 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 08:22:34,916 AM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]}" message is greater than follower's term 0 - updating term 08:22:35,6 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:22:35,6 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]]} 08:22:35,6 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 08:22:35,6 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:22:35,6 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 08:22:35,6 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 08:22:35,6 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 08:22:35,6 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 08:22:35,7 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 08:22:35,7 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 08:22:35,7 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} 08:22:35,7 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 08:22:35,7 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 08:22:35,7 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 08:22:35,7 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 08:22:35,7 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 08:22:35,7 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 08:22:35,7 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 92.22 ms 08:22:35,7 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 08:22:35,7 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 08:22:35,7 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 08:22:35,7 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 08:22:35,7 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 08:22:35,17 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-2282462067957755894/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 08:22:35,17 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-2282462067957755894/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 08:22:35,17 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-2282462067957755894/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 08:22:35,17 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 08:22:35,91 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 08:22:35,91 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 83.99 ms 08:22:35,91 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 08:22:35,91 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 4.680 μs 08:22:35,91 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 08:22:35,91 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/0x00000007c09374a8@686cf65e} 08:22:35,91 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 08:22:35,91 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 08:22:35,91 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 08:22:35,91 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 182.0 μs 08:22:35,91 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 08:22:35,91 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] 08:22:35,91 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 08:22:35,91 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 08:22:35,91 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 08:22:35,91 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 08:22:35,91 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 08:22:35,91 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/0x00000007c09374a8@686cf65e} 08:22:35,91 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d705609] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-2282462067957755894/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069BA60CB-057773ED.tmp 08:22:35,91 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 84.23 ms 08:22:35,91 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) [WARN] [03/18/2026 08:22:35.092] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][03/18/2026 08:22:35.092] [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. [3] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:22:35,92 AM [test-pekko.actor.default-dispatcher-8] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [3] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:22:35,118 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unhandled file /tmp/junit-2282462067957755894/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069BA60CB-057773ED.tmp 08:22:35,118 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-2282462067957755894/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 08:22:35,118 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-2282462067957755894/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 08:22:35,118 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-2282462067957755894/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 08:22:35,118 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 08:22:35,127 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d705609] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-2282462067957755894/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069BA60CB-057773ED.v1 08:22:35,127 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d705609] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-2282462067957755894/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069BA60CB-057773ED.v1 08:22:35,128 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d705609] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-2282462067957755894/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 08:22:35,128 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d705609] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-2282462067957755894/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 08:22:35,128 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d705609] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-2282462067957755894/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 08:22:35,128 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d705609] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2026-03-18T08:22:35.091714541Z, file=/tmp/junit-2282462067957755894/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069BA60CB-057773ED.v1, size=555, entryCompress=NONE, stateCompress=NONE} 08:22:35,128 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d705609] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 08:22:35,128 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 08:22:35,128 AM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2026-03-18T08:22:35.091714541Z 08:22:35,128 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 08:22:35,128 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 08:22:35,128 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 37.04 ms 08:22:35,128 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 08:22:35,128 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 08:22:35,128 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 08:22:35,128 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 08:22:35,128 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 276.3 μs 08:22:35,129 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 08:22:35,219 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-2282462067957755894/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069BA60CB-057773ED.v1 08:22:35,219 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-2282462067957755894/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 08:22:35,219 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-2282462067957755894/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 08:22:35,219 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-2282462067957755894/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 08:22:35,219 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2026-03-18T08:22:35.091714541Z, file=/tmp/junit-2282462067957755894/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069BA60CB-057773ED.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 08:22:35,222 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#816872203] 08:22:35,223 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower469#-158274007] 08:22:35,223 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader470#-1892103633] 08:22:35,223 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 08:22:35,223 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#624,testCaptureSnapshotOnLastEntryInAppendEntries-writer-154]/waiting 08:22:35,224 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 95.09 ms 08:22:35,224 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 17.31 μs 08:22:35,224 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 08:22:35,224 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminated thread VirtualThread[#624,testCaptureSnapshotOnLastEntryInAppendEntries-writer-154]/terminated 08:22:35,224 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:22:35,224 AM [test-pekko.actor.default-dispatcher-8] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:22:35,224 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 08:22:35,224 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 08:22:35,229 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:35,229 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior471#1198545470] 08:22:35,230 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower472#-1126180445] 08:22:35,230 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader473#733290145] 08:22:35,233 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 08:22:35,233 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:35,234 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 08:22:35,234 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 08:22:35,235 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior474#1724192485] 08:22:35,235 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower475#-925724696] 08:22:35,235 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader476#-173175788] 08:22:35,238 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 08:22:35,238 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:35,238 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 08:22:35,239 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]]} 08:22:35,239 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:22:35,239 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 08:22:35,239 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 08:22:35,239 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 08:22:35,239 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 08:22:35,239 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} 08:22:35,240 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 08:22:35,240 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 08:22:35,240 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 08:22:35,240 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#-1789803375] 08:22:35,240 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower478#1830012153] 08:22:35,241 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader479#924879426] 08:22:35,242 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 08:22:35,242 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:35,243 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 08:22:35,243 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]]} 08:22:35,243 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 08:22:35,244 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} 08:22:35,244 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 08:22:35,244 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 08:22:35,244 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]]} 08:22:35,244 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 08:22:35,244 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} 08:22:35,244 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 08:22:35,245 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#-1215911063] 08:22:35,245 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower481#392149859] 08:22:35,245 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader482#-1557663132] 08:22:35,247 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:35,247 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior483#-404217100] 08:22:35,248 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower484#1773319350] 08:22:35,248 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader485#-590922461] 08:22:35,250 AM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 08:22:35,250 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:35,250 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 08:22:35,251 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]]} 08:22:35,251 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 08:22:35,251 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} 08:22:35,251 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 08:22:35,251 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 08:22:35,252 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]]} 08:22:35,252 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 08:22:35,252 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} 08:22:35,252 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 08:22:35,252 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]]} 08:22:35,252 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 08:22:35,253 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} 08:22:35,253 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 08:22:35,253 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior486#661543013] 08:22:35,253 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower487#-851118416] 08:22:35,254 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader488#-10668150] 08:22:35,255 AM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 08:22:35,256 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:35,256 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]]} 08:22:35,256 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:22:35,256 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 08:22:35,256 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 08:22:35,256 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 08:22:35,256 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 08:22:35,256 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} 08:22:35,256 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 08:22:35,256 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 08:22:35,257 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 08:22:35,257 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior489#-617922462] 08:22:35,257 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower490#377511918] 08:22:35,257 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader491#91684987] 08:22:35,260 AM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 08:22:35,260 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:35,261 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 08:22:35,261 AM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader494 08:22:35,261 AM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader494 08:22:35,262 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:22:35,263 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior492#1406047404] 08:22:35,263 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower493#-1092032292] 08:22:35,264 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader494#542015109] 08:22:35,266 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 08:22:35,266 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:35,266 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 08:22:35,267 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]]} 08:22:35,267 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:22:35,267 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 08:22:35,267 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 08:22:35,267 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 08:22:35,267 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 08:22:35,267 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} 08:22:35,267 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 08:22:35,267 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 08:22:35,267 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 08:22:35,268 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior495#-302727747] 08:22:35,268 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower496#-1299533574] 08:22:35,268 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader497#-2086192117] 08:22:35,270 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 08:22:35,270 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:35,271 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 08:22:35,271 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]]} 08:22:35,271 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 08:22:35,271 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} 08:22:35,271 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 08:22:35,272 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#-529679171] 08:22:35,272 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower499#38488294] 08:22:35,272 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader500#-1906985590] 08:22:35,274 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 08:22:35,310 AM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 08:22:35,310 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] [WARN] [03/18/2026 08:22:35.311] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@40e6e227 [INFO] [pekkoDeadLetter][03/18/2026 08:22:35.311] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [4] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:22:35,311 AM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [4] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:22:35,311 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 08:22:35,312 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 08:22:35,312 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 08:22:35,312 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 08:22:35,313 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 08:22:35,313 AM [test-pekko.actor.default-dispatcher-8] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 08:22:35,313 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 08:22:35,313 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - /tmp/junit-4532329833831214361/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 08:22:35,336 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=0, votedFor=null 08:22:35,336 AM [test-pekko.actor.default-dispatcher-8] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=0} 08:22:35,336 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-4532329833831214361/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 08:22:35,336 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-4532329833831214361/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 08:22:35,336 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-4532329833831214361/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 08:22:35,336 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 08:22:35,336 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 08:22:35,336 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 08:22:35,336 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 08:22:35,336 AM [test-pekko.actor.default-dispatcher-8] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed in in 23.27 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 08:22:35,336 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed and can restore from snapshot 08:22:35,336 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: writer thread VirtualThread[#627,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155]/runnable started 08:22:35,336 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 08:22:35,336 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 08:22:35,337 AM [test-pekko.actor.default-dispatcher-8] [INFO] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]}" message is greater than follower's term 0 - updating term 08:22:35,348 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 08:22:35,348 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 08:22:35,348 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 08:22:35,348 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:22:35,348 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 08:22:35,348 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 08:22:35,349 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 08:22:35,349 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 08:22:35,349 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 08:22:35,349 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 08:22:35,349 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 08:22:35,349 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 08:22:35,349 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:22:35,349 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 12.24 ms 08:22:35,349 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 08:22:35,349 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 08:22:35,349 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 08:22:35,349 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 08:22:35,349 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 08:22:35,349 AM [test-pekko.actor.default-dispatcher-8] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 08:22:35,349 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 08:22:35,362 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 08:22:35,362 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 13.48 ms 08:22:35,362 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 08:22:35,362 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 3.391 μs 08:22:35,362 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 08:22:35,362 AM [test-pekko.actor.default-dispatcher-8] [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/0x00000007c09374a8@4c68839d} 08:22:35,362 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 08:22:35,362 AM [test-pekko.actor.default-dispatcher-8] [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/0x00000007c09374a8@4c68839d} 08:22:35,362 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 1 synchronized callback(s) 08:22:35,366 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 08:22:35,366 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 08:22:35,366 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 08:22:35,366 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 3.958 ms 08:22:35,366 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 08:22:35,366 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 08:22:35,366 AM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 08:22:35,366 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 08:22:35,366 AM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 08:22:35,366 AM [test-pekko.actor.default-dispatcher-8] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 08:22:35,366 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 08:22:35,367 AM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 08:22:35,367 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d106845] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-4532329833831214361/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069BA60CB-15DE9FE1.tmp 08:22:35,367 AM [test-pekko.actor.default-dispatcher-8] [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/0x00000007c09374a8@4c68839d} 08:22:35,367 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 17.84 ms [WARN] [03/18/2026 08:22:35.367] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][03/18/2026 08:22:35.367] [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. [5] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:22:35,368 AM [test-pekko.actor.default-dispatcher-7] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [5] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:22:35,376 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d106845] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-4532329833831214361/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069BA60CB-15DE9FE1.v1 08:22:35,376 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d106845] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-4532329833831214361/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069BA60CB-15DE9FE1.v1 08:22:35,376 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d106845] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-4532329833831214361/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 08:22:35,376 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d106845] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-4532329833831214361/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 08:22:35,376 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d106845] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-4532329833831214361/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 08:22:35,376 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d106845] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2026-03-18T08:22:35.366911457Z, file=/tmp/junit-4532329833831214361/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069BA60CB-15DE9FE1.v1, size=539, entryCompress=NONE, stateCompress=NONE} 08:22:35,376 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d106845] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 08:22:35,376 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 08:22:35,376 AM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2026-03-18T08:22:35.366911457Z 08:22:35,376 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 08:22:35,376 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 08:22:35,376 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 10.30 ms 08:22:35,377 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 08:22:35,377 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 08:22:35,377 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 08:22:35,377 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 114.3 μs 08:22:35,377 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 08:22:35,377 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 08:22:35,488 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-4532329833831214361/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069BA60CB-15DE9FE1.v1 08:22:35,488 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-4532329833831214361/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 08:22:35,488 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-4532329833831214361/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 08:22:35,488 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-4532329833831214361/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 08:22:35,489 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2026-03-18T08:22:35.366911457Z, file=/tmp/junit-4532329833831214361/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069BA60CB-15DE9FE1.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 08:22:35,491 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#-515696975] 08:22:35,502 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower502#-924645238] 08:22:35,502 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader503#2059534053] 08:22:35,502 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 08:22:35,502 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#627,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155]/waiting 08:22:35,502 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 125.8 ms 08:22:35,503 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 15.05 μs 08:22:35,503 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 08:22:35,503 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminated thread VirtualThread[#627,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155]/terminated 08:22:35,503 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 08:22:35,503 AM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 08:22:35,503 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 08:22:35,503 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 08:22:35,507 AM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 08:22:35,507 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:35,508 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 08:22:35,508 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]]} 08:22:35,509 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 08:22:35,509 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} 08:22:35,509 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 08:22:35,509 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior504#-1585645300] 08:22:35,520 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower505#-77245627] 08:22:35,520 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader506#1199222419] 08:22:35,524 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 08:22:35,524 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:35,525 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 08:22:35,526 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 08:22:35,526 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 08:22:35,526 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 08:22:35,527 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 08:22:35,527 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#-1647704263] 08:22:35,538 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower508#1707507680] 08:22:35,538 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader509#-2069603137] 08:22:35,542 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 08:22:35,542 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:35,543 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 08:22:35,544 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]]} 08:22:35,544 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 08:22:35,544 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 08:22:35,544 AM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 08:22:35,544 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 08:22:35,544 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 08:22:35,545 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 08:22:35,545 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 08:22:35,545 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 08:22:35,545 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} 08:22:35,545 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 08:22:35,545 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 08:22:35,545 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 08:22:35,546 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 08:22:35,546 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 08:22:35,546 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 08:22:35,546 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 08:22:35,546 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 08:22:35,546 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 08:22:35,546 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 08:22:35,547 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior510#106746629] 08:22:35,558 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower511#369310065] 08:22:35,558 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader512#1025719131] 08:22:35,563 AM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 08:22:35,563 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:35,564 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 08:22:35,564 AM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 08:22:35,565 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#1018961519] 08:22:35,575 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower514#-219182391] 08:22:35,575 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader515#276877481] 08:22:35,578 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 08:22:35,578 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:35,579 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 08:22:35,579 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 08:22:35,579 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:22:35,579 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 08:22:35,580 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 08:22:35,580 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]]} 08:22:35,580 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 08:22:35,580 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:22:35,580 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 08:22:35,580 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 08:22:35,580 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 08:22:35,581 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 08:22:35,581 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} 08:22:35,581 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 08:22:35,581 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 08:22:35,581 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 08:22:35,581 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 08:22:35,582 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior516#217156893] 08:22:35,592 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower517#-120020109] 08:22:35,592 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518#1642653265] 08:22:35,595 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 08:22:35,595 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:35,596 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 08:22:35,596 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]]} 08:22:35,596 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 08:22:35,597 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} 08:22:35,597 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 08:22:35,597 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 08:22:35,598 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]]} 08:22:35,598 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 08:22:35,598 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} 08:22:35,598 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 08:22:35,599 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 08:22:35,599 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]]} 08:22:35,599 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 08:22:35,600 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} 08:22:35,600 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 08:22:35,600 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior519#170941381] 08:22:35,611 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower520#1925796506] 08:22:35,611 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader521#-704731650] 08:22:35,615 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 08:22:35,615 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:35,816 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.100:17355, Removed) 08:22:35,816 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 08:22:35,816 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 08:22:35,816 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 08:22:35,816 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 08:22:35,816 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior522#1004577844] 08:22:35,827 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower523#-519360643] 08:22:35,828 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader524#1228093561] 08:22:35,832 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:35,832 AM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 08:22:36,33 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior525#516848489] 08:22:36,44 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower526#2029991001] 08:22:36,45 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader527#2143384672] 08:22:36,49 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 08:22:36,49 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:36,52 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 08:22:36,53 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 08:22:36,54 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior528#-450685387] 08:22:36,65 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower529#1271201303] 08:22:36,65 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader530#1907108701] 08:22:36,69 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 08:22:36,70 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:36,71 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]]} 08:22:36,72 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 08:22:36,72 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 08:22:36,72 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 08:22:36,72 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 08:22:36,72 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 08:22:36,72 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 08:22:36,72 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} 08:22:36,72 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 08:22:36,72 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 08:22:36,72 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 08:22:36,72 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 08:22:36,73 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 08:22:36,73 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 08:22:36,73 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 08:22:36,73 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 08:22:36,73 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 08:22:36,73 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 08:22:36,73 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 08:22:36,73 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 08:22:36,74 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior531#2030661940] 08:22:36,85 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower532#-813054000] 08:22:36,85 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader533#-1789570619] 08:22:36,89 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 08:22:36,89 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:36,90 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 08:22:36,91 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 08:22:36,91 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:22:36,91 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 08:22:36,92 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]]} 08:22:36,93 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} 08:22:36,93 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior534#-2000450473] 08:22:36,104 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower535#1801435233] 08:22:36,104 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader536#558805030] 08:22:36,108 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 08:22:36,108 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:36,109 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 08:22:36,110 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]]} 08:22:36,110 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 08:22:36,110 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 08:22:36,111 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 08:22:36,112 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior537#2116735131] 08:22:36,123 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower538#386236684] 08:22:36,123 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader539#-702184674] 08:22:36,127 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries 08:22:36,150 AM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:22:36,150 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [03/18/2026 08:22:36.151] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@10cbf81e 08:22:36,151 AM [test-pekko.actor.default-dispatcher-7] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [6] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][03/18/2026 08:22:36.151] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [6] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:22:36,151 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 08:22:36,151 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 08:22:36,151 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 08:22:36,152 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 08:22:36,152 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 08:22:36,152 AM [test-pekko.actor.default-dispatcher-8] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 08:22:36,153 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 08:22:36,153 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - /tmp/junit-3784777847650340177/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 08:22:36,252 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=0, votedFor=null 08:22:36,252 AM [test-pekko.actor.default-dispatcher-8] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 08:22:36,252 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3784777847650340177/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 08:22:36,252 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3784777847650340177/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 08:22:36,252 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3784777847650340177/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 08:22:36,252 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 08:22:36,252 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 08:22:36,252 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 08:22:36,252 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 08:22:36,252 AM [test-pekko.actor.default-dispatcher-8] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 99.81 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 08:22:36,252 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and can restore from snapshot 08:22:36,253 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: writer thread VirtualThread[#630,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156]/runnable started 08:22:36,253 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 08:22:36,253 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 08:22:36,352 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3784777847650340177/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 08:22:36,352 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3784777847650340177/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 08:22:36,352 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3784777847650340177/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 08:22:36,352 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 08:22:36,352 AM [test-pekko.actor.default-dispatcher-8] [INFO] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]}" message is greater than follower's term 0 - updating term 08:22:36,389 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:22:36,389 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 08:22:36,389 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 08:22:36,389 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:22:36,389 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 08:22:36,389 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 08:22:36,389 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 08:22:36,389 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 08:22:36,389 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 08:22:36,389 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 08:22:36,389 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 08:22:36,389 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 136.8 ms 08:22:36,390 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 08:22:36,390 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:22:36,390 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 08:22:36,390 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 08:22:36,390 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 08:22:36,390 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 08:22:36,390 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 08:22:36,390 AM [test-pekko.actor.default-dispatcher-8] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 08:22:36,390 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 08:22:36,390 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 08:22:36,390 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 08:22:36,390 AM [test-pekko.actor.default-dispatcher-8] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 08:22:36,390 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 08:22:36,390 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 08:22:36,390 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 08:22:36,390 AM [test-pekko.actor.default-dispatcher-8] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 08:22:36,390 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 08:22:36,479 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 08:22:36,479 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 08:22:36,479 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 89.66 ms 08:22:36,479 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 5.820 μs 08:22:36,479 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 08:22:36,479 AM [test-pekko.actor.default-dispatcher-8] [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/0x00000007c09374a8@8bda3cb} 08:22:36,479 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 08:22:36,479 AM [test-pekko.actor.default-dispatcher-8] [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/0x00000007c09374a8@8bda3cb} 08:22:36,479 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 08:22:36,504 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3784777847650340177/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 08:22:36,504 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3784777847650340177/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 08:22:36,504 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3784777847650340177/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 08:22:36,504 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 08:22:36,593 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 08:22:36,593 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 08:22:36,593 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 113.8 ms 08:22:36,593 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 08:22:36,593 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 08:22:36,593 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 08:22:36,593 AM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 08:22:36,593 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 08:22:36,593 AM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 08:22:36,594 AM [test-pekko.actor.default-dispatcher-8] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 08:22:36,594 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 08:22:36,594 AM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 08:22:36,594 AM [test-pekko.actor.default-dispatcher-8] [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/0x00000007c09374a8@8bda3cb} 08:22:36,594 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d115249] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-3784777847650340177/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069BA60CC-236987CE.tmp 08:22:36,594 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 203.7 ms [WARN] [03/18/2026 08:22:36.594] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][03/18/2026 08:22:36.594] [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. [7] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:22:36,594 AM [test-pekko.actor.default-dispatcher-8] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [7] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:22:36,604 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unhandled file /tmp/junit-3784777847650340177/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069BA60CC-236987CE.tmp 08:22:36,604 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3784777847650340177/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 08:22:36,604 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3784777847650340177/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 08:22:36,604 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3784777847650340177/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 08:22:36,604 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 08:22:36,613 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d115249] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-3784777847650340177/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069BA60CC-236987CE.v1 08:22:36,613 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d115249] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-3784777847650340177/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069BA60CC-236987CE.v1 08:22:36,613 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d115249] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3784777847650340177/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 08:22:36,613 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d115249] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3784777847650340177/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 08:22:36,613 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d115249] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3784777847650340177/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 08:22:36,613 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d115249] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-03-18T08:22:36.594118606Z, file=/tmp/junit-3784777847650340177/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069BA60CC-236987CE.v1, size=573, entryCompress=NONE, stateCompress=NONE} 08:22:36,614 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d115249] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 08:22:36,614 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 08:22:36,614 AM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2026-03-18T08:22:36.594118606Z 08:22:36,614 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 08:22:36,614 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 08:22:36,614 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 20.56 ms 08:22:36,614 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 08:22:36,614 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 08:22:36,614 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 08:22:36,614 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 08:22:36,614 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 182.2 μs 08:22:36,614 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 08:22:36,705 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-3784777847650340177/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069BA60CC-236987CE.v1 08:22:36,705 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3784777847650340177/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 08:22:36,705 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3784777847650340177/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 08:22:36,705 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3784777847650340177/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 08:22:36,705 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-03-18T08:22:36.594118606Z, file=/tmp/junit-3784777847650340177/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069BA60CC-236987CE.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 08:22:36,707 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 08:22:36,717 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#630,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156]/waiting 08:22:36,718 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 103.5 ms 08:22:36,718 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 15.27 μs 08:22:36,718 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 08:22:36,718 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminated thread VirtualThread[#630,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156]/terminated 08:22:36,718 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 08:22:36,718 AM [test-pekko.actor.default-dispatcher-8] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 08:22:36,718 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 08:22:36,718 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 08:22:36,719 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [03/18/2026 08:22:36.719] [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@27aa04e5 [INFO] [pekkoDeadLetter][03/18/2026 08:22:36.719] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [8] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:22:36,719 AM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [8] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:22:36,719 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 08:22:36,720 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 08:22:36,720 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 08:22:36,720 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 08:22:36,721 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 08:22:36,721 AM [test-pekko.actor.default-dispatcher-8] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 08:22:36,721 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 08:22:36,721 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:22:36,721 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-3784777847650340177/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069BA60CC-236987CE.v1 08:22:36,721 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3784777847650340177/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 08:22:36,721 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3784777847650340177/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 08:22:36,721 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3784777847650340177/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 08:22:36,721 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-03-18T08:22:36.594118606Z, file=/tmp/junit-3784777847650340177/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069BA60CC-236987CE.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 08:22:36,721 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2026-03-18T08:22:36.594118606Z 08:22:36,722 AM [test-pekko.actor.default-dispatcher-8] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 08:22:36,722 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 08:22:36,722 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 08:22:36,722 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 08:22:36,723 AM [test-pekko.actor.default-dispatcher-8] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 1.496 ms: last log index = 2, last log term = 1, napshot index = 2, snapshot term = 1, journal size = 0 08:22:36,723 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and cannot restore from snapshot 08:22:36,723 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: writer thread VirtualThread[#633,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/runnable started 08:22:36,723 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 08:22:36,723 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 08:22:36,723 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior540#-1502656363] 08:22:36,734 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower541#267866962] 08:22:36,734 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader542#-2054091094] 08:22:36,734 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 08:22:36,734 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#633,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/waiting 08:22:36,735 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 11.83 ms 08:22:36,735 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 11.25 μs 08:22:36,735 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 08:22:36,735 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminated thread VirtualThread[#633,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/terminated 08:22:36,735 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 08:22:36,735 AM [test-pekko.actor.default-dispatcher-8] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 08:22:36,735 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 08:22:36,735 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 08:22:36,741 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 08:22:36,741 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:37,42 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 08:22:37,172 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 08:22:37,422 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 08:22:37,622 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 08:22:37,623 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior543#1614455068] 08:22:37,624 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower544#-606595154] 08:22:37,624 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader545#-18405853] 08:22:37,628 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:22:37,629 AM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 08:22:37,629 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 08:22:37,629 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 08:22:37,629 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 08:22:37,629 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior546#1018127941] 08:22:37,630 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower547#-2006377699] 08:22:37,630 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader548#973472724] [INFO] [03/18/2026 08:22:37.631] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 08:22:37,632 AM [test-pekko.actor.default-dispatcher-8] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [03/18/2026 08:22:37.632] [test-pekko.actor.default-dispatcher-8] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.100:17355) [INFO] [pekkoDeadLetter][03/18/2026 08:22:37.633] [test-pekko.actor.default-dispatcher-8] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1458037867] was unhandled. [9] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 08:22:37,633 AM [test-pekko.actor.default-dispatcher-8] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1458037867] was unhandled. [9] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [03/18/2026 08:22:37.633] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.100:17355] - Exiting completed [INFO] [03/18/2026 08:22:37.633] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.100:17355] - Shutting down... 08:22:37,633 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.100:17355] - Exiting completed 08:22:37,633 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.100:17355] - Shutting down... [INFO] [03/18/2026 08:22:37.633] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.100:17355] - Successfully shut down 08:22:37,634 AM [test-pekko.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.100:17355] - Successfully shut down [INFO] [03/18/2026 08:22:37.635] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.171.100:17355/system/remoting-terminator] Shutting down remote daemon. 08:22:37,635 AM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [03/18/2026 08:22:37.636] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.171.100:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 08:22:37,636 AM [test-pekko.actor.default-dispatcher-8] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [03/18/2026 08:22:37.637] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.171.100:17355/system/remoting-terminator] Remoting shut down. 08:22:37,638 AM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [03/18/2026 08:22:37.638] [test-pekko.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger