[DEBUG] [08/12/2026 19:46:01.798] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 07:46:01,806 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [08/12/2026 19:46:01.806] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [08/12/2026 19:46:01.807] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [08/12/2026 19:46:01.821] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.131:17355] with UID [1272709772069764047] [INFO] [08/12/2026 19:46:01.822] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.131:17355] - Starting up, Pekko version [1.4.0] ... 07:46:01,824 PM [test-pekko.actor.default-dispatcher-8] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.131:17355] with UID [1272709772069764047] 07:46:01,824 PM [test-pekko.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.131:17355] - Starting up, Pekko version [1.4.0] ... [INFO] [08/12/2026 19:46:01.826] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.131:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 07:46:01,827 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.131:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [08/12/2026 19:46:01.827] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.131:17355] - Started up successfully 07:46:01,827 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.131:17355] - Started up successfully [INFO] [08/12/2026 19:46:01.828] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.131:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [08/12/2026 19:46:01.828] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.131:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 07:46:01,828 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.131:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 07:46:01,828 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.131:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 07:46:01,846 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:01,937 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 07:46:01,937 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 07:46:01,938 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior420#-622716772] 07:46:01,939 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower421#1440662736] 07:46:01,939 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader422#1352426275] 07:46:01,944 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:01,946 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]]} 07:46:01,946 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:46:01,946 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 07:46:01,946 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 07:46:01,947 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:46:01,947 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 07:46:01,947 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} 07:46:01,948 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 07:46:01,948 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 07:46:01,949 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:46:01,950 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:46:01,950 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 07:46:01,951 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior423#7136711] 07:46:01,951 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower424#148698759] 07:46:01,951 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader425#187396063] 07:46:01,957 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:01,958 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 07:46:01,959 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 07:46:01,959 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior426#-561989822] 07:46:01,960 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower427#498024888] 07:46:01,960 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader428#883981047] 07:46:01,963 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:01,964 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 07:46:01,968 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 07:46:01,968 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} 07:46:01,968 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 07:46:01,969 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 07:46:01,973 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 07:46:01,973 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 07:46:01,973 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. 07:46:01,973 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 07:46:01,974 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 07:46:01,974 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 07:46:01,975 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 07:46:01,975 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior429#-1821515363] 07:46:01,986 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower430#-2034379131] 07:46:01,986 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader431#1608122582] 07:46:01,990 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:01,990 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:46:01,991 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:46:01,991 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:01,991 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 07:46:01,992 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 07:46:01,992 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 07:46:01,993 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 07:46:01,993 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 07:46:01,993 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior432#-2049511469] 07:46:02,4 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower433#1307942870] 07:46:02,4 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader434#2048383708] 07:46:02,8 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:02,9 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 07:46:02,10 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior435#-1274744761] 07:46:02,20 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower436#-1355946241] 07:46:02,20 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader437#-1876728785] 07:46:02,24 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:02,25 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 07:46:02,26 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 07:46:02,26 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior438#2032500770] 07:46:02,37 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower439#-316645326] 07:46:02,37 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader440#750160053] 07:46:02,41 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 07:46:02,41 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:02,43 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:46:02,43 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:46:02,43 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:46:02,43 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:46:02,44 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 07:46:02,44 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 07:46:02,44 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 07:46:02,44 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 07:46:02,46 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 07:46:02,47 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior441#-463958794] 07:46:02,57 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower442#699161857] 07:46:02,57 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader443#187623255] 07:46:02,61 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 07:46:02,61 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:02,63 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]]} 07:46:02,63 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 07:46:02,64 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} 07:46:02,64 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 07:46:02,64 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior444#255702432] 07:46:02,75 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower445#770367360] 07:46:02,75 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader446#-1111793077] 07:46:02,79 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 07:46:02,79 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:02,80 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:46:02,80 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:46:02,80 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:46:02,80 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:46:02,81 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 07:46:02,81 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 07:46:02,81 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 07:46:02,82 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:46:02,82 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 07:46:02,83 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]]} 07:46:02,83 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 07:46:02,84 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} 07:46:02,84 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 07:46:02,84 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior447#2001668537] 07:46:02,95 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower448#367334458] 07:46:02,95 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader449#1116618940] 07:46:02,103 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:02,104 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 07:46:02,105 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior450#581635675] 07:46:02,116 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower451#756915377] 07:46:02,116 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader452#1937128463] 07:46:02,118 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 07:46:02,118 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:02,119 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 07:46:02,120 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]]} 07:46:02,120 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:46:02,120 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:46:02,120 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:46:02,120 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:46:02,120 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:46:02,120 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} 07:46:02,120 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:46:02,120 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:46:02,120 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:46:02,121 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior453#-1676496133] 07:46:02,131 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower454#948186427] 07:46:02,132 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader455#838570078] 07:46:02,135 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 07:46:02,135 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:02,136 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]]} 07:46:02,137 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:46:02,137 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 07:46:02,137 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 07:46:02,137 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:46:02,137 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 07:46:02,137 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} 07:46:02,137 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:46:02,137 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 07:46:02,137 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:46:02,137 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:46:02,138 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:46:02,138 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:46:02,139 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]]} 07:46:02,139 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:46:02,139 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 07:46:02,139 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 07:46:02,139 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 07:46:02,139 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 07:46:02,139 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 07:46:02,139 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} 07:46:02,139 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 07:46:02,139 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 07:46:02,139 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:46:02,139 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:46:02,140 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#-1515044812] 07:46:02,150 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower457#-410455970] 07:46:02,152 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader458#-1024886117] 07:46:02,157 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 07:46:02,157 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:02,158 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 07:46:02,159 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 07:46:02,159 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} 07:46:02,159 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 07:46:02,159 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#-1621654666] 07:46:02,170 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower460#1647000045] 07:46:02,170 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader461#-1694250067] 07:46:02,173 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:02,175 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#2069130874] 07:46:02,186 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower463#-1006558423] 07:46:02,186 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader464#652829474] 07:46:02,189 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 07:46:02,189 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:02,189 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 07:46:02,190 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 07:46:02,190 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]]} 07:46:02,190 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:46:02,191 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:46:02,191 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:46:02,191 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:46:02,191 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:46:02,191 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} 07:46:02,191 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:46:02,191 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 07:46:02,191 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 07:46:02,191 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 07:46:02,191 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 07:46:02,192 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#-1556468462] 07:46:02,202 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower466#-1751084161] 07:46:02,202 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader467#-34366572] 07:46:02,208 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries 07:46:02,211 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:46:02,212 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] [WARN] [08/12/2026 19:46:02.213] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@66402f30 07:46:02,213 PM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 [INFO] [pekkoDeadLetter][08/12/2026 19:46:02.213] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:46:02,213 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 07:46:02,213 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 07:46:02,213 PM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:46:02,214 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 07:46:02,214 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 07:46:02,214 PM [test-pekko.actor.default-dispatcher-8] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 07:46:02,214 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 07:46:02,214 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - /tmp/junit-592122018955659933/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 07:46:02,216 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=0, votedFor=null 07:46:02,216 PM [test-pekko.actor.default-dispatcher-8] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 07:46:02,216 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-592122018955659933/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:46:02,217 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-592122018955659933/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:46:02,217 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-592122018955659933/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:46:02,217 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 07:46:02,217 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 07:46:02,217 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 07:46:02,217 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 07:46:02,217 PM [test-pekko.actor.default-dispatcher-8] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed in in 2.698 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 07:46:02,217 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed and can restore from snapshot 07:46:02,217 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: writer thread VirtualThread[#628,testCaptureSnapshotOnLastEntryInAppendEntries-writer-154]/runnable started 07:46:02,217 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 07:46:02,217 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 07:46:02,217 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-592122018955659933/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:46:02,217 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-592122018955659933/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:46:02,217 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-592122018955659933/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:46:02,217 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 07:46:02,217 PM [test-pekko.actor.default-dispatcher-8] [INFO] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]}" message is greater than follower's term 0 - updating term 07:46:02,219 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:46:02,219 PM [test-pekko.actor.default-dispatcher-8] [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]]} 07:46:02,219 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 07:46:02,219 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:46:02,219 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 07:46:02,219 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:46:02,219 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 07:46:02,219 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:46:02,219 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 07:46:02,219 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 07:46:02,219 PM [test-pekko.actor.default-dispatcher-8] [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} 07:46:02,219 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 2.376 ms 07:46:02,219 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 07:46:02,219 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 07:46:02,219 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 07:46:02,219 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 07:46:02,219 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 07:46:02,219 PM [test-pekko.actor.default-dispatcher-8] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 07:46:02,219 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 07:46:02,219 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 07:46:02,220 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 07:46:02,220 PM [test-pekko.actor.default-dispatcher-8] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 07:46:02,220 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 07:46:02,223 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 07:46:02,223 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 07:46:02,223 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 3.422 ms 07:46:02,223 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 1.950 μs 07:46:02,223 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:46:02,223 PM [test-pekko.actor.default-dispatcher-8] [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/0x00000007c093ee08@2f82489} 07:46:02,223 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:46:02,223 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 07:46:02,223 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 07:46:02,223 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 94.01 μs 07:46:02,223 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 07:46:02,223 PM [test-pekko.actor.default-dispatcher-8] [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] 07:46:02,223 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 07:46:02,223 PM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 07:46:02,223 PM [test-pekko.actor.default-dispatcher-8] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 07:46:02,223 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 07:46:02,223 PM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 07:46:02,223 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d794416] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-592122018955659933/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006A7CCD7A-0D52AFF4.tmp 07:46:02,223 PM [test-pekko.actor.default-dispatcher-8] [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/0x00000007c093ee08@2f82489} 07:46:02,223 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 3.562 ms 07:46:02,223 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) [WARN] [08/12/2026 19:46:02.223] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][08/12/2026 19:46:02.223] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:46:02,224 PM [test-pekko.actor.default-dispatcher-6] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:46:02,227 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d794416] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-592122018955659933/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006A7CCD7A-0D52AFF4.v1 07:46:02,227 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d794416] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-592122018955659933/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:46:02,227 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d794416] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-592122018955659933/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:46:02,227 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d794416] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-592122018955659933/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006A7CCD7A-0D52AFF4.v1 07:46:02,227 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d794416] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-592122018955659933/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:46:02,227 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d794416] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2026-08-12T19:46:02.223522804Z, file=/tmp/junit-592122018955659933/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006A7CCD7A-0D52AFF4.v1, size=555, entryCompress=NONE, stateCompress=NONE} 07:46:02,227 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d794416] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 07:46:02,227 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 07:46:02,227 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2026-08-12T19:46:02.223522804Z 07:46:02,227 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 07:46:02,228 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 07:46:02,228 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 4.615 ms 07:46:02,228 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 07:46:02,228 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 07:46:02,228 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 07:46:02,228 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 07:46:02,228 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 251.8 μs 07:46:02,228 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 07:46:02,319 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-592122018955659933/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:46:02,319 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-592122018955659933/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:46:02,319 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-592122018955659933/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006A7CCD7A-0D52AFF4.v1 07:46:02,319 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-592122018955659933/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:46:02,319 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2026-08-12T19:46:02.223522804Z, file=/tmp/junit-592122018955659933/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006A7CCD7A-0D52AFF4.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 07:46:02,321 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#-286414258] 07:46:02,323 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower469#1338458561] 07:46:02,323 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader470#-812560867] 07:46:02,323 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 07:46:02,323 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#628,testCaptureSnapshotOnLastEntryInAppendEntries-writer-154]/waiting 07:46:02,324 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 95.62 ms 07:46:02,324 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 14.48 μs 07:46:02,324 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 07:46:02,324 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminated thread VirtualThread[#628,testCaptureSnapshotOnLastEntryInAppendEntries-writer-154]/terminated 07:46:02,324 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 07:46:02,324 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 07:46:02,324 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 07:46:02,324 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 07:46:02,329 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:02,331 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior471#-1240332725] 07:46:02,342 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower472#1384450804] 07:46:02,342 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader473#1857898059] 07:46:02,345 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 07:46:02,345 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:02,347 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 07:46:02,347 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 07:46:02,348 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior474#-934493309] 07:46:02,359 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower475#1968381218] 07:46:02,359 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader476#677604182] 07:46:02,362 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 07:46:02,362 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:02,362 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 07:46:02,363 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]]} 07:46:02,363 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:46:02,363 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:46:02,363 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:46:02,363 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:46:02,363 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:46:02,363 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} 07:46:02,364 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:46:02,364 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:46:02,364 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:46:02,364 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#-42456507] 07:46:02,375 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower478#-1441280564] 07:46:02,375 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader479#63767311] 07:46:02,379 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 07:46:02,380 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:02,381 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 07:46:02,381 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]]} 07:46:02,381 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 07:46:02,382 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} 07:46:02,382 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:46:02,383 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 07:46:02,383 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]]} 07:46:02,383 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 07:46:02,384 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} 07:46:02,384 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 07:46:02,384 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#645616028] 07:46:02,395 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower481#46818657] 07:46:02,395 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader482#-439125040] 07:46:02,399 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:02,399 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior483#553648235] 07:46:02,410 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower484#1021483509] 07:46:02,410 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader485#1508249578] 07:46:02,413 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 07:46:02,413 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:02,414 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 07:46:02,414 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]]} 07:46:02,415 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 07:46:02,415 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} 07:46:02,415 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:46:02,415 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:46:02,416 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]]} 07:46:02,416 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 07:46:02,416 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} 07:46:02,416 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:46:02,417 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]]} 07:46:02,417 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 07:46:02,417 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} 07:46:02,417 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:46:02,418 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior486#1841649046] 07:46:02,428 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower487#-2102565902] 07:46:02,428 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader488#-2007458950] 07:46:02,432 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 07:46:02,432 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:02,434 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]]} 07:46:02,434 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:46:02,434 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 07:46:02,434 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 07:46:02,434 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:46:02,434 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 07:46:02,434 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} 07:46:02,435 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 07:46:02,435 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 07:46:02,435 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 07:46:02,435 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior489#1206337835] 07:46:02,446 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower490#-2045980581] 07:46:02,446 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader491#-763897716] 07:46:02,450 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 07:46:02,450 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:02,452 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 07:46:02,453 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader494 07:46:02,453 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader494 07:46:02,455 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 07:46:02,456 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior492#-1557574831] 07:46:02,467 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower493#1903963431] 07:46:02,467 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader494#-759591111] 07:46:02,471 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 07:46:02,471 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:02,471 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 07:46:02,472 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]]} 07:46:02,472 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:46:02,472 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:46:02,472 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:46:02,472 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:46:02,472 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:46:02,473 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} 07:46:02,473 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:46:02,473 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:46:02,473 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:46:02,474 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior495#429258413] 07:46:02,485 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower496#1791201241] 07:46:02,485 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader497#1814119857] 07:46:02,488 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 07:46:02,489 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:02,489 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 07:46:02,490 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]]} 07:46:02,490 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 07:46:02,491 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} 07:46:02,491 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:46:02,492 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#779584260] 07:46:02,503 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower499#-819213393] 07:46:02,503 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader500#1639319082] 07:46:02,507 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 07:46:02,511 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 07:46:02,512 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] [WARN] [08/12/2026 19:46:02.512] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@f69c340 07:46:02,512 PM [test-pekko.actor.default-dispatcher-7] [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'. [INFO] [pekkoDeadLetter][08/12/2026 19:46:02.512] [test-pekko.actor.default-dispatcher-8] [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'. 07:46:02,513 PM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 07:46:02,513 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 07:46:02,513 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 07:46:02,513 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 07:46:02,514 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 07:46:02,514 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 07:46:02,514 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 07:46:02,514 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/junit-18346890506877880704/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 07:46:02,517 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=0, votedFor=null 07:46:02,517 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=0} 07:46:02,517 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-18346890506877880704/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 07:46:02,517 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-18346890506877880704/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 07:46:02,517 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-18346890506877880704/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 07:46:02,517 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 07:46:02,517 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 07:46:02,517 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 07:46:02,517 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 07:46:02,517 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed in in 3.324 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 07:46:02,517 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed and can restore from snapshot 07:46:02,517 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: writer thread VirtualThread[#631,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155]/runnable started 07:46:02,517 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 07:46:02,517 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 07:46:02,518 PM [test-pekko.actor.default-dispatcher-5] [INFO] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]}" message is greater than follower's term 0 - updating term 07:46:02,520 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 07:46:02,520 PM [test-pekko.actor.default-dispatcher-5] [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]]} 07:46:02,520 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 07:46:02,520 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:46:02,520 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 07:46:02,520 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:46:02,520 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 07:46:02,520 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:46:02,520 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 07:46:02,520 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 07:46:02,520 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 07:46:02,520 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 07:46:02,520 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 2.455 ms 07:46:02,520 PM [test-pekko.actor.default-dispatcher-5] [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} 07:46:02,520 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 07:46:02,520 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 07:46:02,520 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 07:46:02,520 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 07:46:02,520 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 07:46:02,520 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 07:46:02,520 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 07:46:02,522 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 07:46:02,523 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 07:46:02,523 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 2.693 ms 07:46:02,523 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:46:02,523 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 3 commands after 2.120 μs 07:46:02,523 PM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c093ee08@4e32ce95} 07:46:02,523 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 2 synchronized callback(s) 07:46:02,524 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 07:46:02,524 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 3 completion(s) pending 07:46:02,524 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 3 completion(s) 07:46:02,524 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 3 commands in 1.257 ms 07:46:02,524 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:46:02,524 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 07:46:02,524 PM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c093ee08@4e32ce95} 07:46:02,524 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 07:46:02,524 PM [test-pekko.actor.default-dispatcher-5] [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] 07:46:02,524 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 07:46:02,524 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 07:46:02,524 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 07:46:02,524 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 07:46:02,524 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 07:46:02,524 PM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c093ee08@4e32ce95} 07:46:02,524 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d329440] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-18346890506877880704/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006A7CCD7A-1F42C21D.tmp 07:46:02,524 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 4.109 ms [WARN] [08/12/2026 19:46:02.524] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] 07:46:02,525 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'. [INFO] [pekkoDeadLetter][08/12/2026 19:46:02.524] [test-pekko.actor.default-dispatcher-8] [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'. 07:46:02,526 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d329440] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-18346890506877880704/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006A7CCD7A-1F42C21D.v1 07:46:02,526 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d329440] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-18346890506877880704/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006A7CCD7A-1F42C21D.v1 07:46:02,526 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d329440] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-18346890506877880704/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 07:46:02,526 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d329440] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-18346890506877880704/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 07:46:02,526 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d329440] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-18346890506877880704/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 07:46:02,526 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d329440] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2026-08-12T19:46:02.524468765Z, file=/tmp/junit-18346890506877880704/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006A7CCD7A-1F42C21D.v1, size=539, entryCompress=NONE, stateCompress=NONE} 07:46:02,526 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d329440] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 07:46:02,526 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 07:46:02,526 PM [test-pekko.actor.default-dispatcher-8] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2026-08-12T19:46:02.524468765Z 07:46:02,526 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 07:46:02,526 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 07:46:02,526 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 2.514 ms 07:46:02,526 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 07:46:02,526 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 07:46:02,527 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 07:46:02,527 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 121.3 μs 07:46:02,527 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 07:46:02,527 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 07:46:02,670 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-18346890506877880704/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006A7CCD7A-1F42C21D.v1 07:46:02,670 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-18346890506877880704/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 07:46:02,670 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-18346890506877880704/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 07:46:02,670 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-18346890506877880704/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 07:46:02,670 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2026-08-12T19:46:02.524468765Z, file=/tmp/junit-18346890506877880704/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006A7CCD7A-1F42C21D.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 07:46:02,672 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#510137155] 07:46:02,683 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower502#-615606599] 07:46:02,683 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader503#-1041392677] 07:46:02,684 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 07:46:02,684 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#631,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155]/waiting 07:46:02,684 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 157.2 ms 07:46:02,684 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 17.34 μs 07:46:02,684 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 07:46:02,684 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminated thread VirtualThread[#631,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155]/terminated 07:46:02,684 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 07:46:02,684 PM [test-pekko.actor.default-dispatcher-8] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 07:46:02,684 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 07:46:02,684 PM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 07:46:02,688 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 07:46:02,689 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:02,690 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 07:46:02,691 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]]} 07:46:02,691 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 07:46:02,692 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} 07:46:02,692 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 07:46:02,692 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior504#-459540637] 07:46:02,703 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower505#2077391186] 07:46:02,703 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader506#-317881910] 07:46:02,706 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 07:46:02,706 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:02,707 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 07:46:02,707 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 07:46:02,707 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 07:46:02,707 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 07:46:02,707 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 07:46:02,708 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#1587988106] 07:46:02,718 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower508#2080522814] 07:46:02,719 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader509#1028565365] 07:46:02,723 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 07:46:02,723 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:02,724 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 07:46:02,724 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]]} 07:46:02,725 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:46:02,725 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 07:46:02,725 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 07:46:02,725 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 07:46:02,725 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 07:46:02,725 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 07:46:02,725 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 07:46:02,725 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 07:46:02,725 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} 07:46:02,726 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 07:46:02,726 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 07:46:02,726 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:46:02,726 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:46:02,726 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:46:02,726 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:46:02,726 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:46:02,726 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:46:02,726 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 07:46:02,726 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 07:46:02,727 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior510#940080714] 07:46:02,738 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower511#-893942056] 07:46:02,738 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader512#-2123160876] 07:46:02,743 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 07:46:02,743 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:02,743 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 07:46:02,743 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 07:46:02,744 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#-1603254132] 07:46:02,755 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower514#-162051604] 07:46:02,755 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader515#465023422] 07:46:02,758 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 07:46:02,758 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:02,759 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:46:02,759 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:46:02,759 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:46:02,759 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:46:02,759 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 07:46:02,760 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]]} 07:46:02,760 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 07:46:02,760 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:46:02,760 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 07:46:02,760 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 07:46:02,760 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 07:46:02,760 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 07:46:02,760 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} 07:46:02,761 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 07:46:02,761 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 07:46:02,761 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:46:02,761 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:46:02,761 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior516#-1820307374] 07:46:02,772 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower517#1673253192] 07:46:02,772 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518#-69461290] 07:46:02,776 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 07:46:02,776 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:02,777 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 07:46:02,778 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]]} 07:46:02,778 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 07:46:02,779 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} 07:46:02,779 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:46:02,780 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:46:02,781 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]]} 07:46:02,781 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 07:46:02,781 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} 07:46:02,782 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:46:02,782 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 07:46:02,784 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]]} 07:46:02,784 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 07:46:02,784 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} 07:46:02,785 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 07:46:02,785 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior519#-2054348478] 07:46:02,796 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower520#-860896269] 07:46:02,796 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader521#-1951334179] 07:46:02,798 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 07:46:02,798 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:02,999 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.131:17355, Removed) 07:46:02,999 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 07:46:02,999 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 07:46:02,999 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 07:46:02,999 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 07:46:02,999 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior522#165722524] 07:46:03,1 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower523#-466062192] 07:46:03,1 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader524#191009611] 07:46:03,5 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:03,6 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 07:46:03,207 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior525#532001396] 07:46:03,208 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower526#882805518] 07:46:03,209 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader527#2067014166] 07:46:03,213 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 07:46:03,214 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:03,216 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 07:46:03,216 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 07:46:03,217 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior528#-774592951] 07:46:03,218 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower529#-1853311964] 07:46:03,218 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader530#-1533904136] 07:46:03,221 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 07:46:03,221 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:03,222 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]]} 07:46:03,222 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:46:03,222 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 07:46:03,222 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 07:46:03,222 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 07:46:03,222 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 07:46:03,222 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 07:46:03,223 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} 07:46:03,223 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 07:46:03,223 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 07:46:03,223 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:46:03,223 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:46:03,223 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:46:03,223 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:46:03,223 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:46:03,223 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:46:03,223 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 07:46:03,223 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 07:46:03,223 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 07:46:03,223 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 07:46:03,225 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior531#647117924] 07:46:03,225 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower532#1164421962] 07:46:03,225 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader533#263863949] 07:46:03,227 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 07:46:03,229 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:03,230 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:46:03,230 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:46:03,230 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:46:03,231 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:46:03,231 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]]} 07:46:03,232 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} 07:46:03,232 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior534#-1789322672] 07:46:03,233 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower535#-199769709] 07:46:03,233 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader536#-67370876] 07:46:03,235 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 07:46:03,235 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:03,237 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 07:46:03,237 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]]} 07:46:03,237 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:46:03,237 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 07:46:03,238 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 07:46:03,238 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior537#1174208027] 07:46:03,239 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower538#-1509927715] 07:46:03,239 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader539#1608501593] 07:46:03,242 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries 07:46:03,245 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:46:03,245 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [08/12/2026 19:46:03.246] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@40630eef [INFO] [pekkoDeadLetter][08/12/2026 19:46:03.246] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:46:03,246 PM [test-pekko.actor.default-dispatcher-8] [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'. 07:46:03,246 PM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 07:46:03,246 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:46:03,246 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:46:03,247 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 07:46:03,247 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 07:46:03,247 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 07:46:03,247 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 07:46:03,247 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/junit-8308088367457582932/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 07:46:03,250 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=0, votedFor=null 07:46:03,250 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 07:46:03,250 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8308088367457582932/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:46:03,250 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8308088367457582932/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:46:03,250 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8308088367457582932/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:46:03,250 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 07:46:03,250 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 07:46:03,250 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 07:46:03,250 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 07:46:03,250 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 3.358 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 07:46:03,250 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and can restore from snapshot 07:46:03,250 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: writer thread VirtualThread[#634,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156]/runnable started 07:46:03,251 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 07:46:03,251 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 07:46:03,251 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8308088367457582932/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:46:03,251 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8308088367457582932/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:46:03,251 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8308088367457582932/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:46:03,251 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 07:46:03,251 PM [test-pekko.actor.default-dispatcher-5] [INFO] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]}" message is greater than follower's term 0 - updating term 07:46:03,253 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:46:03,253 PM [test-pekko.actor.default-dispatcher-5] [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]]} 07:46:03,253 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 07:46:03,253 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:46:03,253 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 07:46:03,253 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:46:03,253 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 07:46:03,253 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:46:03,253 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 07:46:03,253 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 07:46:03,253 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 07:46:03,253 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 2.341 ms 07:46:03,253 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 07:46:03,253 PM [test-pekko.actor.default-dispatcher-5] [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} 07:46:03,253 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 07:46:03,253 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 07:46:03,253 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 07:46:03,253 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 07:46:03,253 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 07:46:03,253 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 07:46:03,253 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 07:46:03,253 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 07:46:03,253 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 07:46:03,253 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 07:46:03,253 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 07:46:03,253 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 07:46:03,253 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 07:46:03,253 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 07:46:03,253 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 07:46:03,256 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 07:46:03,256 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 3.478 ms 07:46:03,256 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 07:46:03,256 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 2.050 μs 07:46:03,256 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:46:03,256 PM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c093ee08@29b072c5} 07:46:03,256 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 07:46:03,258 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 07:46:03,258 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 07:46:03,258 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 07:46:03,258 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 1.553 ms 07:46:03,258 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 07:46:03,258 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:46:03,258 PM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c093ee08@29b072c5} 07:46:03,258 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 07:46:03,258 PM [test-pekko.actor.default-dispatcher-5] [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] 07:46:03,258 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 07:46:03,258 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 07:46:03,258 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 07:46:03,258 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 07:46:03,258 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 07:46:03,258 PM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c093ee08@29b072c5} 07:46:03,258 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d840889] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-8308088367457582932/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A7CCD7B-0F6B6016.tmp 07:46:03,258 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 5.107 ms [WARN] [08/12/2026 19:46:03.259] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][08/12/2026 19:46:03.259] [test-pekko.actor.default-dispatcher-5] [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'. 07:46:03,259 PM [test-pekko.actor.default-dispatcher-5] [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'. 07:46:03,260 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d840889] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-8308088367457582932/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A7CCD7B-0F6B6016.v1 07:46:03,260 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d840889] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8308088367457582932/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A7CCD7B-0F6B6016.v1 07:46:03,260 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d840889] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8308088367457582932/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:46:03,261 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d840889] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8308088367457582932/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:46:03,261 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d840889] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8308088367457582932/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:46:03,261 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d840889] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-08-12T19:46:03.258695190Z, file=/tmp/junit-8308088367457582932/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A7CCD7B-0F6B6016.v1, size=573, entryCompress=NONE, stateCompress=NONE} 07:46:03,261 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d840889] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 07:46:03,261 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 07:46:03,261 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2026-08-12T19:46:03.258695190Z 07:46:03,261 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 07:46:03,261 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 07:46:03,261 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 2.778 ms 07:46:03,261 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 07:46:03,261 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 07:46:03,261 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 07:46:03,261 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 07:46:03,261 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 189.1 μs 07:46:03,261 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 07:46:03,402 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8308088367457582932/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A7CCD7B-0F6B6016.v1 07:46:03,402 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8308088367457582932/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:46:03,402 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8308088367457582932/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:46:03,402 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8308088367457582932/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:46:03,402 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-08-12T19:46:03.258695190Z, file=/tmp/junit-8308088367457582932/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A7CCD7B-0F6B6016.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 07:46:03,407 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 07:46:03,418 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#634,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156]/waiting 07:46:03,418 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 156.8 ms 07:46:03,418 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 18.51 μs 07:46:03,418 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 07:46:03,418 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminated thread VirtualThread[#634,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156]/terminated 07:46:03,418 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 07:46:03,418 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 07:46:03,418 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:46:03,418 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:46:03,419 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [08/12/2026 19:46:03.419] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@b565675 [INFO] [pekkoDeadLetter][08/12/2026 19:46:03.419] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 07:46:03,419 PM [test-pekko.actor.default-dispatcher-7] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 07:46:03,420 PM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 07:46:03,420 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:46:03,420 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:46:03,420 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 07:46:03,421 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 07:46:03,421 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 07:46:03,421 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 07:46:03,421 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:46:03,421 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8308088367457582932/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A7CCD7B-0F6B6016.v1 07:46:03,421 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8308088367457582932/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:46:03,421 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8308088367457582932/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:46:03,421 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8308088367457582932/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:46:03,421 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-08-12T19:46:03.258695190Z, file=/tmp/junit-8308088367457582932/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A7CCD7B-0F6B6016.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 07:46:03,421 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2026-08-12T19:46:03.258695190Z 07:46:03,422 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 07:46:03,422 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 07:46:03,423 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 07:46:03,423 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 07:46:03,423 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 1.519 ms: last log index = 2, last log term = 1, napshot index = 2, snapshot term = 1, journal size = 0 07:46:03,423 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and cannot restore from snapshot 07:46:03,423 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: writer thread VirtualThread[#637,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/runnable started 07:46:03,423 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 07:46:03,423 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 07:46:03,423 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior540#-723735718] 07:46:03,434 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower541#-459130338] 07:46:03,434 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader542#-2109334173] 07:46:03,435 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 07:46:03,435 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#637,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/waiting 07:46:03,435 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 12.46 ms 07:46:03,435 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 9.600 μs 07:46:03,435 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 07:46:03,435 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminated thread VirtualThread[#637,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/terminated 07:46:03,436 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 07:46:03,436 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 07:46:03,436 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:46:03,436 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:46:03,440 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 07:46:03,441 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:03,741 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 07:46:03,871 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 07:46:04,122 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 07:46:04,322 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 07:46:04,322 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior543#264536822] 07:46:04,333 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower544#-355459540] 07:46:04,334 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader545#188894689] 07:46:04,338 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:04,339 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 07:46:04,339 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 07:46:04,339 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 07:46:04,340 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 07:46:04,340 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior546#-19786090] 07:46:04,341 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower547#1982569814] 07:46:04,341 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader548#558711497] 07:46:04,343 PM [test-pekko.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [08/12/2026 19:46:04.342] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [08/12/2026 19:46:04.343] [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.131:17355) [INFO] [pekkoDeadLetter][08/12/2026 19:46:04.343] [test-pekko.actor.default-dispatcher-6] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1483341280] 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'. 07:46:04,343 PM [test-pekko.actor.default-dispatcher-6] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1483341280] 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] [08/12/2026 19:46:04.344] [test-pekko.actor.internal-dispatcher-12] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.131:17355] - Exiting completed 07:46:04,344 PM [test-pekko.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.131:17355] - Exiting completed 07:46:04,344 PM [test-pekko.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.131:17355] - Shutting down... [INFO] [08/12/2026 19:46:04.344] [test-pekko.actor.internal-dispatcher-12] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.131:17355] - Shutting down... [INFO] [08/12/2026 19:46:04.344] [test-pekko.actor.internal-dispatcher-12] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.131:17355] - Successfully shut down 07:46:04,345 PM [test-pekko.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.131:17355] - Successfully shut down [INFO] [08/12/2026 19:46:04.346] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.171.131:17355/system/remoting-terminator] Shutting down remote daemon. 07:46:04,346 PM [test-pekko.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 07:46:04,346 PM [test-pekko.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [08/12/2026 19:46:04.346] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.171.131:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 07:46:04,351 PM [test-pekko.actor.default-dispatcher-8] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [08/12/2026 19:46:04.350] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.171.131:17355/system/remoting-terminator] Remoting shut down. [DEBUG] [08/12/2026 19:46:04.351] [test-pekko.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger