[DEBUG] [09/03/2025 19:29:56.653] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 07:29:56,653 PM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [09/03/2025 19:29:56.654] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [09/03/2025 19:29:56.654] [main] [EventStream(pekko://test)] Default Loggers started 07:29:56,666 PM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.72:17355] with UID [-8829301501316112853] 07:29:56,666 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.72:17355] - Starting up, Pekko version [1.1.5] ... [INFO] [09/03/2025 19:29:56.664] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.72:17355] with UID [-8829301501316112853] [INFO] [09/03/2025 19:29:56.665] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.72:17355] - Starting up, Pekko version [1.1.5] ... [INFO] [09/03/2025 19:29:56.668] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.72:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 07:29:56,668 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.72:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 07:29:56,668 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.72:17355] - Started up successfully [INFO] [09/03/2025 19:29:56.668] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.72:17355] - Started up successfully [INFO] [09/03/2025 19:29:56.669] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.72:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 07:29:56,669 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.72:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [09/03/2025 19:29:56.669] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.72:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 07:29:56,669 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.72:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 07:29:56,680 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:56,755 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 07:29:56,756 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 07:29:56,756 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior420#714397969] 07:29:56,767 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower421#1780073002] 07:29:56,767 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader422#-1547744591] 07:29:56,771 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:56,774 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 07:29:56,774 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:29:56,774 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 07:29:56,774 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 07:29:56,775 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:29:56,775 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 07:29:56,775 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:29:56,775 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 07:29:56,775 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 07:29:56,777 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:29:56,777 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:29:56,777 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 07:29:56,778 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior423#-987475659] 07:29:56,789 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower424#-1120958520] 07:29:56,789 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader425#156886619] 07:29:56,792 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:56,794 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 07:29:56,794 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 07:29:56,795 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior426#-707189656] 07:29:56,806 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower427#-1581379776] 07:29:56,806 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader428#-1304310270] 07:29:56,809 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:56,810 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 07:29:56,811 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 07:29:56,811 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:29:56,811 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 07:29:56,812 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 07:29:56,813 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 07:29:56,813 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 07:29:56,813 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 07:29:56,813 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 07:29:56,814 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 07:29:56,814 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 07:29:56,815 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 07:29:56,816 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior429#490860164] 07:29:56,827 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower430#1805247551] 07:29:56,827 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader431#-999677076] 07:29:56,831 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:56,831 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:29:56,832 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:29:56,832 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:56,832 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 07:29:56,833 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 07:29:56,833 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 07:29:56,833 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 07:29:56,834 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 07:29:56,834 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior432#-902121556] 07:29:56,845 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower433#409065750] 07:29:56,845 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader434#-104881067] 07:29:56,848 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:56,850 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 07:29:56,850 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior435#-1856485680] 07:29:56,861 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower436#1587191547] 07:29:56,861 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader437#-905303048] 07:29:56,864 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:56,866 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 07:29:56,866 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 07:29:56,866 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior438#150429061] 07:29:56,877 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower439#-2002509036] 07:29:56,877 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader440#-2007645519] 07:29:56,883 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 07:29:56,883 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:56,886 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:29:56,886 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:29:56,886 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:29:56,887 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:29:56,887 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 07:29:56,888 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 07:29:56,888 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 07:29:56,888 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 07:29:56,891 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 07:29:56,891 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior441#-1309286814] 07:29:56,902 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower442#1783469171] 07:29:56,902 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader443#-1424686444] 07:29:56,907 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 07:29:56,907 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:56,909 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 07:29:56,909 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 07:29:56,910 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:29:56,910 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 07:29:56,910 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior444#-1976173689] 07:29:56,921 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower445#-2046136636] 07:29:56,921 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader446#43525607] 07:29:56,925 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 07:29:56,926 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:56,926 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:29:56,927 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:29:56,927 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:29:56,927 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:29:56,927 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 07:29:56,928 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 07:29:56,928 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 07:29:56,928 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:29:56,929 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:29:56,929 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:29:56,929 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 07:29:56,930 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:29:56,930 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 07:29:56,930 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior447#450416321] 07:29:56,941 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower448#1598911404] 07:29:56,941 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader449#955764263] 07:29:56,945 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:56,946 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 07:29:56,947 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior450#-453565584] 07:29:56,958 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower451#550762182] 07:29:56,958 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader452#2131644901] 07:29:56,961 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 07:29:56,962 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:56,962 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:29:56,963 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:29:56,963 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:29:56,963 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:29:56,963 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:29:56,963 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:29:56,963 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:29:56,963 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:29:56,963 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:29:56,963 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:29:56,964 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:29:56,964 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior453#-1000302054] 07:29:56,975 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower454#1503639261] 07:29:56,975 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader455#360309473] 07:29:56,978 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 07:29:56,978 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:56,979 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 07:29:56,980 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:29:56,980 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 07:29:56,980 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 07:29:56,980 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:29:56,980 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 07:29:56,980 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:29:56,980 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:29:56,980 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 07:29:56,981 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:29:56,981 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:29:56,981 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:29:56,981 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:29:56,982 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 07:29:56,982 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:29:56,982 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 07:29:56,982 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 07:29:56,982 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 07:29:56,982 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 07:29:56,982 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 07:29:56,983 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:29:56,983 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 07:29:56,983 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 07:29:56,983 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:29:56,983 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:29:56,984 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#-1207394855] 07:29:56,995 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower457#-999234856] 07:29:56,995 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader458#822035813] 07:29:56,999 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 07:29:56,999 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:57,0 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 07:29:57,1 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 07:29:57,1 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:29:57,2 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 07:29:57,2 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#-1093182922] 07:29:57,13 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower460#-56995018] 07:29:57,13 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader461#1588474161] 07:29:57,17 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:57,20 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#896279161] 07:29:57,30 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower463#1400229542] 07:29:57,30 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader464#1809476790] 07:29:57,33 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 07:29:57,33 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:57,33 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 07:29:57,33 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:29:57,34 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:29:57,34 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:29:57,34 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:29:57,34 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:29:57,34 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:29:57,34 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:29:57,34 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:29:57,35 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:29:57,35 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 07:29:57,35 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 07:29:57,35 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 07:29:57,35 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 07:29:57,35 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#-1167161941] 07:29:57,46 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower466#1950339485] 07:29:57,46 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader467#-421482809] 07:29:57,50 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries 07:29:57,56 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:29:57,56 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] [WARN] [09/03/2025 19:29:57.057] [test-pekko.actor.default-dispatcher-9] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@e4e79bd [INFO] [pekkoDeadLetter][09/03/2025 19:29:57.057] [test-pekko.actor.default-dispatcher-9] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:29:57,57 PM [test-pekko.actor.default-dispatcher-9] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:29:57,58 PM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 07:29:57,58 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 07:29:57,58 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 07:29:57,59 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 07:29:57,59 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 07:29:57,59 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 07:29:57,59 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 07:29:57,59 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 07:29:57,59 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 07:29:57,59 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/junit-10506894364248599585/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 07:29:57,61 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=0, votedFor=null 07:29:57,61 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 07:29:57,61 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-10506894364248599585/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:29:57,61 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-10506894364248599585/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:29:57,61 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-10506894364248599585/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:29:57,61 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 07:29:57,61 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 07:29:57,61 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 07:29:57,61 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 07:29:57,61 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed in in 2.087 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 07:29:57,61 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed and can restore from snapshot 07:29:57,62 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-10506894364248599585/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:29:57,62 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-10506894364248599585/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:29:57,62 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-10506894364248599585/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:29:57,62 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 07:29:57,62 PM [test-pekko.actor.default-dispatcher-12] [INFO] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]}" message is greater than follower's term 0 - updating term 07:29:57,64 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:29:57,64 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 07:29:57,64 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 07:29:57,64 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:29:57,64 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 07:29:57,64 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:29:57,64 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 07:29:57,64 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:29:57,64 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 07:29:57,64 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 07:29:57,64 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:29:57,64 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 07:29:57,64 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 07:29:57,64 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 07:29:57,64 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 5.056 ms 07:29:57,64 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 07:29:57,64 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 07:29:57,64 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 07:29:57,64 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 07:29:57,64 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 07:29:57,64 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 07:29:57,64 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 07:29:57,64 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 07:29:57,68 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 07:29:57,68 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 3.756 ms 07:29:57,68 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 07:29:57,68 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 4.000 μs 07:29:57,68 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:29:57,68 PM [test-pekko.actor.default-dispatcher-12] [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/0x00000007c08d48f0@61d66b15} 07:29:57,68 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 07:29:57,68 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:29:57,68 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 07:29:57,68 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 183.4 μs 07:29:57,68 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 07:29:57,68 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 07:29:57,68 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 07:29:57,68 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 07:29:57,68 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 07:29:57,69 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 07:29:57,69 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 07:29:57,69 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d991813] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-10506894364248599585/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B89735-041BC376.tmp 07:29:57,69 PM [test-pekko.actor.default-dispatcher-12] [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/0x00000007c08d48f0@61d66b15} 07:29:57,69 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 4.264 ms 07:29:57,69 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) [WARN] [09/03/2025 19:29:57.069] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][09/03/2025 19:29:57.069] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:29:57,69 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'. 07:29:57,75 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d991813] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-10506894364248599585/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B89735-041BC376.v1 07:29:57,75 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d991813] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-10506894364248599585/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B89735-041BC376.v1 07:29:57,75 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d991813] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-10506894364248599585/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:29:57,75 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d991813] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-10506894364248599585/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:29:57,75 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d991813] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-10506894364248599585/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:29:57,75 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d991813] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-09-03T19:29:57.068928374Z, file=/tmp/junit-10506894364248599585/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B89735-041BC376.v1, size=555, entryCompress=NONE, stateCompress=NONE} 07:29:57,75 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d991813] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 07:29:57,75 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 07:29:57,75 PM [test-pekko.actor.default-dispatcher-9] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-09-03T19:29:57.068928374Z 07:29:57,75 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 07:29:57,75 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 7.050 ms 07:29:57,75 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 07:29:57,75 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 07:29:57,75 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 07:29:57,75 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 07:29:57,75 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 174.7 μs 07:29:57,76 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 07:29:57,76 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 07:29:57,163 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-10506894364248599585/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B89735-041BC376.v1 07:29:57,163 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-10506894364248599585/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:29:57,163 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-10506894364248599585/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:29:57,163 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-10506894364248599585/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:29:57,163 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-09-03T19:29:57.068928374Z, file=/tmp/junit-10506894364248599585/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B89735-041BC376.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 07:29:57,165 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#278802337] 07:29:57,176 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower469#1209645660] 07:29:57,177 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader470#402556829] 07:29:57,177 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 07:29:57,177 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#625,testCaptureSnapshotOnLastEntryInAppendEntries-writer-154]/waiting 07:29:57,177 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 101.7 ms 07:29:57,177 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 16.95 μs 07:29:57,177 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 07:29:57,178 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 07:29:57,178 PM [test-pekko.actor.default-dispatcher-9] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 07:29:57,178 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 07:29:57,178 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 07:29:57,183 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:57,184 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior471#1306713995] 07:29:57,195 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower472#416658458] 07:29:57,195 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader473#154628243] 07:29:57,199 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 07:29:57,199 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:57,200 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 07:29:57,201 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 07:29:57,201 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior474#164059070] 07:29:57,212 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower475#1679514632] 07:29:57,212 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader476#1061342716] 07:29:57,216 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 07:29:57,216 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:57,217 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:29:57,218 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:29:57,218 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:29:57,218 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:29:57,218 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:29:57,218 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:29:57,218 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:29:57,218 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:29:57,218 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:29:57,219 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:29:57,219 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:29:57,219 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#-1894288568] 07:29:57,230 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower478#-712703802] 07:29:57,230 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader479#852238794] 07:29:57,234 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 07:29:57,234 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:57,235 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:29:57,236 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:29:57,236 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 07:29:57,236 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:29:57,236 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:29:57,237 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 07:29:57,237 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:29:57,238 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 07:29:57,238 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:29:57,238 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 07:29:57,239 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#1220668922] 07:29:57,250 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower481#-1788360583] 07:29:57,250 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader482#2008896930] 07:29:57,255 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:57,255 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior483#-1585919302] 07:29:57,266 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower484#-75048432] 07:29:57,267 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader485#106935083] 07:29:57,272 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 07:29:57,272 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:57,273 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:29:57,274 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:29:57,275 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 07:29:57,275 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:29:57,275 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:29:57,275 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:29:57,276 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:29:57,276 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 07:29:57,276 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:29:57,276 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:29:57,277 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:29:57,277 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 07:29:57,277 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:29:57,278 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:29:57,278 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior486#1646786077] 07:29:57,289 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower487#-69342832] 07:29:57,289 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader488#2102947111] 07:29:57,293 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 07:29:57,293 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:57,294 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 07:29:57,294 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:29:57,294 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 07:29:57,294 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 07:29:57,294 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:29:57,294 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 07:29:57,295 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:29:57,295 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 07:29:57,295 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 07:29:57,295 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 07:29:57,296 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior489#2012141350] 07:29:57,307 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower490#-1092092241] 07:29:57,307 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader491#2068118024] 07:29:57,313 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 07:29:57,313 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:57,315 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 07:29:57,315 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader494 07:29:57,315 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader494 07:29:57,316 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 07:29:57,317 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior492#-1513253448] 07:29:57,328 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower493#-1148216808] 07:29:57,328 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader494#-669717127] 07:29:57,332 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 07:29:57,332 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:57,333 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:29:57,334 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:29:57,334 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:29:57,334 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:29:57,334 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:29:57,334 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:29:57,334 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:29:57,335 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:29:57,335 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:29:57,335 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:29:57,335 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:29:57,336 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior495#-401284992] 07:29:57,347 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower496#1530597689] 07:29:57,347 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader497#-1617740095] 07:29:57,351 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 07:29:57,352 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:57,352 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:29:57,353 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:29:57,353 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 07:29:57,354 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:29:57,354 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:29:57,355 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#996260271] 07:29:57,366 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower499#-1137857402] 07:29:57,366 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader500#-1211799475] 07:29:57,371 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 07:29:57,373 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 07:29:57,374 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] [WARN] [09/03/2025 19:29:57.374] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@d97658 [INFO] [pekkoDeadLetter][09/03/2025 19:29:57.374] [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'. 07:29:57,374 PM [test-pekko.actor.default-dispatcher-12] [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'. 07:29:57,375 PM [test-pekko.actor.default-dispatcher-9] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 07:29:57,375 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 07:29:57,375 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 07:29:57,375 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 07:29:57,376 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 07:29:57,376 PM [test-pekko.actor.default-dispatcher-9] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 07:29:57,376 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 07:29:57,376 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 07:29:57,376 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 07:29:57,376 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] PropertiesTermInfoStore - /tmp/junit-37614620518520204/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 07:29:57,379 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=0, votedFor=null 07:29:57,379 PM [test-pekko.actor.default-dispatcher-9] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=0} 07:29:57,379 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-37614620518520204/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 07:29:57,379 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-37614620518520204/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 07:29:57,379 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-37614620518520204/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 07:29:57,379 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 07:29:57,379 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 07:29:57,379 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 07:29:57,379 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 07:29:57,379 PM [test-pekko.actor.default-dispatcher-9] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed in in 3.218 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 07:29:57,379 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed and can restore from snapshot 07:29:57,379 PM [test-pekko.actor.default-dispatcher-9] [INFO] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]}" message is greater than follower's term 0 - updating term 07:29:57,381 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 07:29:57,381 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 07:29:57,381 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 07:29:57,381 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:29:57,381 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 07:29:57,381 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:29:57,381 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 07:29:57,381 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:29:57,381 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 07:29:57,381 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 07:29:57,381 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 07:29:57,381 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 07:29:57,381 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 5.546 ms 07:29:57,381 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:29:57,381 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 07:29:57,381 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 07:29:57,381 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 07:29:57,381 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 07:29:57,381 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 07:29:57,381 PM [test-pekko.actor.default-dispatcher-9] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 07:29:57,381 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 07:29:57,384 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 07:29:57,384 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 2.507 ms 07:29:57,384 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 07:29:57,384 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 3 commands after 1.910 μs 07:29:57,384 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:29:57,384 PM [test-pekko.actor.default-dispatcher-9] [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/0x00000007c08d48f0@56c419f0} 07:29:57,384 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 2 synchronized callback(s) 07:29:57,385 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 07:29:57,385 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 3 completion(s) pending 07:29:57,385 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 3 commands in 1.247 ms 07:29:57,385 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 07:29:57,385 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 3 completion(s) 07:29:57,385 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:29:57,385 PM [test-pekko.actor.default-dispatcher-9] [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/0x00000007c08d48f0@56c419f0} 07:29:57,385 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 07:29:57,385 PM [test-pekko.actor.default-dispatcher-9] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 07:29:57,385 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 07:29:57,385 PM [test-pekko.actor.default-dispatcher-9] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 07:29:57,385 PM [test-pekko.actor.default-dispatcher-9] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 07:29:57,385 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 07:29:57,385 PM [test-pekko.actor.default-dispatcher-9] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 07:29:57,385 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d389255] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-37614620518520204/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B89735-16FEAC89.tmp 07:29:57,385 PM [test-pekko.actor.default-dispatcher-9] [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/0x00000007c08d48f0@56c419f0} 07:29:57,385 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 3.934 ms [WARN] [09/03/2025 19:29:57.386] [test-pekko.actor.default-dispatcher-9] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] 07:29:57,386 PM [test-pekko.actor.default-dispatcher-12] [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][09/03/2025 19:29:57.386] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:29:57,387 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d389255] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-37614620518520204/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B89735-16FEAC89.v1 07:29:57,387 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d389255] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-37614620518520204/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B89735-16FEAC89.v1 07:29:57,387 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d389255] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-37614620518520204/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 07:29:57,387 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d389255] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-37614620518520204/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 07:29:57,387 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d389255] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-37614620518520204/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 07:29:57,387 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d389255] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-09-03T19:29:57.385789065Z, file=/tmp/junit-37614620518520204/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B89735-16FEAC89.v1, size=539, entryCompress=NONE, stateCompress=NONE} 07:29:57,387 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d389255] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 07:29:57,387 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 07:29:57,387 PM [test-pekko.actor.default-dispatcher-9] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-09-03T19:29:57.385789065Z 07:29:57,387 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 07:29:57,387 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 07:29:57,387 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 2.275 ms 07:29:57,387 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 07:29:57,387 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 07:29:57,388 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 07:29:57,388 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 94.00 μs 07:29:57,388 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 07:29:57,388 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 07:29:57,531 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-37614620518520204/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B89735-16FEAC89.v1 07:29:57,531 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-37614620518520204/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 07:29:57,531 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-37614620518520204/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 07:29:57,531 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-37614620518520204/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 07:29:57,531 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-09-03T19:29:57.385789065Z, file=/tmp/junit-37614620518520204/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B89735-16FEAC89.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 07:29:57,533 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#1694465830] 07:29:57,544 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower502#1902308136] 07:29:57,544 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader503#74271065] 07:29:57,544 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 07:29:57,545 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#628,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155]/waiting 07:29:57,545 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 157.1 ms 07:29:57,545 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 21.16 μs 07:29:57,545 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 07:29:57,545 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 07:29:57,545 PM [test-pekko.actor.default-dispatcher-9] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 07:29:57,545 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 07:29:57,545 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 07:29:57,549 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 07:29:57,550 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:57,550 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:29:57,551 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 07:29:57,551 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 07:29:57,551 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:29:57,551 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 07:29:57,551 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior504#817665971] 07:29:57,552 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower505#1393335941] 07:29:57,552 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader506#-1298952820] 07:29:57,554 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 07:29:57,554 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:57,555 PM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 07:29:57,559 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 07:29:57,559 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 07:29:57,559 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 07:29:57,559 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 07:29:57,560 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#-412198431] 07:29:57,560 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower508#-596399733] 07:29:57,560 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader509#-1130593232] 07:29:57,563 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 07:29:57,563 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:57,564 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 07:29:57,564 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 07:29:57,564 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:29:57,564 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 07:29:57,564 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:29:57,564 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 07:29:57,564 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 07:29:57,564 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 07:29:57,564 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 07:29:57,564 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 07:29:57,564 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 07:29:57,564 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:29:57,564 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 07:29:57,564 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 07:29:57,565 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:29:57,565 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:29:57,565 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:29:57,565 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:29:57,565 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:29:57,565 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:29:57,565 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 07:29:57,565 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 07:29:57,565 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior510#974448925] 07:29:57,566 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower511#-1090182562] 07:29:57,566 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader512#1077315091] 07:29:57,568 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 07:29:57,568 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:57,569 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 07:29:57,569 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 07:29:57,569 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#-112723549] 07:29:57,570 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower514#-28502060] 07:29:57,570 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader515#938736376] 07:29:57,573 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 07:29:57,573 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:57,573 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:29:57,573 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:29:57,574 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:29:57,574 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:29:57,574 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 07:29:57,574 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 07:29:57,574 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 07:29:57,574 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:29:57,575 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 07:29:57,575 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 07:29:57,575 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 07:29:57,575 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 07:29:57,575 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:29:57,575 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 07:29:57,575 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 07:29:57,575 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:29:57,575 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:29:57,575 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior516#169353521] 07:29:57,576 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower517#-1389571193] 07:29:57,576 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518#-1672209011] 07:29:57,578 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 07:29:57,578 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:57,579 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:29:57,579 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:29:57,579 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 07:29:57,579 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:29:57,580 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:29:57,580 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:29:57,580 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:29:57,580 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 07:29:57,580 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:29:57,580 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:29:57,581 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 07:29:57,581 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:29:57,581 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 07:29:57,581 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:29:57,581 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 07:29:57,582 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior519#1274002683] 07:29:57,582 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower520#607379362] 07:29:57,582 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader521#1591357909] 07:29:57,584 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 07:29:57,585 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:57,785 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:29:57,785 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.72:17355, Removed) 07:29:57,785 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 07:29:57,785 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 07:29:57,785 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 07:29:57,785 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 07:29:57,785 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior522#-10052825] 07:29:57,796 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower523#-321677758] 07:29:57,796 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader524#4515450] 07:29:57,799 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:57,799 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 07:29:58,0 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:29:58,0 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior525#-1467660685] 07:29:58,12 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower526#-624218619] 07:29:58,12 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader527#-1282043497] 07:29:58,17 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 07:29:58,17 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:58,20 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 07:29:58,20 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 07:29:58,21 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior528#545857356] 07:29:58,32 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower529#-1907642560] 07:29:58,32 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader530#-1902927699] 07:29:58,36 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 07:29:58,36 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:58,37 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 07:29:58,37 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:29:58,37 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 07:29:58,37 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 07:29:58,37 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 07:29:58,37 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 07:29:58,37 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 07:29:58,37 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:29:58,37 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 07:29:58,37 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 07:29:58,38 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:29:58,38 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:29:58,38 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:29:58,38 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:29:58,38 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:29:58,38 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:29:58,38 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 07:29:58,38 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 07:29:58,38 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 07:29:58,38 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 07:29:58,39 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior531#407517857] 07:29:58,50 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower532#1617340686] 07:29:58,50 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader533#1908503231] 07:29:58,53 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 07:29:58,53 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:58,54 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:29:58,54 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:29:58,54 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:29:58,54 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:29:58,56 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 07:29:58,56 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:29:58,57 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior534#-1775760694] 07:29:58,68 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower535#-1470366640] 07:29:58,68 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader536#728996659] 07:29:58,71 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 07:29:58,71 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:58,72 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 07:29:58,73 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 07:29:58,73 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:29:58,74 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 07:29:58,74 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 07:29:58,75 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior537#1561184096] 07:29:58,86 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower538#-1261903800] 07:29:58,86 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader539#-279153671] 07:29:58,90 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries 07:29:58,108 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:29:58,108 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [09/03/2025 19:29:58.109] [test-pekko.actor.default-dispatcher-9] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@56796576 [INFO] [pekkoDeadLetter][09/03/2025 19:29:58.109] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:29:58,109 PM [test-pekko.actor.default-dispatcher-9] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:29:58,109 PM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 07:29:58,109 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:29:58,109 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:29:58,110 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 07:29:58,110 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 07:29:58,110 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 07:29:58,111 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 07:29:58,111 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 07:29:58,111 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 07:29:58,111 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/junit-12484261623172451412/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 07:29:58,114 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=0, votedFor=null 07:29:58,114 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 07:29:58,114 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12484261623172451412/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:29:58,114 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12484261623172451412/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:29:58,114 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12484261623172451412/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:29:58,114 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 07:29:58,114 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 07:29:58,114 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 07:29:58,114 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 07:29:58,114 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 3.616 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 07:29:58,114 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and can restore from snapshot 07:29:58,115 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12484261623172451412/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:29:58,115 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12484261623172451412/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:29:58,115 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12484261623172451412/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:29:58,115 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 07:29:58,115 PM [test-pekko.actor.default-dispatcher-12] [INFO] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]}" message is greater than follower's term 0 - updating term 07:29:58,117 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:29:58,117 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 07:29:58,117 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 07:29:58,117 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:29:58,117 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 07:29:58,117 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:29:58,117 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 07:29:58,117 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:29:58,117 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 07:29:58,117 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 07:29:58,117 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 07:29:58,117 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 07:29:58,117 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:29:58,117 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 07:29:58,117 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 6.234 ms 07:29:58,117 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 07:29:58,117 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 07:29:58,117 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 07:29:58,117 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 07:29:58,117 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 07:29:58,117 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 07:29:58,117 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 07:29:58,117 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 07:29:58,117 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 07:29:58,117 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 07:29:58,117 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 07:29:58,117 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 07:29:58,117 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 07:29:58,117 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 07:29:58,121 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 07:29:58,121 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 07:29:58,121 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:29:58,121 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 3.780 ms 07:29:58,121 PM [test-pekko.actor.default-dispatcher-12] [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/0x00000007c08d48f0@3e92c06a} 07:29:58,121 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 4.080 μs 07:29:58,121 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:29:58,121 PM [test-pekko.actor.default-dispatcher-12] [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/0x00000007c08d48f0@3e92c06a} 07:29:58,121 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 07:29:58,122 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 07:29:58,122 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 07:29:58,122 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 07:29:58,122 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 07:29:58,122 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 827.3 μs 07:29:58,122 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 07:29:58,122 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 07:29:58,122 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 07:29:58,122 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 07:29:58,122 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 07:29:58,122 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 07:29:58,122 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 07:29:58,122 PM [test-pekko.actor.default-dispatcher-12] [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/0x00000007c08d48f0@3e92c06a} 07:29:58,122 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 4.750 ms 07:29:58,122 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d515702] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-12484261623172451412/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B89736-074AF1A6.tmp [WARN] [09/03/2025 19:29:58.122] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][09/03/2025 19:29:58.122] [test-pekko.actor.default-dispatcher-9] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:29:58,122 PM [test-pekko.actor.default-dispatcher-9] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:29:58,124 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d515702] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-12484261623172451412/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B89736-074AF1A6.v1 07:29:58,124 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d515702] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12484261623172451412/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B89736-074AF1A6.v1 07:29:58,125 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d515702] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12484261623172451412/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:29:58,125 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d515702] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12484261623172451412/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:29:58,125 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d515702] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12484261623172451412/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:29:58,125 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d515702] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-09-03T19:29:58.122352038Z, file=/tmp/junit-12484261623172451412/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B89736-074AF1A6.v1, size=573, entryCompress=NONE, stateCompress=NONE} 07:29:58,125 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d515702] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 07:29:58,125 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 07:29:58,125 PM [test-pekko.actor.default-dispatcher-9] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-09-03T19:29:58.122352038Z 07:29:58,125 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 07:29:58,125 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 07:29:58,125 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.189 ms 07:29:58,125 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 07:29:58,125 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 07:29:58,125 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 07:29:58,125 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 07:29:58,125 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 182.0 μs 07:29:58,125 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 07:29:58,266 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12484261623172451412/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B89736-074AF1A6.v1 07:29:58,266 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12484261623172451412/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:29:58,266 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12484261623172451412/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:29:58,266 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12484261623172451412/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:29:58,266 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-09-03T19:29:58.122352038Z, file=/tmp/junit-12484261623172451412/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B89736-074AF1A6.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 07:29:58,268 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 07:29:58,279 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#631,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156]/waiting 07:29:58,279 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 153.7 ms 07:29:58,279 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 22.15 μs 07:29:58,279 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 07:29:58,279 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 07:29:58,279 PM [test-pekko.actor.default-dispatcher-9] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 07:29:58,279 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:29:58,279 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:29:58,280 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [09/03/2025 19:29:58.280] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@3da029ae [INFO] [pekkoDeadLetter][09/03/2025 19:29:58.280] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:29:58,281 PM [test-pekko.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:29:58,281 PM [test-pekko.actor.default-dispatcher-9] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 07:29:58,281 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:29:58,281 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:29:58,282 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 07:29:58,282 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 07:29:58,282 PM [test-pekko.actor.default-dispatcher-9] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 07:29:58,282 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 07:29:58,282 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 07:29:58,282 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 07:29:58,282 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:29:58,283 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12484261623172451412/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B89736-074AF1A6.v1 07:29:58,283 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12484261623172451412/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:29:58,283 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12484261623172451412/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:29:58,283 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12484261623172451412/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:29:58,283 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-09-03T19:29:58.122352038Z, file=/tmp/junit-12484261623172451412/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B89736-074AF1A6.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 07:29:58,283 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-09-03T19:29:58.122352038Z 07:29:58,283 PM [test-pekko.actor.default-dispatcher-9] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 07:29:58,284 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 07:29:58,284 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 07:29:58,284 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 07:29:58,284 PM [test-pekko.actor.default-dispatcher-9] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 1.460 ms: last log index = 2, last log term = 1, napshot index = 2, snapshot term = 1, journal size = 0 07:29:58,284 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and cannot restore from snapshot 07:29:58,284 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior540#-100958948] 07:29:58,287 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower541#-1094075453] 07:29:58,287 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader542#-694074569] 07:29:58,287 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 07:29:58,287 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#634,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/waiting 07:29:58,287 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 4.982 ms 07:29:58,287 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 13.60 μs 07:29:58,287 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 07:29:58,287 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 07:29:58,287 PM [test-pekko.actor.default-dispatcher-9] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 07:29:58,288 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:29:58,288 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:29:58,292 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 07:29:58,292 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:58,592 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 07:29:58,723 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:29:58,723 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 07:29:58,973 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 07:29:59,173 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 07:29:59,174 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior543#2116616013] 07:29:59,175 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower544#325617009] 07:29:59,175 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader545#1046820185] 07:29:59,179 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:29:59,180 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:29:59,180 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 07:29:59,180 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 07:29:59,180 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 07:29:59,180 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 07:29:59,180 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior546#-378456891] 07:29:59,181 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower547#2099501096] 07:29:59,181 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader548#-2091246954] 07:29:59,183 PM [test-pekko.actor.default-dispatcher-12] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [09/03/2025 19:29:59.182] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [09/03/2025 19:29:59.184] [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.72:17355) [INFO] [09/03/2025 19:29:59.184] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.72:17355] - Exiting completed [INFO] [09/03/2025 19:29:59.184] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.72:17355] - Shutting down... 07:29:59,184 PM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.72:17355] - Exiting completed 07:29:59,184 PM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.72:17355] - Shutting down... 07:29:59,184 PM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.72:17355] - Successfully shut down 07:29:59,184 PM [test-pekko.actor.default-dispatcher-12] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1240619875] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [09/03/2025 19:29:59.184] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.72:17355] - Successfully shut down [INFO] [pekkoDeadLetter][09/03/2025 19:29:59.184] [test-pekko.actor.default-dispatcher-12] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1240619875] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [09/03/2025 19:29:59.185] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.170.72:17355/system/remoting-terminator] Shutting down remote daemon. 07:29:59,186 PM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 07:29:59,186 PM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [09/03/2025 19:29:59.186] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.170.72:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [09/03/2025 19:29:59.188] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.170.72:17355/system/remoting-terminator] Remoting shut down. 07:29:59,188 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [09/03/2025 19:29:59.188] [test-pekko.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger