[DEBUG] [12/08/2025 15:50:59.540] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 03:50:59,540 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [12/08/2025 15:50:59.541] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [12/08/2025 15:50:59.541] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [12/08/2025 15:50:59.553] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.172:17355] with UID [434781449745260269] [INFO] [12/08/2025 15:50:59.554] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.172:17355] - Starting up, Pekko version [1.2.1] ... 03:50:59,556 PM [test-pekko.actor.default-dispatcher-7] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.172:17355] with UID [434781449745260269] 03:50:59,556 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.172:17355] - Starting up, Pekko version [1.2.1] ... 03:50:59,557 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.172:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 03:50:59,557 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.172:17355] - Started up successfully [INFO] [12/08/2025 15:50:59.557] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.172:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [12/08/2025 15:50:59.557] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.172:17355] - Started up successfully 03:50:59,558 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.172:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 03:50:59,558 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.172:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [12/08/2025 15:50:59.558] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.172:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [12/08/2025 15:50:59.558] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.172:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 03:50:59,578 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:50:59,666 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 03:50:59,666 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 03:50:59,667 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior420#2142580593] 03:50:59,678 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower421#150523970] 03:50:59,678 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader422#1319774350] 03:50:59,682 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:50:59,684 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]]} 03:50:59,685 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 03:50:59,685 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 03:50:59,685 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 03:50:59,685 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 03:50:59,685 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 03:50:59,685 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} 03:50:59,686 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 03:50:59,686 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 03:50:59,687 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 03:50:59,687 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 03:50:59,687 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 03:50:59,688 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior423#-2137461929] 03:50:59,698 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower424#-673966516] 03:50:59,698 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader425#1295404429] 03:50:59,701 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:50:59,703 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 03:50:59,704 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 03:50:59,705 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior426#1042735688] 03:50:59,715 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower427#-104039522] 03:50:59,715 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader428#-1278253962] 03:50:59,719 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:50:59,720 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 03:50:59,721 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 03:50:59,721 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} 03:50:59,721 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 03:50:59,723 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 03:50:59,724 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 03:50:59,724 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 03:50:59,724 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. 03:50:59,724 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 03:50:59,725 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 03:50:59,726 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 03:50:59,727 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 03:50:59,728 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior429#1038973397] 03:50:59,739 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower430#-2065615144] 03:50:59,739 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader431#-57881775] 03:50:59,743 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:50:59,743 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 03:50:59,743 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 03:50:59,744 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:50:59,744 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 03:50:59,745 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 03:50:59,745 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 03:50:59,745 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 03:50:59,745 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 03:50:59,746 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior432#-982310619] 03:50:59,757 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower433#-679692816] 03:50:59,757 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader434#-121432588] 03:50:59,760 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:50:59,762 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 03:50:59,763 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior435#-1907936251] 03:50:59,774 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower436#-1553634895] 03:50:59,774 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader437#-110179681] 03:50:59,778 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:50:59,779 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 03:50:59,779 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 03:50:59,779 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior438#705755539] 03:50:59,790 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower439#446621103] 03:50:59,790 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader440#527308993] 03:50:59,793 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 03:50:59,793 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:50:59,795 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 03:50:59,795 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 03:50:59,795 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 03:50:59,796 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 03:50:59,796 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 03:50:59,796 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 03:50:59,796 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 03:50:59,796 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 03:50:59,799 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 03:50:59,800 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior441#1104067509] 03:50:59,810 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower442#-879361057] 03:50:59,810 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader443#1694623607] 03:50:59,813 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 03:50:59,813 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:50:59,814 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]]} 03:50:59,815 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 03:50:59,815 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} 03:50:59,815 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 03:50:59,815 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior444#1417268842] 03:50:59,826 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower445#292490571] 03:50:59,826 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader446#1114369029] 03:50:59,828 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 03:50:59,828 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:50:59,829 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 03:50:59,829 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 03:50:59,829 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 03:50:59,829 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 03:50:59,829 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 03:50:59,829 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 03:50:59,829 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 03:50:59,830 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 03:50:59,830 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 03:50:59,830 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]]} 03:50:59,830 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 03:50:59,830 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} 03:50:59,830 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 03:50:59,831 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior447#-1388839311] 03:50:59,841 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower448#-807297177] 03:50:59,841 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader449#1431818913] 03:50:59,844 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:50:59,844 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 03:50:59,845 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior450#-1395323909] 03:50:59,856 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower451#2095686561] 03:50:59,856 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader452#-458267154] 03:50:59,860 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 03:50:59,860 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:50:59,861 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 03:50:59,861 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]]} 03:50:59,861 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 03:50:59,861 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 03:50:59,861 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 03:50:59,861 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 03:50:59,862 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 03:50:59,862 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} 03:50:59,862 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 03:50:59,862 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 03:50:59,862 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 03:50:59,862 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior453#2114004061] 03:50:59,873 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower454#971795733] 03:50:59,873 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader455#-1010466199] 03:50:59,876 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 03:50:59,877 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:50:59,878 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]]} 03:50:59,878 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 03:50:59,878 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 03:50:59,878 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 03:50:59,878 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 03:50:59,878 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 03:50:59,879 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} 03:50:59,879 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 03:50:59,879 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 03:50:59,879 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 03:50:59,879 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 03:50:59,879 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 03:50:59,879 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 03:50:59,880 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]]} 03:50:59,881 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 03:50:59,881 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 03:50:59,881 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 03:50:59,881 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 03:50:59,881 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 03:50:59,881 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 03:50:59,881 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} 03:50:59,881 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 03:50:59,881 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 03:50:59,882 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 03:50:59,882 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 03:50:59,882 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#-822975415] 03:50:59,893 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower457#-839916659] 03:50:59,893 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader458#-1398519789] 03:50:59,897 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 03:50:59,897 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:50:59,897 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 03:50:59,898 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 03:50:59,899 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} 03:50:59,899 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 03:50:59,899 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#-914741455] 03:50:59,910 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower460#-1434936182] 03:50:59,910 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader461#1194805248] 03:50:59,914 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:50:59,917 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#2063964095] 03:50:59,928 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower463#-523002526] 03:50:59,928 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader464#-7204709] 03:50:59,932 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 03:50:59,932 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:50:59,932 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 03:50:59,933 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 03:50:59,933 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]]} 03:50:59,933 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 03:50:59,934 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 03:50:59,934 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 03:50:59,934 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 03:50:59,934 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 03:50:59,934 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} 03:50:59,934 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 03:50:59,934 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 03:50:59,934 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 03:50:59,934 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 03:50:59,935 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 03:50:59,935 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#1010316435] 03:50:59,946 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower466#-48883404] 03:50:59,946 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader467#-612151956] 03:50:59,950 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries 03:50:59,953 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 03:50:59,953 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 03:50:59,955 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 03:50:59,955 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 03:50:59,955 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 03:50:59,955 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 03:50:59,956 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 03:50:59,956 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 03:50:59,956 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 03:50:59,956 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 03:50:59,956 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 03:50:59,956 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/junit-15486396715612665485/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist [WARN] [12/08/2025 15:50:59.956] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@34461b2c [INFO] [pekkoDeadLetter][12/08/2025 15:50:59.956] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 03:50:59,956 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'. 03:50:59,958 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=0, votedFor=null 03:50:59,958 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 03:50:59,958 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15486396715612665485/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 03:50:59,958 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15486396715612665485/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 03:50:59,958 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15486396715612665485/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 03:50:59,958 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 03:50:59,958 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 03:50:59,958 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 03:50:59,958 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 03:50:59,958 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed in in 2.352 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 03:50:59,958 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed and can restore from snapshot 03:50:59,959 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15486396715612665485/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 03:50:59,959 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15486396715612665485/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 03:50:59,959 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15486396715612665485/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 03:50:59,959 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 03:50:59,959 PM [test-pekko.actor.default-dispatcher-7] [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 03:50:59,960 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 03:50:59,960 PM [test-pekko.actor.default-dispatcher-7] [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]]} 03:50:59,960 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 03:50:59,960 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 03:50:59,961 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 03:50:59,961 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 03:50:59,961 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 03:50:59,961 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 03:50:59,961 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 03:50:59,961 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 03:50:59,961 PM [test-pekko.actor.default-dispatcher-7] [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} 03:50:59,961 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 4.796 ms 03:50:59,961 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 03:50:59,961 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 03:50:59,961 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 03:50:59,961 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 03:50:59,961 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 03:50:59,961 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 03:50:59,961 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 03:50:59,961 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 03:50:59,961 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 03:50:59,961 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 03:50:59,961 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 03:50:59,964 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 03:50:59,964 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 03:50:59,964 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 03:50:59,964 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 3.253 ms 03:50:59,964 PM [test-pekko.actor.default-dispatcher-7] [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/0x00000007c0914930@4a413054} 03:50:59,964 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 4.090 μs 03:50:59,964 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 03:50:59,964 PM [test-pekko.actor.default-dispatcher-7] [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] 03:50:59,964 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 03:50:59,964 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 03:50:59,964 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 03:50:59,964 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 03:50:59,964 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 03:50:59,964 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 191.5 μs 03:50:59,964 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 03:50:59,964 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d638622] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-15486396715612665485/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006936F3E3-397F2955.tmp 03:50:59,966 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 03:50:59,966 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 03:50:59,966 PM [test-pekko.actor.default-dispatcher-7] [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/0x00000007c0914930@4a413054} 03:50:59,966 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 5.638 ms 03:50:59,966 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) [WARN] [12/08/2025 15:50:59.967] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] 03:50:59,967 PM [test-pekko.actor.default-dispatcher-7] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][12/08/2025 15:50:59.967] [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'. 03:50:59,968 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d638622] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-15486396715612665485/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006936F3E3-397F2955.v1 03:50:59,968 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d638622] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-15486396715612665485/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006936F3E3-397F2955.v1 03:50:59,968 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d638622] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15486396715612665485/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 03:50:59,968 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d638622] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15486396715612665485/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 03:50:59,968 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d638622] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15486396715612665485/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 03:50:59,968 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d638622] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-12-08T15:50:59.964634965Z, file=/tmp/junit-15486396715612665485/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006936F3E3-397F2955.v1, size=555, entryCompress=NONE, stateCompress=NONE} 03:50:59,968 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d638622] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 03:50:59,968 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 03:50:59,968 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-12-08T15:50:59.964634965Z 03:50:59,968 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 03:50:59,968 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 3.982 ms 03:50:59,968 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 03:50:59,968 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 03:50:59,968 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 03:50:59,968 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 03:50:59,968 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 141.1 μs 03:50:59,968 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 03:50:59,968 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 03:51:00,60 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-15486396715612665485/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006936F3E3-397F2955.v1 03:51:00,60 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15486396715612665485/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 03:51:00,60 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15486396715612665485/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 03:51:00,60 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15486396715612665485/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 03:51:00,60 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-12-08T15:50:59.964634965Z, file=/tmp/junit-15486396715612665485/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006936F3E3-397F2955.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 03:51:00,62 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#-103430013] 03:51:00,73 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower469#1839174991] 03:51:00,73 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader470#483210060] 03:51:00,74 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 03:51:00,74 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#627,testCaptureSnapshotOnLastEntryInAppendEntries-writer-154]/waiting 03:51:00,74 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 105.5 ms 03:51:00,74 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 13.30 μs 03:51:00,74 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 03:51:00,74 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 03:51:00,83 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 03:51:00,83 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 03:51:00,84 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 03:51:00,96 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:51:00,99 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior471#-417346996] 03:51:00,101 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower472#1556765042] 03:51:00,101 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader473#753704389] 03:51:00,104 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 03:51:00,104 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:51:00,105 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 03:51:00,105 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 03:51:00,106 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior474#95282329] 03:51:00,107 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower475#-957995516] 03:51:00,107 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader476#373344424] 03:51:00,109 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 03:51:00,109 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:51:00,110 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 03:51:00,125 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]]} 03:51:00,125 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 03:51:00,125 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 03:51:00,125 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 03:51:00,125 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 03:51:00,125 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 03:51:00,126 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} 03:51:00,126 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 03:51:00,126 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 03:51:00,126 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 03:51:00,128 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#-1992557108] 03:51:00,131 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower478#1420871090] 03:51:00,131 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader479#1409197237] 03:51:00,138 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 03:51:00,138 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:51:00,139 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 03:51:00,140 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]]} 03:51:00,140 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 03:51:00,140 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} 03:51:00,140 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 03:51:00,140 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 03:51:00,141 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]]} 03:51:00,141 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 03:51:00,141 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} 03:51:00,141 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 03:51:00,141 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#862750773] 03:51:00,142 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower481#337202860] 03:51:00,142 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader482#1081169165] 03:51:00,145 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:51:00,145 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior483#-750955635] 03:51:00,146 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower484#-484923701] 03:51:00,146 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader485#-1534199970] 03:51:00,148 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 03:51:00,148 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:51:00,148 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 03:51:00,149 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]]} 03:51:00,149 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 03:51:00,149 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} 03:51:00,149 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 03:51:00,149 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 03:51:00,150 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]]} 03:51:00,150 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 03:51:00,150 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} 03:51:00,150 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 03:51:00,150 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]]} 03:51:00,150 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 03:51:00,151 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} 03:51:00,151 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 03:51:00,151 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior486#-909184279] 03:51:00,152 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower487#-1965116455] 03:51:00,152 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader488#-1407349603] 03:51:00,154 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 03:51:00,154 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:51:00,155 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]]} 03:51:00,155 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 03:51:00,155 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 03:51:00,155 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 03:51:00,155 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 03:51:00,155 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 03:51:00,155 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} 03:51:00,155 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 03:51:00,155 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 03:51:00,155 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 03:51:00,156 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior489#-120310702] 03:51:00,156 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower490#-2078564708] 03:51:00,156 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader491#112070459] 03:51:00,158 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 03:51:00,159 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:51:00,160 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 03:51:00,160 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader494 03:51:00,160 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader494 03:51:00,162 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 03:51:00,162 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior492#1472223688] 03:51:00,163 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower493#-206302183] 03:51:00,163 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader494#-2058012660] 03:51:00,166 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 03:51:00,166 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:51:00,166 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 03:51:00,166 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]]} 03:51:00,167 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 03:51:00,167 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 03:51:00,167 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 03:51:00,167 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 03:51:00,167 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 03:51:00,167 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} 03:51:00,167 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 03:51:00,167 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 03:51:00,167 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 03:51:00,167 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior495#-3306519] 03:51:00,168 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower496#-1454734288] 03:51:00,168 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader497#547400919] 03:51:00,170 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 03:51:00,170 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:51:00,171 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 03:51:00,171 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]]} 03:51:00,171 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 03:51:00,171 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} 03:51:00,172 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 03:51:00,172 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#-867233389] 03:51:00,173 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower499#-2057484876] 03:51:00,173 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader500#141444973] 03:51:00,175 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 03:51:00,177 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 03:51:00,177 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] [WARN] [12/08/2025 15:51:00.178] [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@3e17d174 [INFO] [pekkoDeadLetter][12/08/2025 15:51:00.178] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 03:51:00,179 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'. 03:51:00,179 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 03:51:00,180 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 03:51:00,180 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 03:51:00,181 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 03:51:00,182 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 03:51:00,182 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 03:51:00,182 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 03:51:00,182 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 03:51:00,182 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 03:51:00,182 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/junit-17574852537317642609/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 03:51:00,186 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=0, votedFor=null 03:51:00,186 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=0} 03:51:00,186 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-17574852537317642609/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 03:51:00,186 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-17574852537317642609/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 03:51:00,186 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-17574852537317642609/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 03:51:00,186 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 03:51:00,186 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 03:51:00,186 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 03:51:00,186 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 03:51:00,186 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed in in 3.671 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 03:51:00,186 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed and can restore from snapshot 03:51:00,187 PM [test-pekko.actor.default-dispatcher-6] [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 03:51:00,190 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 03:51:00,190 PM [test-pekko.actor.default-dispatcher-6] [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]]} 03:51:00,190 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 03:51:00,190 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 03:51:00,191 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 03:51:00,191 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 03:51:00,191 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 03:51:00,191 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 03:51:00,191 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 03:51:00,191 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 03:51:00,191 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 03:51:00,191 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 03:51:00,191 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 8.245 ms 03:51:00,191 PM [test-pekko.actor.default-dispatcher-6] [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} 03:51:00,191 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 03:51:00,191 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 03:51:00,191 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 03:51:00,191 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 03:51:00,191 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 03:51:00,191 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 03:51:00,191 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 03:51:00,194 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 03:51:00,194 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 3.137 ms 03:51:00,194 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 03:51:00,194 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 3 commands after 1.660 μs 03:51:00,194 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 03:51:00,194 PM [test-pekko.actor.default-dispatcher-6] [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/0x00000007c0914930@1da718ed} 03:51:00,194 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 2 synchronized callback(s) 03:51:00,195 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 03:51:00,195 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 3 completion(s) pending 03:51:00,195 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 3 commands in 1.438 ms 03:51:00,195 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 03:51:00,195 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 3 completion(s) 03:51:00,195 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 03:51:00,195 PM [test-pekko.actor.default-dispatcher-6] [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/0x00000007c0914930@1da718ed} 03:51:00,195 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 03:51:00,196 PM [test-pekko.actor.default-dispatcher-6] [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] 03:51:00,196 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 03:51:00,196 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 03:51:00,196 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 03:51:00,196 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 03:51:00,196 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 03:51:00,196 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d366015] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-17574852537317642609/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006936F3E4-0BB1F904.tmp 03:51:00,196 PM [test-pekko.actor.default-dispatcher-6] [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/0x00000007c0914930@1da718ed} 03:51:00,196 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 4.932 ms [WARN] [12/08/2025 15:51:00.196] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] 03:51:00,197 PM [test-pekko.actor.default-dispatcher-7] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][12/08/2025 15:51:00.197] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 03:51:00,197 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d366015] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-17574852537317642609/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006936F3E4-0BB1F904.v1 03:51:00,197 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d366015] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-17574852537317642609/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006936F3E4-0BB1F904.v1 03:51:00,198 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d366015] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-17574852537317642609/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 03:51:00,198 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d366015] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-17574852537317642609/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 03:51:00,198 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d366015] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-17574852537317642609/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 03:51:00,198 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d366015] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-12-08T15:51:00.196212996Z, file=/tmp/junit-17574852537317642609/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006936F3E4-0BB1F904.v1, size=539, entryCompress=NONE, stateCompress=NONE} 03:51:00,198 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d366015] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 03:51:00,198 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 03:51:00,199 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-12-08T15:51:00.196212996Z 03:51:00,199 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 03:51:00,199 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 03:51:00,199 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 3.336 ms 03:51:00,199 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 03:51:00,200 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 03:51:00,200 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 03:51:00,200 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 285.0 μs 03:51:00,200 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 03:51:00,205 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 03:51:00,338 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-17574852537317642609/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006936F3E4-0BB1F904.v1 03:51:00,338 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-17574852537317642609/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 03:51:00,339 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-17574852537317642609/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 03:51:00,339 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-17574852537317642609/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 03:51:00,339 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-12-08T15:51:00.196212996Z, file=/tmp/junit-17574852537317642609/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006936F3E4-0BB1F904.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 03:51:00,342 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#-647965183] 03:51:00,344 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower502#1808999616] 03:51:00,344 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader503#1330901427] 03:51:00,344 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 03:51:00,344 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#631,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155]/waiting 03:51:00,344 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 144.7 ms 03:51:00,344 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 33.40 μs 03:51:00,344 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 03:51:00,345 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 03:51:00,345 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 03:51:00,345 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 03:51:00,345 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 03:51:00,348 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 03:51:00,349 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:51:00,349 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 03:51:00,350 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]]} 03:51:00,350 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 03:51:00,350 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} 03:51:00,350 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 03:51:00,351 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior504#-1101093309] 03:51:00,352 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower505#-999675562] 03:51:00,352 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader506#-1584342145] 03:51:00,355 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 03:51:00,356 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:51:00,356 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 03:51:00,357 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 03:51:00,357 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 03:51:00,357 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 03:51:00,357 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 03:51:00,358 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#1899140601] 03:51:00,358 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower508#1462584552] 03:51:00,359 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader509#1070173215] 03:51:00,362 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 03:51:00,362 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:51:00,363 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 03:51:00,363 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]]} 03:51:00,363 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 03:51:00,363 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 03:51:00,363 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 03:51:00,363 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 03:51:00,364 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 03:51:00,364 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 03:51:00,364 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 03:51:00,364 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 03:51:00,364 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} 03:51:00,364 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 03:51:00,364 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 03:51:00,364 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 03:51:00,364 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 03:51:00,364 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 03:51:00,364 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 03:51:00,364 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 03:51:00,364 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 03:51:00,364 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 03:51:00,364 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 03:51:00,365 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior510#1936468322] 03:51:00,365 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower511#-1112547317] 03:51:00,365 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader512#-623851114] 03:51:00,368 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 03:51:00,368 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:51:00,369 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 03:51:00,369 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 03:51:00,369 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#1859832754] 03:51:00,370 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower514#1810634048] 03:51:00,370 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader515#-417330577] 03:51:00,373 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 03:51:00,373 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:51:00,373 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 03:51:00,373 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 03:51:00,373 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 03:51:00,374 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 03:51:00,374 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 03:51:00,374 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]]} 03:51:00,374 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 03:51:00,374 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 03:51:00,374 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 03:51:00,374 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 03:51:00,374 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 03:51:00,374 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 03:51:00,375 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} 03:51:00,375 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 03:51:00,375 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 03:51:00,375 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 03:51:00,375 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 03:51:00,375 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior516#-1810821983] 03:51:00,376 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower517#-330560988] 03:51:00,376 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518#-910205031] 03:51:00,379 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 03:51:00,379 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:51:00,380 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 03:51:00,380 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]]} 03:51:00,380 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 03:51:00,380 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} 03:51:00,380 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 03:51:00,380 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 03:51:00,381 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]]} 03:51:00,381 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 03:51:00,381 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} 03:51:00,381 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 03:51:00,381 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 03:51:00,382 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]]} 03:51:00,382 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 03:51:00,382 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} 03:51:00,382 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 03:51:00,383 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior519#-187502666] 03:51:00,383 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower520#356367765] 03:51:00,383 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader521#-1380158243] 03:51:00,386 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 03:51:00,386 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:51:00,586 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.172:17355, Removed) 03:51:00,586 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 03:51:00,587 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 03:51:00,587 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 03:51:00,587 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 03:51:00,587 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior522#1041306575] 03:51:00,598 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower523#2073136617] 03:51:00,598 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader524#1373063471] 03:51:00,602 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:51:00,602 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 03:51:00,804 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior525#442479099] 03:51:00,815 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower526#896596614] 03:51:00,816 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader527#-736457049] 03:51:00,820 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 03:51:00,820 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:51:00,822 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 03:51:00,822 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 03:51:00,823 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior528#148003297] 03:51:00,834 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower529#951175363] 03:51:00,834 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader530#-1549844376] 03:51:00,838 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 03:51:00,838 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:51:00,839 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]]} 03:51:00,839 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 03:51:00,840 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 03:51:00,840 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 03:51:00,840 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 03:51:00,840 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 03:51:00,840 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 03:51:00,840 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} 03:51:00,840 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 03:51:00,840 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 03:51:00,840 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 03:51:00,840 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 03:51:00,840 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 03:51:00,840 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 03:51:00,841 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 03:51:00,841 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 03:51:00,841 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 03:51:00,841 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 03:51:00,841 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 03:51:00,841 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 03:51:00,842 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior531#-220457230] 03:51:00,853 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower532#-527979258] 03:51:00,853 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader533#-479704584] 03:51:00,857 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 03:51:00,858 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:51:00,859 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 03:51:00,859 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 03:51:00,859 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 03:51:00,859 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 03:51:00,860 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]]} 03:51:00,861 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} 03:51:00,861 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior534#-1023756001] 03:51:00,872 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower535#-1104503435] 03:51:00,873 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader536#-1096355467] 03:51:00,876 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 03:51:00,876 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:51:00,877 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 03:51:00,878 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]]} 03:51:00,878 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 03:51:00,878 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 03:51:00,879 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 03:51:00,880 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior537#486211387] 03:51:00,890 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower538#780644780] 03:51:00,890 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader539#-904225230] 03:51:00,894 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries 03:51:00,897 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 03:51:00,898 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 03:51:00,899 PM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 03:51:00,899 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 03:51:00,899 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor [WARN] [12/08/2025 15:51:00.899] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@33d16e1f [INFO] [pekkoDeadLetter][12/08/2025 15:51:00.899] [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'. 03:51:00,900 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 03:51:00,900 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 03:51:00,900 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 03:51:00,900 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 03:51:00,900 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 03:51:00,900 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 03:51:00,900 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 03:51:00,900 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/junit-334351554621749815/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 03:51:00,904 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=0, votedFor=null 03:51:00,904 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 03:51:00,904 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-334351554621749815/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 03:51:00,904 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-334351554621749815/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 03:51:00,904 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-334351554621749815/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 03:51:00,904 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 03:51:00,904 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 03:51:00,904 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 03:51:00,904 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 03:51:00,904 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 3.454 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 03:51:00,904 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and can restore from snapshot 03:51:00,904 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-334351554621749815/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 03:51:00,904 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-334351554621749815/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 03:51:00,904 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-334351554621749815/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 03:51:00,905 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 03:51:00,905 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 03:51:00,906 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 03:51:00,906 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]]} 03:51:00,906 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 03:51:00,906 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 03:51:00,906 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 03:51:00,906 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 03:51:00,906 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 03:51:00,906 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 03:51:00,906 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 03:51:00,906 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 03:51:00,906 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 03:51:00,906 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 5.904 ms 03:51:00,906 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 03:51:00,906 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} 03:51:00,906 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 03:51:00,906 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 03:51:00,906 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 03:51:00,906 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 03:51:00,906 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 03:51:00,906 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 03:51:00,907 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 03:51:00,907 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 03:51:00,907 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 03:51:00,907 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 03:51:00,907 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 03:51:00,907 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 03:51:00,907 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 03:51:00,907 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 03:51:00,907 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 03:51:00,909 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 03:51:00,909 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 3.005 ms 03:51:00,909 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 03:51:00,909 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 2.771 μs 03:51:00,909 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 03:51:00,909 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/0x00000007c0914930@4e132a4c} 03:51:00,909 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 03:51:00,909 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/0x00000007c0914930@4e132a4c} 03:51:00,909 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 03:51:00,910 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 03:51:00,910 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 03:51:00,910 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 03:51:00,910 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 03:51:00,910 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 669.6 μs 03:51:00,910 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 03:51:00,910 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] 03:51:00,910 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 03:51:00,910 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 03:51:00,910 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 03:51:00,910 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 03:51:00,910 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 03:51:00,910 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/0x00000007c0914930@4e132a4c} 03:51:00,910 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d92300] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-334351554621749815/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006936F3E4-36484BC4.tmp 03:51:00,910 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 3.683 ms [WARN] [12/08/2025 15:51:00.911] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] 03:51:00,911 PM [test-pekko.actor.default-dispatcher-7] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][12/08/2025 15:51:00.911] [test-pekko.actor.default-dispatcher-7] [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'. 03:51:00,912 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d92300] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-334351554621749815/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006936F3E4-36484BC4.v1 03:51:00,912 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d92300] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-334351554621749815/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006936F3E4-36484BC4.v1 03:51:00,912 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d92300] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-334351554621749815/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 03:51:00,912 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d92300] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-334351554621749815/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 03:51:00,912 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d92300] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-334351554621749815/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 03:51:00,912 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d92300] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-12-08T15:51:00.910707652Z, file=/tmp/junit-334351554621749815/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006936F3E4-36484BC4.v1, size=573, entryCompress=NONE, stateCompress=NONE} 03:51:00,912 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d92300] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 03:51:00,912 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 03:51:00,912 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-12-08T15:51:00.910707652Z 03:51:00,912 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 03:51:00,912 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 03:51:00,912 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 2.161 ms 03:51:00,912 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 03:51:00,912 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 03:51:00,912 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 03:51:00,912 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 03:51:00,912 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 112.4 μs 03:51:00,912 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 03:51:01,56 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-334351554621749815/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006936F3E4-36484BC4.v1 03:51:01,56 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-334351554621749815/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 03:51:01,56 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-334351554621749815/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 03:51:01,56 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-334351554621749815/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 03:51:01,57 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-12-08T15:51:00.910707652Z, file=/tmp/junit-334351554621749815/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006936F3E4-36484BC4.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 03:51:01,58 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 03:51:01,69 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#634,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156]/waiting 03:51:01,69 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 157.0 ms 03:51:01,69 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 16.25 μs 03:51:01,70 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 03:51:01,70 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 03:51:01,70 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 03:51:01,70 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 03:51:01,70 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 03:51:01,70 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [12/08/2025 15:51:01.071] [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@53fcafd2 [INFO] [pekkoDeadLetter][12/08/2025 15:51:01.071] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 03:51:01,71 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 03:51:01,71 PM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 03:51:01,71 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 03:51:01,71 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 03:51:01,72 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 03:51:01,73 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 03:51:01,73 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 03:51:01,73 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 03:51:01,73 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 03:51:01,73 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 03:51:01,73 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 03:51:01,73 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-334351554621749815/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006936F3E4-36484BC4.v1 03:51:01,73 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-334351554621749815/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 03:51:01,73 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-334351554621749815/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 03:51:01,73 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-334351554621749815/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 03:51:01,73 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-12-08T15:51:00.910707652Z, file=/tmp/junit-334351554621749815/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006936F3E4-36484BC4.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 03:51:01,73 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-12-08T15:51:00.910707652Z 03:51:01,74 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 03:51:01,74 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 03:51:01,74 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 03:51:01,74 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 03:51:01,75 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 1.528 ms: last log index = 2, last log term = 1, napshot index = 2, snapshot term = 1, journal size = 0 03:51:01,75 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and cannot restore from snapshot 03:51:01,75 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior540#-1735287288] 03:51:01,86 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower541#-1404873520] 03:51:01,86 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader542#552792793] 03:51:01,87 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 03:51:01,87 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#637,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/waiting 03:51:01,87 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 13.75 ms 03:51:01,87 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 14.57 μs 03:51:01,87 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 03:51:01,87 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 03:51:01,87 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 03:51:01,87 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 03:51:01,87 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 03:51:01,92 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 03:51:01,92 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:51:01,392 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 03:51:01,523 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 03:51:01,773 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 03:51:01,974 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 03:51:01,974 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior543#1165590747] 03:51:01,985 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower544#-871895630] 03:51:01,985 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader545#-99869589] 03:51:01,990 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:51:01,991 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 03:51:01,991 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 03:51:01,991 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 03:51:01,991 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 03:51:01,992 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior546#-1346811365] 03:51:02,3 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower547#-273052923] 03:51:02,3 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader548#507625375] [INFO] [12/08/2025 15:51:02.004] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 03:51:02,5 PM [test-pekko.actor.default-dispatcher-12] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [12/08/2025 15:51:02.006] [test-pekko.actor.default-dispatcher-12] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.172:17355) 03:51:02,6 PM [test-pekko.actor.default-dispatcher-5] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-2134102337] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][12/08/2025 15:51:02.006] [test-pekko.actor.default-dispatcher-5] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-2134102337] 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'. 03:51:02,7 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.172:17355] - Exiting completed [INFO] [12/08/2025 15:51:02.006] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.172:17355] - Exiting completed [INFO] [12/08/2025 15:51:02.007] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.172:17355] - Shutting down... [INFO] [12/08/2025 15:51:02.007] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.172:17355] - Successfully shut down 03:51:02,7 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.172:17355] - Shutting down... 03:51:02,8 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.172:17355] - Successfully shut down 03:51:02,9 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [12/08/2025 15:51:02.009] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.172:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [12/08/2025 15:51:02.009] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.172:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 03:51:02,9 PM [test-pekko.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. 03:51:02,12 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down.