[DEBUG] [06/10/2026 16:06:07.434] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 04:06:07,435 PM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [06/10/2026 16:06:07.435] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [06/10/2026 16:06:07.435] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [06/10/2026 16:06:07.449] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.244:17355] with UID [-4569422471044112158] 04:06:07,449 PM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.244:17355] with UID [-4569422471044112158] [INFO] [06/10/2026 16:06:07.450] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.244:17355] - Starting up, Pekko version [1.0.3] ... 04:06:07,450 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.244:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [06/10/2026 16:06:07.453] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.244:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 04:06:07,453 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.244:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [06/10/2026 16:06:07.453] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.244:17355] - Started up successfully 04:06:07,453 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.244:17355] - Started up successfully [INFO] [06/10/2026 16:06:07.454] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.244:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [06/10/2026 16:06:07.454] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.244:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 04:06:07,454 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.244:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 04:06:07,454 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.244:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 04:06:07,469 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:07,558 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 04:06:07,558 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 04:06:07,559 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior425#1504699729] 04:06:07,570 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower426#1559149566] 04:06:07,571 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader427#-1375366498] 04:06:07,575 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:07,577 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 04:06:07,578 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:06:07,578 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 04:06:07,578 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 04:06:07,578 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 04:06:07,578 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 04:06:07,578 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:06:07,578 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 04:06:07,579 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 04:06:07,580 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:06:07,580 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:06:07,580 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 04:06:07,581 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior428#-1126988479] 04:06:07,592 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower429#1896519800] 04:06:07,592 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader430#1996036362] 04:06:07,596 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:07,598 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 04:06:07,599 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 04:06:07,600 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior431#-2100424583] 04:06:07,610 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower432#-413382426] 04:06:07,611 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader433#-924233160] 04:06:07,615 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:07,616 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 04:06:07,616 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 04:06:07,617 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:06:07,617 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 04:06:07,618 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 04:06:07,619 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 04:06:07,619 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 04:06:07,619 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 04:06:07,619 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 04:06:07,620 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 04:06:07,620 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 04:06:07,621 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 04:06:07,621 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior434#-1701965857] 04:06:07,622 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower435#-1514159702] 04:06:07,622 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader436#-822250235] 04:06:07,627 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:07,627 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:06:07,628 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:06:07,628 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:07,628 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 04:06:07,629 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 04:06:07,629 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 04:06:07,630 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 04:06:07,630 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 04:06:07,630 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior437#-1424568088] 04:06:07,631 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower438#-1584689970] 04:06:07,631 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader439#-1189927363] 04:06:07,634 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:07,634 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 04:06:07,635 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior440#405618296] 04:06:07,635 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower441#1899962245] 04:06:07,635 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader442#702268605] 04:06:07,637 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:07,638 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 04:06:07,638 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 04:06:07,638 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior443#-669363815] 04:06:07,639 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower444#1249473832] 04:06:07,639 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader445#-1455227546] 04:06:07,641 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 04:06:07,641 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:07,643 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:06:07,643 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:06:07,643 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:06:07,643 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:06:07,643 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 04:06:07,643 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 04:06:07,643 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 04:06:07,643 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 04:06:07,646 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 04:06:07,647 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior446#-666791080] 04:06:07,647 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower447#-532030267] 04:06:07,647 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader448#867011464] 04:06:07,649 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 04:06:07,650 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:07,650 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 04:06:07,650 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 04:06:07,651 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:06:07,651 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 04:06:07,651 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior449#974834499] 04:06:07,651 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower450#-1184166066] 04:06:07,652 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader451#-751387378] 04:06:07,653 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 04:06:07,653 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:07,654 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:06:07,654 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:06:07,654 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:06:07,654 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:06:07,654 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 04:06:07,654 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 04:06:07,654 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 04:06:07,655 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 04:06:07,655 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:06:07,655 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:06:07,655 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 04:06:07,655 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:06:07,655 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 04:06:07,656 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior452#1701859701] 04:06:07,656 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower453#-1791084766] 04:06:07,656 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader454#1408956008] 04:06:07,658 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:07,658 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 04:06:07,659 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior455#-1294108417] 04:06:07,660 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower456#-1159313165] 04:06:07,660 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader457#-788541788] 04:06:07,661 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 04:06:07,661 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:07,662 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:06:07,662 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:06:07,662 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:06:07,662 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:06:07,662 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:06:07,662 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:06:07,662 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:06:07,662 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:06:07,663 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:06:07,663 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 04:06:07,663 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 04:06:07,663 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior458#-803660938] 04:06:07,664 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower459#-1386396354] 04:06:07,664 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader460#2121050442] 04:06:07,665 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 04:06:07,666 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:07,666 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 04:06:07,666 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:06:07,666 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 04:06:07,666 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 04:06:07,666 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:06:07,666 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 04:06:07,666 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:06:07,667 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:06:07,667 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 04:06:07,667 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:06:07,667 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:06:07,667 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 04:06:07,667 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 04:06:07,667 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 04:06:07,667 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:06:07,667 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 04:06:07,667 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 04:06:07,667 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 04:06:07,668 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 04:06:07,668 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 04:06:07,668 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:06:07,668 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 04:06:07,668 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 04:06:07,668 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:06:07,668 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:06:07,668 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior461#-1828444230] 04:06:07,669 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower462#618313161] 04:06:07,669 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader463#-2040627918] 04:06:07,671 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 04:06:07,671 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:07,671 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 04:06:07,672 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:06:07,672 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:06:07,672 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 04:06:07,672 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior464#-1924067619] 04:06:07,673 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower465#883268327] 04:06:07,673 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader466#-565634607] 04:06:07,675 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:07,677 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior467#-1222530356] 04:06:07,677 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower468#-1868693975] 04:06:07,678 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader469#1205488486] 04:06:07,680 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 04:06:07,680 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:07,680 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 04:06:07,680 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:06:07,680 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:06:07,681 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:06:07,681 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:06:07,681 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:06:07,681 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:06:07,681 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:06:07,681 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:06:07,681 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:06:07,681 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 04:06:07,681 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 04:06:07,681 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 04:06:07,681 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 04:06:07,681 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior470#820908421] 04:06:07,682 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower471#4505901] 04:06:07,682 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader472#173052753] 04:06:07,684 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [06/10/2026 16:06:07.686] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@4d83dffa [INFO] [pekkoDeadLetter][06/10/2026 16:06:07.686] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:06:07,686 PM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:06:07,688 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 04:06:07,689 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 04:06:07,689 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 04:06:07,690 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 04:06:07,690 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 04:06:07,690 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 04:06:07,693 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/junit-8558285466153985149/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 04:06:07,693 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8558285466153985149/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:06:07,693 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8558285466153985149/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:06:07,693 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 04:06:07,693 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:06:07,693 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 04:06:07,697 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:06:07,697 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 04:06:07,697 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 04:06:07,697 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 04:06:07,697 PM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 04:06:07,697 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 04:06:07,697 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-8558285466153985149/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006A298B6F-29918126.tmp 04:06:07,701 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-8558285466153985149/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006A298B6F-29918126.v1 04:06:07,701 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8558285466153985149/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006A298B6F-29918126.v1 04:06:07,701 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8558285466153985149/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:06:07,701 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8558285466153985149/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:06:07,701 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8558285466153985149/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:06:07,701 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2026-06-10T16:06:07.697401638Z, file=/tmp/junit-8558285466153985149/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006A298B6F-29918126.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:06:07,702 PM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot completed in 4.740 ms, resetting timer for the next recovery snapshot 04:06:07,702 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 04:06:07,702 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 04:06:07,702 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 04:06:07,702 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 04:06:07,702 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 04:06:07,702 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: journal recovery completedin 312.6 μs with journalIndex=1 04:06:07,702 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 04:06:07,702 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: writer thread VirtualThread[#826,testCaptureSnapshotOnLastEntryInAppendEntries-writer-157]/runnable started 04:06:07,702 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 04:06:07,702 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 04:06:07,703 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 04:06:07,804 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8558285466153985149/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006A298B6F-29918126.v1 04:06:07,804 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8558285466153985149/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:06:07,804 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8558285466153985149/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:06:07,804 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8558285466153985149/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:06:07,805 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2026-06-10T16:06:07.697401638Z, file=/tmp/junit-8558285466153985149/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006A298B6F-29918126.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 04:06:07,805 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 04:06:07,805 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 04:06:07,805 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:06:07,805 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 04:06:07,805 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 04:06:07,806 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 04:06:07,806 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 04:06:07,806 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 04:06:07,806 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 04:06:07,806 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 103.3 ms 04:06:07,806 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:06:07,806 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 04:06:07,806 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 04:06:07,806 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 04:06:07,806 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 04:06:07,806 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 04:06:07,806 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 04:06:07,806 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 04:06:07,806 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 04:06:07,806 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 04:06:07,806 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 04:06:07,806 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 04:06:07,810 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 04:06:07,810 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 04:06:07,810 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 3.995 ms 04:06:07,810 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 04:06:07,810 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 3.760 μs 04:06:07,810 PM [test-pekko.actor.default-dispatcher-11] [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/0x00000007c08ffc68@b36b0cc} 04:06:07,810 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 04:06:07,811 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 04:06:07,811 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 04:06:07,811 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 04:06:07,811 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 896.6 μs 04:06:07,811 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 04:06:07,811 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 04:06:07,811 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 04:06:07,811 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 04:06:07,811 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 04:06:07,811 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 04:06:07,811 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 04:06:07,811 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 04:06:07,811 PM [test-pekko.actor.default-dispatcher-11] [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/0x00000007c08ffc68@b36b0cc} 04:06:07,811 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d47356] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-8558285466153985149/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006A298B6F-305E1D93.tmp 04:06:07,811 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 4.978 ms [WARN] [06/10/2026 16:06:07.812] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/10/2026 16:06:07.812] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:06:07,812 PM [test-pekko.actor.default-dispatcher-7] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:06:07,814 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d47356] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-8558285466153985149/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006A298B6F-305E1D93.v1 04:06:07,814 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d47356] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8558285466153985149/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006A298B6F-29918126.v1 04:06:07,814 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d47356] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8558285466153985149/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:06:07,814 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d47356] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8558285466153985149/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:06:07,814 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d47356] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8558285466153985149/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:06:07,814 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d47356] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8558285466153985149/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006A298B6F-305E1D93.v1 04:06:07,814 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d47356] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2026-06-10T16:06:07.697401638Z, file=/tmp/junit-8558285466153985149/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006A298B6F-29918126.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:06:07,814 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d47356] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2026-06-10T16:06:07.811474323Z, file=/tmp/junit-8558285466153985149/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006A298B6F-305E1D93.v1, size=555, entryCompress=NONE, stateCompress=NONE} 04:06:07,814 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d47356] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 04:06:07,814 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 04:06:07,814 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2026-06-10T16:06:07.811474323Z 04:06:07,814 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 04:06:07,814 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 3.667 ms 04:06:07,815 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 04:06:07,815 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 04:06:07,815 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 04:06:07,815 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 230.0 μs 04:06:07,815 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 04:06:07,815 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 04:06:07,815 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 04:06:08,8 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8558285466153985149/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:06:08,8 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8558285466153985149/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:06:08,8 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8558285466153985149/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:06:08,8 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8558285466153985149/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006A298B6F-305E1D93.v1 04:06:08,8 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2026-06-10T16:06:07.811474323Z, file=/tmp/junit-8558285466153985149/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006A298B6F-305E1D93.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 04:06:08,12 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior473#1323220138] 04:06:08,13 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower474#-1511193992] 04:06:08,13 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader475#-1984697540] 04:06:08,13 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 04:06:08,14 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#826,testCaptureSnapshotOnLastEntryInAppendEntries-writer-157]/waiting 04:06:08,14 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 199.0 ms 04:06:08,14 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 13.75 μs 04:06:08,14 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 04:06:08,14 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminated thread VirtualThread[#826,testCaptureSnapshotOnLastEntryInAppendEntries-writer-157]/terminated 04:06:08,14 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 04:06:08,14 PM [test-pekko.actor.default-dispatcher-14] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 04:06:08,14 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 04:06:08,14 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 04:06:08,19 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:08,20 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior476#-492467806] 04:06:08,21 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower477#-705085736] 04:06:08,21 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader478#1542057297] 04:06:08,24 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 04:06:08,24 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:08,25 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 04:06:08,25 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 04:06:08,25 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior479#1328780602] 04:06:08,26 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower480#1476477486] 04:06:08,26 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader481#916702872] 04:06:08,28 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 04:06:08,28 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:08,29 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:06:08,29 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:06:08,29 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:06:08,29 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:06:08,29 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:06:08,29 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 04:06:08,29 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:06:08,29 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:06:08,29 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:06:08,30 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 04:06:08,30 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 04:06:08,30 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior482#-817525686] 04:06:08,31 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower483#915722234] 04:06:08,31 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader484#-163575356] 04:06:08,33 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 04:06:08,33 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:08,34 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:06:08,34 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:06:08,34 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:06:08,34 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:06:08,34 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:06:08,34 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 04:06:08,35 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:06:08,35 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 04:06:08,35 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:06:08,35 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 04:06:08,36 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior485#775686659] 04:06:08,36 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower486#1526724911] 04:06:08,36 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader487#-290593102] 04:06:08,38 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:08,39 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior488#-824515206] 04:06:08,39 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower489#-1061040718] 04:06:08,39 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader490#-2122445305] 04:06:08,42 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 04:06:08,42 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:08,42 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:06:08,43 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:06:08,43 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:06:08,43 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:06:08,43 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:06:08,43 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 04:06:08,44 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:06:08,44 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 04:06:08,44 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:06:08,45 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 04:06:08,45 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:06:08,45 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 04:06:08,45 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:06:08,45 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 04:06:08,46 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior491#-1921812449] 04:06:08,46 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower492#-1509641646] 04:06:08,46 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader493#-690132850] 04:06:08,49 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 04:06:08,49 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:08,49 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 04:06:08,50 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:06:08,50 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 04:06:08,50 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 04:06:08,50 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 04:06:08,50 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 04:06:08,50 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:06:08,50 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 04:06:08,50 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 04:06:08,50 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 04:06:08,50 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior494#1876285166] 04:06:08,51 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower495#-2031107037] 04:06:08,51 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader496#-44366409] 04:06:08,54 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 04:06:08,54 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:08,55 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 04:06:08,56 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader499 04:06:08,56 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader499 04:06:08,57 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 04:06:08,57 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior497#-862643411] 04:06:08,58 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower498#-130526005] 04:06:08,58 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader499#-640339883] 04:06:08,60 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 04:06:08,60 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:08,61 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:06:08,61 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:06:08,61 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:06:08,61 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:06:08,61 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:06:08,61 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:06:08,61 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:06:08,61 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:06:08,61 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:06:08,61 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 04:06:08,62 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 04:06:08,62 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior500#248835342] 04:06:08,62 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower501#-733460452] 04:06:08,63 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader502#1836710920] 04:06:08,64 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 04:06:08,65 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:08,65 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:06:08,65 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:06:08,65 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:06:08,66 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:06:08,66 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:06:08,66 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior503#84131321] 04:06:08,67 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower504#-1115213957] 04:06:08,67 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader505#-294767415] 04:06:08,69 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [06/10/2026 16:06:08.069] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@4e287a71 [INFO] [pekkoDeadLetter][06/10/2026 16:06:08.069] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:06:08,70 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:06:08,70 PM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 04:06:08,70 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 04:06:08,70 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 04:06:08,71 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 04:06:08,71 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 04:06:08,71 PM [test-pekko.actor.default-dispatcher-14] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 04:06:08,72 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/junit-10803911904761896277/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 04:06:08,72 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10803911904761896277/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:06:08,72 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10803911904761896277/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:06:08,72 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 04:06:08,72 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 04:06:08,73 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 04:06:08,75 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 04:06:08,75 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 04:06:08,75 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: taking snapshot to clear Pekko persistence to 1 04:06:08,75 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 04:06:08,75 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Taking snapshot on entry with index -1 04:06:08,75 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 04:06:08,75 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-10803911904761896277/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006A298B70-047FDF9B.tmp 04:06:08,78 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-10803911904761896277/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006A298B70-047FDF9B.v1 04:06:08,78 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10803911904761896277/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 04:06:08,78 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10803911904761896277/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:06:08,78 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10803911904761896277/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:06:08,78 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-10803911904761896277/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006A298B70-047FDF9B.v1 04:06:08,78 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2026-06-10T16:06:08.075489179Z, file=/tmp/junit-10803911904761896277/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006A298B70-047FDF9B.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:06:08,78 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot completed in 3.103 ms, resetting timer for the next recovery snapshot 04:06:08,78 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed and cannot restore from snapshot 04:06:08,78 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 04:06:08,78 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 04:06:08,78 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 04:06:08,78 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 04:06:08,78 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal recovery completedin 114.6 μs with journalIndex=1 04:06:08,78 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Journal recovery completed and cannot restore from snapshot 04:06:08,78 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: writer thread VirtualThread[#832,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158]/runnable started 04:06:08,79 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: ignoring DeleteMessagesSuccess(1) 04:06:08,79 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 04:06:08,79 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 04:06:08,79 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:06:08,79 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 04:06:08,79 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 04:06:08,79 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 04:06:08,79 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 04:06:08,79 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 04:06:08,79 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 04:06:08,79 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 04:06:08,79 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 04:06:08,79 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:06:08,79 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 04:06:08,79 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 04:06:08,79 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 04:06:08,79 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 04:06:08,79 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 04:06:08,79 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 04:06:08,79 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 04:06:08,79 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 04:06:08,79 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 4 commands after 4.350 μs 04:06:08,83 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 04:06:08,83 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 4 completion(s) pending 04:06:08,83 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 4 commands in 4.032 ms 04:06:08,83 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 04:06:08,83 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 4 completion(s) 04:06:08,83 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 04:06:08,83 PM [test-pekko.actor.default-dispatcher-7] [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/0x00000007c08ffc68@50c3bd39} 04:06:08,83 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 04:06:08,83 PM [test-pekko.actor.default-dispatcher-7] [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/0x00000007c08ffc68@50c3bd39} 04:06:08,83 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 04:06:08,83 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 04:06:08,83 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 04:06:08,84 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 04:06:08,84 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 04:06:08,84 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 04:06:08,84 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 04:06:08,84 PM [test-pekko.actor.default-dispatcher-7] [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/0x00000007c08ffc68@50c3bd39} 04:06:08,84 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 4.532 ms [WARN] [06/10/2026 16:06:08.084] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/10/2026 16:06:08.084] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:06:08,84 PM [test-pekko.actor.default-dispatcher-7] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:06:08,84 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d469732] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-10803911904761896277/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006A298B70-05023EDC.tmp 04:06:08,86 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d469732] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-10803911904761896277/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006A298B70-05023EDC.v1 04:06:08,86 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d469732] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-10803911904761896277/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006A298B70-05023EDC.v1 04:06:08,86 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d469732] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10803911904761896277/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 04:06:08,86 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d469732] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10803911904761896277/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:06:08,86 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d469732] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10803911904761896277/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:06:08,86 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d469732] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-10803911904761896277/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006A298B70-047FDF9B.v1 04:06:08,86 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d469732] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2026-06-10T16:06:08.075489179Z, file=/tmp/junit-10803911904761896277/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006A298B70-047FDF9B.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:06:08,86 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d469732] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2026-06-10T16:06:08.084033244Z, file=/tmp/junit-10803911904761896277/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006A298B70-05023EDC.v1, size=539, entryCompress=NONE, stateCompress=NONE} 04:06:08,86 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d469732] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 04:06:08,86 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 04:06:08,86 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2026-06-10T16:06:08.084033244Z 04:06:08,86 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 04:06:08,86 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 04:06:08,86 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 3.034 ms 04:06:08,86 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 04:06:08,86 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 04:06:08,86 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 04:06:08,86 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 102.7 μs 04:06:08,86 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 04:06:08,86 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 04:06:08,230 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-10803911904761896277/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006A298B70-05023EDC.v1 04:06:08,231 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10803911904761896277/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 04:06:08,231 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10803911904761896277/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:06:08,231 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10803911904761896277/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:06:08,231 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2026-06-10T16:06:08.084033244Z, file=/tmp/junit-10803911904761896277/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006A298B70-05023EDC.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 04:06:08,233 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior506#1671533790] 04:06:08,234 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower507#-440302214] 04:06:08,234 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader508#1902555437] 04:06:08,235 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 04:06:08,235 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#832,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158]/waiting 04:06:08,235 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 148.5 ms 04:06:08,235 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 11.17 μs 04:06:08,235 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 04:06:08,235 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminated thread VirtualThread[#832,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158]/terminated 04:06:08,235 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 04:06:08,235 PM [test-pekko.actor.default-dispatcher-14] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 04:06:08,235 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 04:06:08,235 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 04:06:08,239 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 04:06:08,240 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:08,241 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:06:08,241 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 04:06:08,241 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 04:06:08,242 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:06:08,242 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 04:06:08,242 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior509#-1915180340] 04:06:08,243 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower510#229541093] 04:06:08,243 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader511#656866131] 04:06:08,245 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 04:06:08,246 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:08,246 PM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 04:06:08,246 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 04:06:08,247 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 04:06:08,247 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 04:06:08,247 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 04:06:08,247 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior512#91988843] 04:06:08,248 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower513#-383727455] 04:06:08,248 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader514#-358082534] 04:06:08,251 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 04:06:08,251 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:08,252 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 04:06:08,252 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 04:06:08,252 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:06:08,252 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 04:06:08,252 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:06:08,252 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 04:06:08,252 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 04:06:08,252 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 04:06:08,252 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 04:06:08,252 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 04:06:08,252 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 04:06:08,252 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:06:08,252 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 04:06:08,252 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 04:06:08,253 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:06:08,253 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:06:08,253 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 04:06:08,253 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 04:06:08,253 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:06:08,253 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:06:08,253 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 04:06:08,253 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 04:06:08,253 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior515#1892278704] 04:06:08,254 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower516#-1701392693] 04:06:08,254 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader517#881024312] 04:06:08,257 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 04:06:08,257 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:08,257 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 04:06:08,257 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 04:06:08,258 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior518#1846178960] 04:06:08,258 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower519#1122729115] 04:06:08,259 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader520#-1741021051] 04:06:08,260 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 04:06:08,260 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:08,261 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:06:08,261 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:06:08,261 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:06:08,261 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:06:08,261 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 04:06:08,262 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 04:06:08,262 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 04:06:08,262 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:06:08,262 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 04:06:08,262 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 04:06:08,262 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 04:06:08,262 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 04:06:08,262 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:06:08,262 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 04:06:08,262 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 04:06:08,262 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:06:08,262 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:06:08,263 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior521#1165558637] 04:06:08,263 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower522#687746699] 04:06:08,264 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader523#1687095055] 04:06:08,266 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 04:06:08,266 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:08,266 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:06:08,266 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:06:08,267 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:06:08,267 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:06:08,267 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:06:08,267 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 04:06:08,267 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:06:08,267 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 04:06:08,268 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:06:08,268 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 04:06:08,268 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 04:06:08,268 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:06:08,268 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 04:06:08,269 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:06:08,269 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 04:06:08,269 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior524#-308803549] 04:06:08,270 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower525#217837658] 04:06:08,270 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader526#-1005215899] 04:06:08,272 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 04:06:08,272 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:08,472 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:06:08,472 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.244:17355, Removed) 04:06:08,472 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 04:06:08,472 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 04:06:08,473 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 04:06:08,473 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 04:06:08,473 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior527#1274999494] 04:06:08,474 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower528#301985236] 04:06:08,474 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader529#-1472455119] 04:06:08,478 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:08,478 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 04:06:08,680 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:06:08,680 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior530#1589071824] 04:06:08,682 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower531#-656245585] 04:06:08,682 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader532#-1988802579] 04:06:08,686 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 04:06:08,686 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:08,688 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 04:06:08,689 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 04:06:08,689 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior533#-547009742] 04:06:08,691 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower534#1373845692] 04:06:08,691 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader535#1797801355] 04:06:08,694 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 04:06:08,694 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:08,695 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 04:06:08,695 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:06:08,695 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 04:06:08,695 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 04:06:08,695 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 04:06:08,695 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 04:06:08,695 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 04:06:08,695 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:06:08,696 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 04:06:08,696 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 04:06:08,696 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:06:08,696 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:06:08,696 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 04:06:08,696 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 04:06:08,696 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:06:08,696 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:06:08,696 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 04:06:08,696 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 04:06:08,696 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 04:06:08,696 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 04:06:08,697 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior536#424005188] 04:06:08,698 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower537#1233596036] 04:06:08,698 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader538#-404443698] 04:06:08,700 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 04:06:08,700 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:08,701 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:06:08,701 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:06:08,701 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:06:08,701 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:06:08,702 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 04:06:08,702 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:06:08,702 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior539#1487365360] 04:06:08,703 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower540#-1664583057] 04:06:08,703 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader541#-671950776] 04:06:08,706 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 04:06:08,706 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:08,706 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 04:06:08,707 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 04:06:08,707 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:06:08,707 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 04:06:08,707 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 04:06:08,708 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior542#1604324163] 04:06:08,708 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower543#-888539661] 04:06:08,708 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader544#1749795214] 04:06:08,711 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [06/10/2026 16:06:08.711] [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@564b3c0b [INFO] [pekkoDeadLetter][06/10/2026 16:06:08.712] [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. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:06:08,712 PM [test-pekko.actor.default-dispatcher-7] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:06:08,712 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 04:06:08,712 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:06:08,712 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:06:08,713 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 04:06:08,713 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 04:06:08,713 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 04:06:08,715 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 04:06:08,715 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:06:08,715 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:06:08,715 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 04:06:08,715 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:06:08,715 PM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 04:06:08,718 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:06:08,718 PM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 04:06:08,718 PM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 04:06:08,718 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 04:06:08,718 PM [test-pekko.actor.default-dispatcher-14] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Taking snapshot on entry with index -1 04:06:08,718 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 04:06:08,718 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A298B70-2AD47A63.tmp 04:06:08,723 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A298B70-2AD47A63.v1 04:06:08,723 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A298B70-2AD47A63.v1 04:06:08,723 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:06:08,723 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:06:08,723 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:06:08,723 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2026-06-10T16:06:08.718568035Z, file=/tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A298B70-2AD47A63.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:06:08,723 PM [test-pekko.actor.default-dispatcher-14] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot completed in 5.468 ms, resetting timer for the next recovery snapshot 04:06:08,724 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 04:06:08,724 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 04:06:08,724 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 04:06:08,724 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 04:06:08,724 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 04:06:08,724 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 248.4 μs with journalIndex=1 04:06:08,724 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 04:06:08,724 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: writer thread VirtualThread[#835,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159]/runnable started 04:06:08,724 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 04:06:08,724 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:06:08,725 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 04:06:08,826 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A298B70-2AD47A63.v1 04:06:08,826 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:06:08,826 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:06:08,826 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:06:08,826 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2026-06-10T16:06:08.718568035Z, file=/tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A298B70-2AD47A63.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 04:06:08,826 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 04:06:08,826 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 04:06:08,826 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:06:08,826 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 04:06:08,826 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 04:06:08,826 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 04:06:08,826 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 04:06:08,827 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 04:06:08,827 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 04:06:08,827 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 04:06:08,827 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 04:06:08,827 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 102.3 ms 04:06:08,827 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:06:08,827 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 04:06:08,827 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 04:06:08,827 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 04:06:08,827 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 04:06:08,827 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 04:06:08,827 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 04:06:08,827 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 04:06:08,827 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 04:06:08,827 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 04:06:08,827 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 04:06:08,827 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 04:06:08,827 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 04:06:08,827 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 04:06:08,827 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 04:06:08,827 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 04:06:08,835 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 04:06:08,835 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 04:06:08,835 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 04:06:08,835 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 8.054 ms 04:06:08,835 PM [test-pekko.actor.default-dispatcher-14] [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/0x00000007c08ffc68@399bfb5} 04:06:08,835 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 04:06:08,835 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 7.141 μs 04:06:08,840 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 04:06:08,840 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 04:06:08,840 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 5.122 ms 04:06:08,840 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:06:08,840 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 04:06:08,840 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 04:06:08,840 PM [test-pekko.actor.default-dispatcher-14] [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/0x00000007c08ffc68@399bfb5} 04:06:08,840 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 04:06:08,840 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 04:06:08,840 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 04:06:08,840 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 04:06:08,840 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 04:06:08,840 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 04:06:08,840 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 04:06:08,840 PM [test-pekko.actor.default-dispatcher-14] [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/0x00000007c08ffc68@399bfb5} 04:06:08,840 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d269114] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A298B70-321D0BB2.tmp 04:06:08,840 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 13.41 ms [WARN] [06/10/2026 16:06:08.841] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] 04:06:08,841 PM [test-pekko.actor.default-dispatcher-7] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][06/10/2026 16:06:08.841] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:06:08,845 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d269114] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A298B70-321D0BB2.v1 04:06:08,846 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d269114] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A298B70-2AD47A63.v1 04:06:08,846 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d269114] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A298B70-321D0BB2.v1 04:06:08,846 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d269114] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:06:08,846 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d269114] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:06:08,846 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d269114] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:06:08,846 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d269114] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2026-06-10T16:06:08.718568035Z, file=/tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A298B70-2AD47A63.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:06:08,846 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d269114] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-06-10T16:06:08.840764338Z, file=/tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A298B70-321D0BB2.v1, size=573, entryCompress=NONE, stateCompress=NONE} 04:06:08,846 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d269114] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 04:06:08,846 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 04:06:08,846 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2026-06-10T16:06:08.840764338Z 04:06:08,846 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 04:06:08,846 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 04:06:08,847 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 6.557 ms 04:06:08,847 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 04:06:08,847 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 04:06:08,847 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 04:06:08,847 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 04:06:08,847 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 195.2 μs 04:06:08,847 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:06:09,69 PM [test-pekko.actor.default-dispatcher-6] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 04:06:09,79 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A298B70-321D0BB2.v1 04:06:09,79 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:06:09,79 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:06:09,79 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:06:09,79 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-06-10T16:06:08.840764338Z, file=/tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A298B70-321D0BB2.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 04:06:09,81 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 04:06:09,92 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#835,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159]/waiting 04:06:09,92 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 245.1 ms 04:06:09,92 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 26.06 μs 04:06:09,92 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 04:06:09,92 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminated thread VirtualThread[#835,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159]/terminated 04:06:09,92 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:06:09,93 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:06:09,93 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:06:09,93 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [06/10/2026 16:06:09.094] [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@6def440f [INFO] [pekkoDeadLetter][06/10/2026 16:06:09.094] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:06:09,94 PM [test-pekko.actor.default-dispatcher-14] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:06:09,94 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 04:06:09,94 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:06:09,94 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:06:09,95 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 04:06:09,96 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 04:06:09,96 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 04:06:09,97 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:06:09,97 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A298B70-321D0BB2.v1 04:06:09,97 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:06:09,97 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:06:09,97 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:06:09,97 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-06-10T16:06:08.840764338Z, file=/tmp/junit-6874269984272973855/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A298B70-321D0BB2.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 04:06:09,98 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 04:06:09,98 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2026-06-10T16:06:08.840764338Z 04:06:09,98 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:06:09,99 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 166.0 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 04:06:09,99 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 309.3 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 04:06:09,99 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 04:06:09,99 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:06:09,99 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 04:06:09,99 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 04:06:09,99 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 04:06:09,99 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 04:06:09,99 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 04:06:09,99 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 111.3 μs with journalIndex=4 04:06:09,99 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 04:06:09,99 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: writer thread VirtualThread[#840,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160]/runnable started 04:06:09,99 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 04:06:09,99 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:06:09,100 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior545#1076290412] 04:06:09,101 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower546#-1208115992] 04:06:09,101 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader547#180351611] 04:06:09,101 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 04:06:09,101 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#840,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160]/waiting 04:06:09,101 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 2.279 ms 04:06:09,102 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 20.37 μs 04:06:09,102 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 04:06:09,102 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminated thread VirtualThread[#840,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160]/terminated 04:06:09,102 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:06:09,102 PM [test-pekko.actor.default-dispatcher-14] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:06:09,102 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:06:09,102 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:06:09,104 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 04:06:09,104 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:09,405 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 04:06:09,535 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:06:09,535 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 04:06:09,785 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 04:06:09,986 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 04:06:09,986 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior548#1605930202] 04:06:09,997 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower549#-861803156] 04:06:09,998 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader550#816809496] 04:06:10,1 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:06:10,1 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:06:10,1 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 04:06:10,1 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 04:06:10,1 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 04:06:10,2 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 04:06:10,2 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior551#1275426657] 04:06:10,13 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower552#407292699] 04:06:10,13 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader553#-259531613] 04:06:10,14 PM [test-pekko.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [06/10/2026 16:06:10.014] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [06/10/2026 16:06:10.015] [test-pekko.actor.default-dispatcher-14] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.244:17355) [INFO] [pekkoDeadLetter][06/10/2026 16:06:10.015] [test-pekko.actor.default-dispatcher-14] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#542618099] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:06:10,15 PM [test-pekko.actor.default-dispatcher-11] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#542618099] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [06/10/2026 16:06:10.016] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.244:17355] - Exiting completed 04:06:10,16 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.244:17355] - Exiting completed 04:06:10,16 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.244:17355] - Shutting down... [INFO] [06/10/2026 16:06:10.016] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.244:17355] - Shutting down... [INFO] [06/10/2026 16:06:10.016] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.244:17355] - Successfully shut down 04:06:10,16 PM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.244:17355] - Successfully shut down [INFO] [06/10/2026 16:06:10.017] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.244:17355/system/remoting-terminator] Shutting down remote daemon. 04:06:10,17 PM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 04:06:10,17 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [06/10/2026 16:06:10.017] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.244:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 04:06:10,19 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [06/10/2026 16:06:10.019] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.170.244:17355/system/remoting-terminator] Remoting shut down. [DEBUG] [06/10/2026 16:06:10.019] [test-pekko.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger