[DEBUG] [09/23/2026 18:25:56.465] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 06:25:56,466 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [09/23/2026 18:25:56.466] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [09/23/2026 18:25:56.466] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [09/23/2026 18:25:56.514] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.148:17355] with UID [6048409574161062262] 06:25:56,516 PM [test-pekko.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.148:17355] with UID [6048409574161062262] 06:25:56,517 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.148:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [09/23/2026 18:25:56.516] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.148:17355] - Starting up, Pekko version [1.0.3] ... 06:25:56,522 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.148:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [09/23/2026 18:25:56.522] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.148:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 06:25:56,522 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.148:17355] - Started up successfully [INFO] [09/23/2026 18:25:56.522] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.148:17355] - Started up successfully [INFO] [09/23/2026 18:25:56.523] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.148:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [09/23/2026 18:25:56.523] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.148:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 06:25:56,523 PM [test-pekko.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.148:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 06:25:56,523 PM [test-pekko.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.148:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 06:25:56,540 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:56,631 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 06:25:56,631 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 06:25:56,632 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior425#1037338297] 06:25:56,634 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower426#464777996] 06:25:56,634 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader427#1627896742] 06:25:56,638 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:56,639 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]]} 06:25:56,639 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:25:56,639 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 06:25:56,639 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 06:25:56,639 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 06:25:56,640 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 06:25:56,640 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} 06:25:56,640 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 06:25:56,640 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 06:25:56,641 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 06:25:56,641 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:25:56,641 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 06:25:56,642 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior428#-784543576] 06:25:56,643 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower429#208323751] 06:25:56,643 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader430#982257221] 06:25:56,645 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:56,646 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 06:25:56,647 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 06:25:56,647 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior431#-1423289109] 06:25:56,647 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower432#127363502] 06:25:56,648 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader433#52181878] 06:25:56,650 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:56,650 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 06:25:56,651 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 06:25:56,651 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} 06:25:56,651 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 06:25:56,652 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 06:25:56,652 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 06:25:56,652 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 06:25:56,652 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. 06:25:56,652 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 06:25:56,653 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 06:25:56,653 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 06:25:56,654 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 06:25:56,654 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior434#782226357] 06:25:56,655 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower435#-1304993734] 06:25:56,655 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader436#300099229] 06:25:56,657 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:56,658 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:25:56,658 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:25:56,658 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:56,658 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 06:25:56,659 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 06:25:56,659 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 06:25:56,659 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 06:25:56,659 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 06:25:56,659 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior437#-1763072728] 06:25:56,660 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower438#1412811073] 06:25:56,660 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader439#-774044254] 06:25:56,662 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:56,663 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 06:25:56,663 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior440#963713420] 06:25:56,664 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower441#2096023797] 06:25:56,664 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader442#-1672626996] 06:25:56,666 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:56,667 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 06:25:56,667 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 06:25:56,667 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior443#-888331546] 06:25:56,668 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower444#1182677228] 06:25:56,668 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader445#-2031750754] 06:25:56,670 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 06:25:56,670 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:56,672 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 06:25:56,672 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:25:56,672 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 06:25:56,673 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 06:25:56,673 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 06:25:56,673 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 06:25:56,673 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 06:25:56,673 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 06:25:56,676 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 06:25:56,676 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior446#-1775708101] 06:25:56,677 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower447#-1390347363] 06:25:56,677 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader448#-1566708111] 06:25:56,680 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 06:25:56,680 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:56,681 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]]} 06:25:56,681 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 06:25:56,681 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} 06:25:56,681 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 06:25:56,682 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior449#370611375] 06:25:56,682 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower450#-1108980378] 06:25:56,682 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader451#1134887510] 06:25:56,684 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 06:25:56,685 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:56,685 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 06:25:56,685 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:25:56,685 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 06:25:56,685 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 06:25:56,686 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 06:25:56,686 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 06:25:56,686 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 06:25:56,686 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 06:25:56,686 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 06:25:56,687 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]]} 06:25:56,687 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 06:25:56,687 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} 06:25:56,687 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 06:25:56,687 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior452#2044845551] 06:25:56,688 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower453#485243119] 06:25:56,688 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader454#897499420] 06:25:56,691 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:56,691 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 06:25:56,692 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior455#2003755533] 06:25:56,692 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower456#-341852816] 06:25:56,692 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader457#-1161579105] 06:25:56,694 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 06:25:56,694 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:56,695 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 06:25:56,695 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]]} 06:25:56,696 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:25:56,696 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 06:25:56,696 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 06:25:56,696 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 06:25:56,696 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 06:25:56,696 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} 06:25:56,696 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:25:56,696 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 06:25:56,696 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 06:25:56,696 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior458#2119622663] 06:25:56,697 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower459#-999867763] 06:25:56,697 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader460#1096846224] 06:25:56,699 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 06:25:56,699 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:56,700 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]]} 06:25:56,700 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:25:56,700 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 06:25:56,700 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 06:25:56,700 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 06:25:56,700 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 06:25:56,700 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} 06:25:56,701 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:25:56,701 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 06:25:56,701 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 06:25:56,701 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:25:56,701 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 06:25:56,701 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 06:25:56,701 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]]} 06:25:56,701 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 06:25:56,702 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 06:25:56,702 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 06:25:56,702 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 06:25:56,702 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 06:25:56,702 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 06:25:56,702 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} 06:25:56,702 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 06:25:56,702 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 06:25:56,702 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 06:25:56,702 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 06:25:56,702 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior461#1814195833] 06:25:56,703 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower462#-1563985068] 06:25:56,703 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader463#1707476502] 06:25:56,705 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 06:25:56,705 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:56,706 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 06:25:56,706 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 06:25:56,706 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} 06:25:56,707 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 06:25:56,707 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior464#-1409187912] 06:25:56,707 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower465#152012552] 06:25:56,707 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader466#1856691124] 06:25:56,710 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:56,712 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior467#-1496251156] 06:25:56,713 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower468#-1139523059] 06:25:56,713 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader469#1275740197] 06:25:56,715 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 06:25:56,716 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:56,716 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 06:25:56,716 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 06:25:56,716 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]]} 06:25:56,717 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:25:56,717 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 06:25:56,717 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 06:25:56,717 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 06:25:56,717 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 06:25:56,717 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} 06:25:56,717 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:25:56,717 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 06:25:56,717 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 06:25:56,717 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 06:25:56,717 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 06:25:56,717 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior470#942258190] 06:25:56,718 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower471#-670991930] 06:25:56,718 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader472#387376171] 06:25:56,720 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [09/23/2026 18:25:56.723] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@42b8752a [INFO] [pekkoDeadLetter][09/23/2026 18:25:56.723] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 06:25:56,723 PM [test-pekko.actor.default-dispatcher-4] [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'. 06:25:56,724 PM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 06:25:56,724 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:25:56,724 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:25:56,725 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 06:25:56,726 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:25:56,726 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 06:25:56,728 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - /tmp/junit-15545431286068899562/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 06:25:56,728 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15545431286068899562/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:25:56,728 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15545431286068899562/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:25:56,728 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 06:25:56,728 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:25:56,728 PM [test-pekko.actor.default-dispatcher-4] [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 06:25:56,733 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:25:56,733 PM [test-pekko.actor.default-dispatcher-4] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 06:25:56,733 PM [test-pekko.actor.default-dispatcher-4] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 06:25:56,733 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:25:56,733 PM [test-pekko.actor.default-dispatcher-4] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 06:25:56,734 PM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 06:25:56,734 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-15545431286068899562/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006AB419B4-2BC257A5.tmp 06:25:56,738 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-15545431286068899562/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006AB419B4-2BC257A5.v1 06:25:56,738 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-15545431286068899562/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006AB419B4-2BC257A5.v1 06:25:56,738 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15545431286068899562/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:25:56,738 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15545431286068899562/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:25:56,738 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15545431286068899562/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:25:56,738 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2026-09-23T18:25:56.734156709Z, file=/tmp/junit-15545431286068899562/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006AB419B4-2BC257A5.v1, size=419, entryCompress=NONE, stateCompress=NONE} 06:25:56,738 PM [test-pekko.actor.default-dispatcher-4] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot completed in 4.903 ms, resetting timer for the next recovery snapshot 06:25:56,739 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 06:25:56,739 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 06:25:56,739 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 06:25:56,739 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 06:25:56,739 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 06:25:56,739 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: journal recovery completedin 278.3 μs with journalIndex=1 06:25:56,739 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 06:25:56,739 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 06:25:56,739 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 06:25:56,739 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: writer thread VirtualThread[#819,testCaptureSnapshotOnLastEntryInAppendEntries-writer-157]/waiting started 06:25:56,740 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 06:25:56,841 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-15545431286068899562/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006AB419B4-2BC257A5.v1 06:25:56,841 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15545431286068899562/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:25:56,841 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15545431286068899562/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:25:56,841 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15545431286068899562/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:25:56,841 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2026-09-23T18:25:56.734156709Z, file=/tmp/junit-15545431286068899562/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006AB419B4-2BC257A5.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 06:25:56,842 PM [test-pekko.actor.default-dispatcher-4] [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]]} 06:25:56,842 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 06:25:56,842 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 06:25:56,842 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 06:25:56,842 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 06:25:56,843 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 06:25:56,843 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 06:25:56,843 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 06:25:56,843 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 06:25:56,843 PM [test-pekko.actor.default-dispatcher-4] [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} 06:25:56,843 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 06:25:56,843 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 06:25:56,843 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 06:25:56,843 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 06:25:56,843 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 06:25:56,843 PM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 06:25:56,843 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 06:25:56,843 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 06:25:56,843 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 06:25:56,843 PM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 06:25:56,843 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 06:25:56,843 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 3 commands after 104.3 ms 06:25:56,849 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 06:25:56,849 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 3 completion(s) pending 06:25:56,849 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 3 commands in 5.865 ms 06:25:56,849 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 06:25:56,850 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 3 completion(s) 06:25:56,850 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 06:25:56,850 PM [test-pekko.actor.default-dispatcher-4] [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/0x00000007c093aec8@73302cf2} 06:25:56,850 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 06:25:56,850 PM [test-pekko.actor.default-dispatcher-4] [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] 06:25:56,850 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 06:25:56,850 PM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 06:25:56,850 PM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 06:25:56,850 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 06:25:56,850 PM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 06:25:56,850 PM [test-pekko.actor.default-dispatcher-4] [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/0x00000007c093aec8@73302cf2} 06:25:56,850 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 6.819 ms [WARN] [09/23/2026 18:25:56.850] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] 06:25:56,851 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d666432] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-15545431286068899562/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006AB419B4-32B0E084.tmp [INFO] [pekkoDeadLetter][09/23/2026 18:25:56.851] [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'. 06:25:56,851 PM [test-pekko.actor.default-dispatcher-5] [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'. 06:25:56,853 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d666432] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-15545431286068899562/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006AB419B4-32B0E084.v1 06:25:56,853 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d666432] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-15545431286068899562/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006AB419B4-32B0E084.v1 06:25:56,854 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d666432] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-15545431286068899562/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006AB419B4-2BC257A5.v1 06:25:56,854 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d666432] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15545431286068899562/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:25:56,854 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d666432] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15545431286068899562/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:25:56,854 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d666432] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15545431286068899562/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:25:56,854 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d666432] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2026-09-23T18:25:56.734156709Z, file=/tmp/junit-15545431286068899562/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006AB419B4-2BC257A5.v1, size=419, entryCompress=NONE, stateCompress=NONE} 06:25:56,854 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d666432] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2026-09-23T18:25:56.850452612Z, file=/tmp/junit-15545431286068899562/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006AB419B4-32B0E084.v1, size=555, entryCompress=NONE, stateCompress=NONE} 06:25:56,854 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d666432] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 06:25:56,854 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 06:25:56,854 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2026-09-23T18:25:56.850452612Z 06:25:56,854 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 06:25:56,854 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 06:25:56,854 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 4.975 ms 06:25:56,855 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 06:25:56,855 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 06:25:56,855 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 06:25:56,855 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 06:25:56,855 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 264.5 μs 06:25:56,855 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 06:25:57,47 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-15545431286068899562/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006AB419B4-32B0E084.v1 06:25:57,47 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15545431286068899562/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:25:57,47 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15545431286068899562/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:25:57,47 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15545431286068899562/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:25:57,47 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2026-09-23T18:25:56.850452612Z, file=/tmp/junit-15545431286068899562/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006AB419B4-32B0E084.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 06:25:57,50 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior473#956602684] 06:25:57,61 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower474#2117343183] 06:25:57,61 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader475#294199272] 06:25:57,61 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 06:25:57,61 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#819,testCaptureSnapshotOnLastEntryInAppendEntries-writer-157]/waiting 06:25:57,62 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 206.9 ms 06:25:57,62 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 24.44 μs 06:25:57,62 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 06:25:57,62 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminated thread VirtualThread[#819,testCaptureSnapshotOnLastEntryInAppendEntries-writer-157]/terminated 06:25:57,62 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:25:57,62 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:25:57,62 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:25:57,62 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:25:57,67 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:57,68 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior476#2067609742] 06:25:57,79 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower477#1031694120] 06:25:57,79 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader478#-587537017] 06:25:57,84 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 06:25:57,84 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:57,85 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 06:25:57,86 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 06:25:57,87 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior479#805772170] 06:25:57,97 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower480#1772677073] 06:25:57,98 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader481#1258486932] 06:25:57,102 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 06:25:57,102 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:57,103 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 06:25:57,103 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]]} 06:25:57,104 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:25:57,104 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 06:25:57,104 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 06:25:57,104 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 06:25:57,104 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 06:25:57,104 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} 06:25:57,104 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:25:57,104 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 06:25:57,104 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 06:25:57,105 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior482#-1122535601] 06:25:57,116 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower483#896050531] 06:25:57,116 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader484#-1797062223] 06:25:57,120 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 06:25:57,120 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:57,121 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 06:25:57,122 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]]} 06:25:57,122 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 06:25:57,123 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} 06:25:57,123 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:25:57,123 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 06:25:57,124 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]]} 06:25:57,124 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 06:25:57,125 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} 06:25:57,125 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 06:25:57,125 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior485#-1299296838] 06:25:57,136 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower486#-1417294816] 06:25:57,136 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader487#237090144] 06:25:57,140 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:57,141 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior488#1279236559] 06:25:57,151 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower489#295735698] 06:25:57,152 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader490#532739180] 06:25:57,155 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 06:25:57,155 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:57,156 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 06:25:57,157 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]]} 06:25:57,157 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 06:25:57,158 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} 06:25:57,158 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:25:57,158 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 06:25:57,159 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]]} 06:25:57,160 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 06:25:57,160 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} 06:25:57,160 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 06:25:57,161 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]]} 06:25:57,161 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 06:25:57,162 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} 06:25:57,162 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 06:25:57,162 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior491#-340855976] 06:25:57,173 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower492#-1127946269] 06:25:57,173 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader493#-65793714] 06:25:57,177 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 06:25:57,177 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:57,178 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]]} 06:25:57,178 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:25:57,179 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 06:25:57,179 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 06:25:57,179 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 06:25:57,179 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 06:25:57,179 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} 06:25:57,179 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 06:25:57,179 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 06:25:57,179 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 06:25:57,180 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior494#287742918] 06:25:57,191 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower495#1902771753] 06:25:57,191 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader496#768110529] 06:25:57,195 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 06:25:57,195 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:57,197 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 06:25:57,198 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader499 06:25:57,198 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader499 06:25:57,200 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 06:25:57,200 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior497#1497220990] 06:25:57,211 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower498#448806539] 06:25:57,211 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader499#-416144181] 06:25:57,216 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 06:25:57,216 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:57,217 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 06:25:57,217 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]]} 06:25:57,218 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:25:57,218 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 06:25:57,218 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 06:25:57,218 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 06:25:57,218 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 06:25:57,218 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} 06:25:57,218 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:25:57,218 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 06:25:57,219 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 06:25:57,219 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior500#-2078994247] 06:25:57,230 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower501#1262789922] 06:25:57,230 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader502#-1963330106] 06:25:57,233 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 06:25:57,234 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:57,234 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 06:25:57,235 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]]} 06:25:57,235 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 06:25:57,236 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} 06:25:57,236 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:25:57,236 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior503#976042956] 06:25:57,247 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower504#1849840837] 06:25:57,247 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader505#-553032496] 06:25:57,251 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [09/23/2026 18:25:57.252] [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@5673fb62 [INFO] [pekkoDeadLetter][09/23/2026 18:25:57.252] [test-pekko.actor.default-dispatcher-4] [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'. 06:25:57,252 PM [test-pekko.actor.default-dispatcher-11] [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'. 06:25:57,252 PM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 06:25:57,252 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 06:25:57,252 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 06:25:57,253 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 06:25:57,253 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:25:57,253 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 06:25:57,255 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - /tmp/junit-10444036737281611661/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 06:25:57,255 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10444036737281611661/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 06:25:57,255 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10444036737281611661/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 06:25:57,255 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 06:25:57,255 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 06:25:57,255 PM [test-pekko.actor.default-dispatcher-4] [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 06:25:57,258 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 06:25:57,258 PM [test-pekko.actor.default-dispatcher-4] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 06:25:57,258 PM [test-pekko.actor.default-dispatcher-4] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: taking snapshot to clear Pekko persistence to 1 06:25:57,258 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:25:57,258 PM [test-pekko.actor.default-dispatcher-4] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Taking snapshot on entry with index -1 06:25:57,258 PM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 06:25:57,258 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-10444036737281611661/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006AB419B5-0F6A38FA.tmp 06:25:57,261 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-10444036737281611661/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006AB419B5-0F6A38FA.v1 06:25:57,261 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-10444036737281611661/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006AB419B5-0F6A38FA.v1 06:25:57,261 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10444036737281611661/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 06:25:57,261 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10444036737281611661/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 06:25:57,261 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10444036737281611661/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 06:25:57,261 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2026-09-23T18:25:57.258619642Z, file=/tmp/junit-10444036737281611661/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006AB419B5-0F6A38FA.v1, size=419, entryCompress=NONE, stateCompress=NONE} 06:25:57,262 PM [test-pekko.actor.default-dispatcher-4] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot completed in 3.484 ms, resetting timer for the next recovery snapshot 06:25:57,262 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed and cannot restore from snapshot 06:25:57,262 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 06:25:57,262 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 06:25:57,262 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 06:25:57,262 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 06:25:57,262 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal recovery completedin 160.2 μs with journalIndex=1 06:25:57,262 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Journal recovery completed and cannot restore from snapshot 06:25:57,262 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: writer thread VirtualThread[#825,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158]/runnable started 06:25:57,262 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: ignoring DeleteMessagesSuccess(1) 06:25:57,262 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 06:25:57,262 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 06:25:57,262 PM [test-pekko.actor.default-dispatcher-4] [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]]} 06:25:57,263 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 06:25:57,263 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 06:25:57,263 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 06:25:57,263 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 06:25:57,263 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 06:25:57,263 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 06:25:57,263 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 06:25:57,263 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 06:25:57,263 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 06:25:57,263 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 06:25:57,263 PM [test-pekko.actor.default-dispatcher-4] [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} 06:25:57,263 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 06:25:57,263 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 06:25:57,263 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 06:25:57,263 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 06:25:57,263 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 06:25:57,263 PM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 06:25:57,263 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 06:25:57,263 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 4 commands after 471.6 μs 06:25:57,267 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 06:25:57,267 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 4 completion(s) pending 06:25:57,267 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 4 commands in 4.381 ms 06:25:57,267 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 06:25:57,267 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 4 completion(s) 06:25:57,267 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 06:25:57,267 PM [test-pekko.actor.default-dispatcher-4] [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/0x00000007c093aec8@456664e0} 06:25:57,267 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 06:25:57,267 PM [test-pekko.actor.default-dispatcher-4] [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/0x00000007c093aec8@456664e0} 06:25:57,267 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 06:25:57,267 PM [test-pekko.actor.default-dispatcher-4] [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] 06:25:57,268 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 06:25:57,268 PM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 06:25:57,268 PM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 06:25:57,268 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 06:25:57,268 PM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 06:25:57,268 PM [test-pekko.actor.default-dispatcher-4] [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/0x00000007c093aec8@456664e0} 06:25:57,268 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 4.768 ms [WARN] [09/23/2026 18:25:57.268] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] 06:25:57,268 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d171378] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-10444036737281611661/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006AB419B5-0FF9E3AE.tmp [INFO] [pekkoDeadLetter][09/23/2026 18:25:57.268] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 06:25:57,268 PM [test-pekko.actor.default-dispatcher-5] [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'. 06:25:57,270 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d171378] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-10444036737281611661/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006AB419B5-0FF9E3AE.v1 06:25:57,270 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d171378] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-10444036737281611661/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006AB419B5-0FF9E3AE.v1 06:25:57,270 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d171378] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-10444036737281611661/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006AB419B5-0F6A38FA.v1 06:25:57,270 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d171378] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10444036737281611661/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 06:25:57,270 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d171378] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10444036737281611661/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 06:25:57,270 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d171378] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10444036737281611661/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 06:25:57,270 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d171378] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2026-09-23T18:25:57.258619642Z, file=/tmp/junit-10444036737281611661/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006AB419B5-0F6A38FA.v1, size=419, entryCompress=NONE, stateCompress=NONE} 06:25:57,270 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d171378] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2026-09-23T18:25:57.268034990Z, file=/tmp/junit-10444036737281611661/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006AB419B5-0FF9E3AE.v1, size=539, entryCompress=NONE, stateCompress=NONE} 06:25:57,270 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d171378] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 06:25:57,270 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 06:25:57,270 PM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2026-09-23T18:25:57.268034990Z 06:25:57,270 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 06:25:57,270 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 06:25:57,270 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 3.180 ms 06:25:57,271 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 06:25:57,271 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 06:25:57,271 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 06:25:57,271 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 87.15 μs 06:25:57,271 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 06:25:57,271 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 06:25:57,414 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-10444036737281611661/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006AB419B5-0FF9E3AE.v1 06:25:57,414 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10444036737281611661/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 06:25:57,414 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10444036737281611661/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 06:25:57,414 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-10444036737281611661/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 06:25:57,414 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2026-09-23T18:25:57.268034990Z, file=/tmp/junit-10444036737281611661/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006AB419B5-0FF9E3AE.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 06:25:57,416 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior506#1877167906] 06:25:57,427 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower507#-435126319] 06:25:57,427 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader508#1359408222] 06:25:57,428 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 06:25:57,428 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#825,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158]/waiting 06:25:57,428 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 157.3 ms 06:25:57,428 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 18.92 μs 06:25:57,428 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 06:25:57,428 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminated thread VirtualThread[#825,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158]/terminated 06:25:57,428 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 06:25:57,428 PM [test-pekko.actor.default-dispatcher-4] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 06:25:57,428 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 06:25:57,429 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 06:25:57,434 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 06:25:57,435 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:57,436 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 06:25:57,436 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]]} 06:25:57,437 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 06:25:57,437 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} 06:25:57,438 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 06:25:57,438 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior509#-2009858822] 06:25:57,449 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower510#-64526952] 06:25:57,449 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader511#-738814057] 06:25:57,453 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 06:25:57,453 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:57,454 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 06:25:57,455 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 06:25:57,456 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 06:25:57,456 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 06:25:57,456 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 06:25:57,457 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior512#2081505241] 06:25:57,468 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower513#-489977720] 06:25:57,468 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader514#2038037770] 06:25:57,473 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 06:25:57,473 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:57,476 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 06:25:57,477 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]]} 06:25:57,477 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 06:25:57,477 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 06:25:57,477 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:25:57,477 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 06:25:57,477 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 06:25:57,477 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 06:25:57,477 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 06:25:57,477 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 06:25:57,477 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 06:25:57,478 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} 06:25:57,478 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 06:25:57,478 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 06:25:57,478 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 06:25:57,478 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:25:57,478 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 06:25:57,478 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 06:25:57,479 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 06:25:57,479 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 06:25:57,479 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 06:25:57,479 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 06:25:57,479 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior515#884514465] 06:25:57,491 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower516#-1453255080] 06:25:57,491 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader517#-1967147481] 06:25:57,494 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 06:25:57,495 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:57,495 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 06:25:57,495 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 06:25:57,496 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior518#1045186118] 06:25:57,507 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower519#-967903505] 06:25:57,507 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader520#1249509469] 06:25:57,511 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 06:25:57,511 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:57,512 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 06:25:57,512 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:25:57,512 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 06:25:57,512 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 06:25:57,513 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 06:25:57,514 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]]} 06:25:57,514 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 06:25:57,514 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:25:57,514 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 06:25:57,514 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 06:25:57,514 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 06:25:57,514 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 06:25:57,514 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} 06:25:57,515 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 06:25:57,515 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 06:25:57,515 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 06:25:57,515 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 06:25:57,516 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior521#293155232] 06:25:57,527 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower522#158154129] 06:25:57,527 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader523#-1596623903] 06:25:57,530 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 06:25:57,531 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:57,532 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 06:25:57,533 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]]} 06:25:57,533 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 06:25:57,533 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} 06:25:57,534 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:25:57,534 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 06:25:57,535 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]]} 06:25:57,535 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 06:25:57,535 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} 06:25:57,535 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 06:25:57,535 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 06:25:57,536 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]]} 06:25:57,536 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 06:25:57,537 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} 06:25:57,537 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 06:25:57,538 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior524#1385540452] 06:25:57,548 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower525#-730222437] 06:25:57,549 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader526#-1638944951] 06:25:57,554 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 06:25:57,554 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:57,754 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:25:57,755 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.171.148:17355, Removed) 06:25:57,755 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 06:25:57,755 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 06:25:57,755 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 06:25:57,755 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 06:25:57,755 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior527#-1048833530] 06:25:57,766 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower528#-364891808] 06:25:57,767 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader529#-2145301461] 06:25:57,771 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:57,771 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 06:25:57,922 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:25:57,923 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior530#-1215886021] 06:25:57,934 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower531#-655470686] 06:25:57,934 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader532#564563387] 06:25:57,938 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 06:25:57,938 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:57,941 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 06:25:57,942 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 06:25:57,943 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior533#1690036931] 06:25:57,953 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower534#-1754602063] 06:25:57,953 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader535#-1894758405] 06:25:57,957 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 06:25:57,957 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:57,958 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]]} 06:25:57,959 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 06:25:57,959 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 06:25:57,959 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 06:25:57,959 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 06:25:57,959 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 06:25:57,959 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 06:25:57,959 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} 06:25:57,959 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 06:25:57,959 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 06:25:57,960 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 06:25:57,960 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:25:57,960 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 06:25:57,960 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 06:25:57,960 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 06:25:57,960 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 06:25:57,960 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 06:25:57,960 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 06:25:57,960 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 06:25:57,960 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 06:25:57,961 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior536#361839363] 06:25:57,973 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower537#-1003135033] 06:25:57,973 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader538#-1940755370] 06:25:57,978 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 06:25:57,978 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:57,979 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 06:25:57,979 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:25:57,979 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 06:25:57,979 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 06:25:57,980 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]]} 06:25:57,981 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} 06:25:57,982 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior539#1800915917] 06:25:57,992 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower540#-386335118] 06:25:57,993 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader541#-344707163] 06:25:57,996 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 06:25:57,997 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:57,997 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 06:25:57,998 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]]} 06:25:57,998 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 06:25:57,998 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 06:25:57,999 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 06:25:57,999 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior542#-82973832] 06:25:58,10 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower543#1842474388] 06:25:58,10 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader544#1131139567] 06:25:58,14 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [09/23/2026 18:25:58.014] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@710bc99f [INFO] [pekkoDeadLetter][09/23/2026 18:25:58.014] [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. [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'. 06:25:58,15 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. [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'. 06:25:58,15 PM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 06:25:58,15 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 06:25:58,15 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 06:25:58,16 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 06:25:58,16 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:25:58,16 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 06:25:58,18 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 06:25:58,18 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 06:25:58,18 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 06:25:58,18 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 06:25:58,18 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:25:58,18 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 06:25:58,22 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:25:58,22 PM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 06:25:58,22 PM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 06:25:58,22 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:25:58,22 PM [test-pekko.actor.default-dispatcher-14] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Taking snapshot on entry with index -1 06:25:58,23 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 06:25:58,23 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006AB419B6-015F52D0.tmp 06:25:58,27 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006AB419B6-015F52D0.v1 06:25:58,27 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006AB419B6-015F52D0.v1 06:25:58,27 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 06:25:58,27 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 06:25:58,27 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 06:25:58,27 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2026-09-23T18:25:58.023024336Z, file=/tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006AB419B6-015F52D0.v1, size=419, entryCompress=NONE, stateCompress=NONE} 06:25:58,27 PM [test-pekko.actor.default-dispatcher-14] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot completed in 4.980 ms, resetting timer for the next recovery snapshot 06:25:58,28 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 06:25:58,28 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 06:25:58,28 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 06:25:58,28 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 06:25:58,28 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 06:25:58,28 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 180.3 μs with journalIndex=1 06:25:58,28 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 06:25:58,28 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: writer thread VirtualThread[#828,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159]/runnable started 06:25:58,28 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 06:25:58,28 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 06:25:58,29 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 06:25:58,130 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006AB419B6-015F52D0.v1 06:25:58,130 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 06:25:58,130 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 06:25:58,130 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 06:25:58,130 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2026-09-23T18:25:58.023024336Z, file=/tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006AB419B6-015F52D0.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 06:25:58,131 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]]} 06:25:58,131 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 06:25:58,131 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 06:25:58,131 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 06:25:58,131 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 06:25:58,131 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 06:25:58,131 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 06:25:58,131 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 06:25:58,131 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 06:25:58,131 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 06:25:58,131 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 06:25:58,131 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} 06:25:58,131 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 102.9 ms 06:25:58,131 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 06:25:58,131 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 06:25:58,131 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 06:25:58,131 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 06:25:58,131 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 06:25:58,131 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 06:25:58,131 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 06:25:58,131 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 06:25:58,131 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 06:25:58,131 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 06:25:58,131 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 06:25:58,131 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 06:25:58,131 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 06:25:58,131 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 06:25:58,132 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 06:25:58,137 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 06:25:58,138 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 6.423 ms 06:25:58,138 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 3.811 μs 06:25:58,138 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 06:25:58,138 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 06:25:58,138 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/0x00000007c093aec8@49ca64eb} 06:25:58,138 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 06:25:58,138 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/0x00000007c093aec8@49ca64eb} 06:25:58,138 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 06:25:58,139 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 06:25:58,139 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 06:25:58,139 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 1.413 ms 06:25:58,139 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 06:25:58,139 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 06:25:58,139 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 06:25:58,139 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] 06:25:58,139 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 06:25:58,139 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 06:25:58,139 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 06:25:58,139 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 06:25:58,139 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 06:25:58,139 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/0x00000007c093aec8@49ca64eb} 06:25:58,139 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d954397] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006AB419B6-085467FF.tmp 06:25:58,139 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 7.912 ms [WARN] [09/23/2026 18:25:58.140] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][09/23/2026 18:25:58.140] [test-pekko.actor.default-dispatcher-14] [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'. 06:25:58,140 PM [test-pekko.actor.default-dispatcher-14] [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'. 06:25:58,143 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d954397] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006AB419B6-085467FF.v1 06:25:58,143 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d954397] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006AB419B6-015F52D0.v1 06:25:58,143 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d954397] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006AB419B6-085467FF.v1 06:25:58,143 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d954397] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 06:25:58,143 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d954397] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 06:25:58,143 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d954397] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 06:25:58,143 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d954397] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2026-09-23T18:25:58.023024336Z, file=/tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006AB419B6-015F52D0.v1, size=419, entryCompress=NONE, stateCompress=NONE} 06:25:58,143 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d954397] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-09-23T18:25:58.139749375Z, file=/tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006AB419B6-085467FF.v1, size=573, entryCompress=NONE, stateCompress=NONE} 06:25:58,143 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d954397] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 06:25:58,143 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 06:25:58,144 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2026-09-23T18:25:58.139749375Z 06:25:58,144 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 06:25:58,144 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 06:25:58,144 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 4.695 ms 06:25:58,144 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 06:25:58,144 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 06:25:58,144 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 06:25:58,144 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 189.0 μs 06:25:58,144 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 06:25:58,144 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 06:25:58,383 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006AB419B6-085467FF.v1 06:25:58,383 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 06:25:58,383 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 06:25:58,383 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 06:25:58,383 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-09-23T18:25:58.139749375Z, file=/tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006AB419B6-085467FF.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 06:25:58,386 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 06:25:58,397 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#828,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159]/waiting 06:25:58,398 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 253.5 ms 06:25:58,398 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 24.03 μs 06:25:58,398 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 06:25:58,398 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminated thread VirtualThread[#828,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159]/terminated 06:25:58,398 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 06:25:58,398 PM [test-pekko.actor.default-dispatcher-14] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 06:25:58,398 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 06:25:58,398 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [09/23/2026 18:25:58.400] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@48a084b4 [INFO] [pekkoDeadLetter][09/23/2026 18:25:58.400] [test-pekko.actor.default-dispatcher-4] [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'. 06:25:58,400 PM [test-pekko.actor.default-dispatcher-5] [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'. 06:25:58,400 PM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 06:25:58,400 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 06:25:58,401 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 06:25:58,401 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 06:25:58,402 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 06:25:58,402 PM [test-pekko.actor.default-dispatcher-14] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 06:25:58,404 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:25:58,405 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006AB419B6-085467FF.v1 06:25:58,405 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 06:25:58,405 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 06:25:58,405 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 06:25:58,405 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-09-23T18:25:58.139749375Z, file=/tmp/junit-13778813174480556064/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006AB419B6-085467FF.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 06:25:58,405 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 06:25:58,406 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2026-09-23T18:25:58.139749375Z 06:25:58,406 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:25:58,406 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 227.9 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 06:25:58,406 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 386.9 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 06:25:58,406 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 06:25:58,406 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:25:58,406 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 06:25:58,406 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 06:25:58,406 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 06:25:58,406 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 06:25:58,406 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 06:25:58,406 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 103.3 μs with journalIndex=4 06:25:58,407 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 06:25:58,407 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: writer thread VirtualThread[#833,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160]/runnable started 06:25:58,407 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 06:25:58,407 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 06:25:58,500 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior545#-1848749799] 06:25:58,511 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower546#-1641364068] 06:25:58,512 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader547#-2008498567] 06:25:58,512 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 06:25:58,512 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#833,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160]/waiting 06:25:58,512 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 105.4 ms 06:25:58,512 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 19.53 μs 06:25:58,512 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 06:25:58,512 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminated thread VirtualThread[#833,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160]/terminated 06:25:58,512 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 06:25:58,512 PM [test-pekko.actor.default-dispatcher-14] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 06:25:58,512 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 06:25:58,512 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 06:25:58,521 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 06:25:58,521 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:58,822 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 06:25:58,952 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:25:58,952 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 06:25:59,203 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 06:25:59,403 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 06:25:59,403 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior548#828332389] 06:25:59,414 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower549#692392638] 06:25:59,414 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader550#-2016899166] 06:25:59,419 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:25:59,420 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:25:59,420 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 06:25:59,420 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 06:25:59,420 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 06:25:59,420 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 06:25:59,421 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior551#106469395] 06:25:59,432 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower552#-1206234669] 06:25:59,432 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader553#-1359843305] [INFO] [09/23/2026 18:25:59.434] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 06:25:59,434 PM [test-pekko.actor.default-dispatcher-5] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [09/23/2026 18:25:59.435] [test-pekko.actor.default-dispatcher-5] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.148:17355) 06:25:59,435 PM [test-pekko.actor.default-dispatcher-5] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-536616643] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][09/23/2026 18:25:59.435] [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#-536616643] 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] [09/23/2026 18:25:59.436] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.148:17355] - Exiting completed [INFO] [09/23/2026 18:25:59.436] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.148:17355] - Shutting down... [INFO] [09/23/2026 18:25:59.436] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.148:17355] - Successfully shut down 06:25:59,437 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.148:17355] - Exiting completed 06:25:59,437 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.148:17355] - Shutting down... 06:25:59,437 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.148:17355] - Successfully shut down [INFO] [09/23/2026 18:25:59.438] [test-pekko.remote.default-remote-dispatcher-6] [pekko://test@10.30.171.148:17355/system/remoting-terminator] Shutting down remote daemon. 06:25:59,438 PM [test-pekko.actor.default-dispatcher-14] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [09/23/2026 18:25:59.438] [test-pekko.remote.default-remote-dispatcher-6] [pekko://test@10.30.171.148:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 06:25:59,438 PM [test-pekko.actor.default-dispatcher-4] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [09/23/2026 18:25:59.441] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.148:17355/system/remoting-terminator] Remoting shut down. [DEBUG] [09/23/2026 18:25:59.441] [test-pekko.actor.internal-dispatcher-10] [EventStream] shutting down: StandardOutLogger 06:25:59,441 PM [test-pekko.actor.default-dispatcher-14] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down.