[DEBUG] [11/07/2025 17:18:57.655] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 05:18:57,655 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [11/07/2025 17:18:57.656] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [11/07/2025 17:18:57.656] [main] [EventStream(pekko://test)] Default Loggers started 05:18:57,671 PM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.236:17355] with UID [6169810463827025529] [INFO] [11/07/2025 17:18:57.671] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.236:17355] with UID [6169810463827025529] [INFO] [11/07/2025 17:18:57.672] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.236:17355] - Starting up, Pekko version [1.2.1] ... 05:18:57,672 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.236:17355] - Starting up, Pekko version [1.2.1] ... [INFO] [11/07/2025 17:18:57.675] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.236:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 05:18:57,676 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.236:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [11/07/2025 17:18:57.676] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.236:17355] - Started up successfully 05:18:57,676 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.236:17355] - Started up successfully [INFO] [11/07/2025 17:18:57.677] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.236:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 05:18:57,678 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.236:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [11/07/2025 17:18:57.678] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.236:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 05:18:57,678 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.236:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 05:18:57,697 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:57,814 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 05:18:57,814 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 05:18:57,815 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior332#-635298475] 05:18:57,817 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower333#-1163733032] 05:18:57,818 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader334#132436850] 05:18:57,822 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:57,824 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]]} 05:18:57,827 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:18:57,827 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 05:18:57,827 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 05:18:57,828 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 05:18:57,828 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 05:18:57,828 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} 05:18:57,829 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 05:18:57,829 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 05:18:57,831 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 05:18:57,831 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:18:57,831 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 05:18:57,833 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior335#605303828] 05:18:57,844 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower336#2079141184] 05:18:57,845 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader337#-698655844] 05:18:57,852 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:57,856 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 05:18:57,857 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 05:18:57,858 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior338#459742976] 05:18:57,861 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower339#-13388064] 05:18:57,861 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader340#-47404199] 05:18:57,867 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:57,868 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 05:18:57,869 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 05:18:57,870 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} 05:18:57,870 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 05:18:57,871 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 05:18:57,872 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 05:18:57,873 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 05:18:57,873 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. 05:18:57,873 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 05:18:57,874 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 05:18:57,874 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 05:18:57,875 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 05:18:57,876 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior341#-1652969806] 05:18:57,887 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower342#-1357322041] 05:18:57,888 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader343#-1769374794] 05:18:57,894 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:57,895 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:18:57,896 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:18:57,896 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:57,896 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 05:18:57,897 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 05:18:57,897 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 05:18:57,898 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 05:18:57,898 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 05:18:57,898 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior344#-1135184101] 05:18:57,910 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower345#-1013565274] 05:18:57,910 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader346#-1559348739] 05:18:57,918 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:57,919 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 05:18:57,920 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior347#255542602] 05:18:57,931 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower348#676780974] 05:18:57,932 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader349#2028388550] 05:18:57,937 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:57,939 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 05:18:57,939 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 05:18:57,939 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior350#-1194619940] 05:18:57,951 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower351#638201779] 05:18:57,951 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader352#-336283832] 05:18:57,956 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 05:18:57,957 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:57,960 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 05:18:57,960 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:18:57,960 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 05:18:57,960 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 05:18:57,961 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 05:18:57,961 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 05:18:57,961 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 05:18:57,961 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 05:18:57,965 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 05:18:57,966 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior353#-888770781] 05:18:57,977 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower354#-82029758] 05:18:57,978 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader355#-1702818] 05:18:57,984 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 05:18:57,985 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:57,986 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]]} 05:18:57,987 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 05:18:57,987 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} 05:18:57,987 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 05:18:57,988 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior356#-1188181746] 05:18:57,999 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower357#350388111] 05:18:57,999 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader358#223674630] 05:18:58,6 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 05:18:58,6 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:58,8 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 05:18:58,8 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:18:58,8 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 05:18:58,8 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 05:18:58,8 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 05:18:58,9 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 05:18:58,9 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 05:18:58,9 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 05:18:58,9 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 05:18:58,10 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]]} 05:18:58,10 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 05:18:58,10 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} 05:18:58,10 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 05:18:58,11 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior359#-821852647] 05:18:58,22 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower360#-1470489386] 05:18:58,22 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader361#-1053291246] 05:18:58,28 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:58,29 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 05:18:58,30 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior362#-576452707] 05:18:58,41 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower363#1513804552] 05:18:58,42 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader364#1183427173] 05:18:58,47 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 05:18:58,47 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:58,48 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 05:18:58,49 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]]} 05:18:58,49 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:18:58,49 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 05:18:58,49 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 05:18:58,49 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 05:18:58,49 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 05:18:58,49 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} 05:18:58,50 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:18:58,50 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 05:18:58,50 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 05:18:58,51 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior365#1405885601] 05:18:58,62 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower366#1835459172] 05:18:58,62 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader367#206370763] 05:18:58,67 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 05:18:58,68 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:58,69 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]]} 05:18:58,69 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:18:58,69 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 05:18:58,70 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 05:18:58,70 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 05:18:58,70 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 05:18:58,70 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} 05:18:58,70 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:18:58,70 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 05:18:58,70 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 05:18:58,70 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:18:58,71 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 05:18:58,71 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 05:18:58,72 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]]} 05:18:58,72 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 05:18:58,72 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 05:18:58,72 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 05:18:58,72 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 05:18:58,72 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 05:18:58,72 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 05:18:58,72 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} 05:18:58,72 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 05:18:58,72 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 05:18:58,73 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 05:18:58,73 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 05:18:58,73 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior368#1118539597] 05:18:58,85 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower369#310886433] 05:18:58,85 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader370#1730386442] 05:18:58,91 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 05:18:58,91 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:58,93 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 05:18:58,94 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 05:18:58,94 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} 05:18:58,94 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 05:18:58,95 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior371#-1901679859] 05:18:58,106 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower372#717532066] 05:18:58,106 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader373#1414305129] 05:18:58,113 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:58,117 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior374#-143865588] 05:18:58,128 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower375#-1457285318] 05:18:58,128 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader376#-1965520945] 05:18:58,134 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 05:18:58,134 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:58,134 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 05:18:58,135 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 05:18:58,136 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]]} 05:18:58,136 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:18:58,136 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 05:18:58,136 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 05:18:58,136 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 05:18:58,136 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 05:18:58,136 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} 05:18:58,136 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:18:58,137 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 05:18:58,137 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 05:18:58,137 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 05:18:58,137 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 05:18:58,137 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior377#-1791928095] 05:18:58,149 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower378#-1246443030] 05:18:58,150 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader379#-1195376600] 05:18:58,156 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries 05:18:58,161 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:18:58,162 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] [WARN] [11/07/2025 17:18:58.163] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@259ffa85 05:18:58,163 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 [INFO] [pekkoDeadLetter][11/07/2025 17:18:58.163] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 05:18:58,164 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 05:18:58,164 PM [test-pekko.actor.default-dispatcher-6] [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'. 05:18:58,164 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 05:18:58,164 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 05:18:58,165 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 05:18:58,165 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 05:18:58,165 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 05:18:58,165 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/junit-17639910014203564088/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 05:18:58,165 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 05:18:58,165 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 05:18:58,168 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=0, votedFor=null 05:18:58,168 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 05:18:58,168 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17639910014203564088/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 05:18:58,168 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17639910014203564088/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 05:18:58,168 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17639910014203564088/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 05:18:58,168 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 05:18:58,168 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 05:18:58,168 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 05:18:58,168 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 05:18:58,168 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed in in 3.113 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 05:18:58,168 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed and can restore from snapshot 05:18:58,169 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17639910014203564088/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 05:18:58,169 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17639910014203564088/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 05:18:58,169 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17639910014203564088/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 05:18:58,169 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 05:18:58,170 PM [test-pekko.actor.default-dispatcher-7] [INFO] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]}" message is greater than follower's term 0 - updating term 05:18:58,172 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:18:58,172 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 05:18:58,172 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 05:18:58,172 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 05:18:58,172 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 05:18:58,172 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 05:18:58,172 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 05:18:58,172 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 05:18:58,172 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 05:18:58,172 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 05:18:58,172 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 05:18:58,172 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 05:18:58,172 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 6.631 ms 05:18:58,172 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 05:18:58,172 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 05:18:58,172 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 05:18:58,172 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 05:18:58,172 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 05:18:58,172 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 05:18:58,172 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 05:18:58,172 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 05:18:58,172 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 05:18:58,172 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 05:18:58,176 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 05:18:58,176 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 05:18:58,176 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 3.844 ms 05:18:58,176 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 05:18:58,176 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 1.540 μs 05:18:58,176 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c093ba38@139059c6} 05:18:58,176 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 05:18:58,176 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 05:18:58,176 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 05:18:58,176 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 05:18:58,176 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 195.7 μs 05:18:58,176 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 05:18:58,176 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 05:18:58,176 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 05:18:58,176 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 05:18:58,176 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 05:18:58,176 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 05:18:58,176 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c093ba38@139059c6} 05:18:58,176 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d113790] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-17639910014203564088/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000690E2A02-0A88FBE6.tmp 05:18:58,176 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 4.230 ms 05:18:58,177 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 05:18:58,177 PM [test-pekko.actor.default-dispatcher-5] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [WARN] [11/07/2025 17:18:58.177] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][11/07/2025 17:18:58.177] [test-pekko.actor.default-dispatcher-5] [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'. 05:18:58,181 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d113790] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-17639910014203564088/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000690E2A02-0A88FBE6.v1 05:18:58,181 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d113790] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17639910014203564088/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 05:18:58,181 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d113790] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-17639910014203564088/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000690E2A02-0A88FBE6.v1 05:18:58,182 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d113790] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17639910014203564088/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 05:18:58,182 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d113790] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17639910014203564088/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 05:18:58,182 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d113790] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-11-07T17:18:58.176749542Z, file=/tmp/junit-17639910014203564088/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000690E2A02-0A88FBE6.v1, size=555, entryCompress=NONE, stateCompress=NONE} 05:18:58,182 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d113790] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 05:18:58,182 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 05:18:58,182 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-11-07T17:18:58.176749542Z 05:18:58,182 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 05:18:58,182 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 05:18:58,182 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 6.003 ms 05:18:58,182 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 05:18:58,182 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 05:18:58,182 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 05:18:58,182 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 151.8 μs 05:18:58,182 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 05:18:58,182 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 05:18:58,270 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17639910014203564088/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 05:18:58,270 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-17639910014203564088/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000690E2A02-0A88FBE6.v1 05:18:58,271 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17639910014203564088/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 05:18:58,271 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17639910014203564088/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 05:18:58,271 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-11-07T17:18:58.176749542Z, file=/tmp/junit-17639910014203564088/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000690E2A02-0A88FBE6.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 05:18:58,273 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior380#877801606] 05:18:58,275 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower381#1865880281] 05:18:58,275 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader382#-1682049573] 05:18:58,275 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 05:18:58,276 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#645,testCaptureSnapshotOnLastEntryInAppendEntries-writer-151]/waiting 05:18:58,276 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 93.46 ms 05:18:58,276 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 20.12 μs 05:18:58,276 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 05:18:58,276 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 05:18:58,276 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 05:18:58,276 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 05:18:58,276 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 05:18:58,283 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:58,284 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior383#-1141968314] 05:18:58,285 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower384#1337323425] 05:18:58,285 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader385#2069899074] 05:18:58,291 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 05:18:58,291 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:58,292 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 05:18:58,292 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 05:18:58,292 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior386#1046313456] 05:18:58,293 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower387#1472200190] 05:18:58,294 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader388#-76939974] 05:18:58,296 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 05:18:58,296 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:58,296 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 05:18:58,297 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]]} 05:18:58,297 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:18:58,297 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 05:18:58,297 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 05:18:58,297 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 05:18:58,297 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 05:18:58,298 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} 05:18:58,298 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:18:58,298 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 05:18:58,298 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 05:18:58,298 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior389#-249300084] 05:18:58,299 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower390#-1192596431] 05:18:58,299 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader391#211115225] 05:18:58,302 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 05:18:58,302 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:58,303 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 05:18:58,303 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]]} 05:18:58,303 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 05:18:58,304 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} 05:18:58,304 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:18:58,304 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 05:18:58,304 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]]} 05:18:58,304 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 05:18:58,305 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} 05:18:58,305 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 05:18:58,305 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior392#-657120423] 05:18:58,306 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower393#-955885476] 05:18:58,306 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader394#2048702400] 05:18:58,308 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:58,308 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior395#1136610510] 05:18:58,309 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower396#-2059840451] 05:18:58,309 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader397#1473252332] 05:18:58,310 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 05:18:58,310 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:58,311 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 05:18:58,311 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]]} 05:18:58,311 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 05:18:58,312 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} 05:18:58,312 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:18:58,312 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 05:18:58,312 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]]} 05:18:58,312 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 05:18:58,312 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} 05:18:58,312 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 05:18:58,313 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]]} 05:18:58,313 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 05:18:58,313 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} 05:18:58,313 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 05:18:58,313 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior398#-2086009878] 05:18:58,314 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower399#-1668761069] 05:18:58,314 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader400#263021598] 05:18:58,316 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 05:18:58,316 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:58,317 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]]} 05:18:58,317 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:18:58,317 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 05:18:58,317 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 05:18:58,317 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 05:18:58,317 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 05:18:58,317 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} 05:18:58,317 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 05:18:58,317 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 05:18:58,317 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 05:18:58,317 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior401#447550900] 05:18:58,318 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower402#763271319] 05:18:58,318 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader403#1649966919] 05:18:58,320 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 05:18:58,320 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:58,321 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 05:18:58,321 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader406 05:18:58,321 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader406 05:18:58,322 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 05:18:58,323 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior404#-768102207] 05:18:58,323 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower405#-1586738521] 05:18:58,323 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader406#-730294182] 05:18:58,325 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 05:18:58,326 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:58,326 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 05:18:58,326 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]]} 05:18:58,326 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:18:58,326 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 05:18:58,326 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 05:18:58,326 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 05:18:58,326 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 05:18:58,327 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} 05:18:58,327 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:18:58,327 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 05:18:58,327 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 05:18:58,327 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior407#2001902301] 05:18:58,328 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower408#-1984873942] 05:18:58,328 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader409#856334098] 05:18:58,329 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 05:18:58,329 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:58,330 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 05:18:58,330 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]]} 05:18:58,330 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 05:18:58,331 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} 05:18:58,331 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:18:58,331 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior410#-1531354807] 05:18:58,331 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower411#-826953370] 05:18:58,331 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader412#-753281384] 05:18:58,333 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 05:18:58,336 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 05:18:58,336 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] [WARN] [11/07/2025 17:18:58.336] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@4dd16ce7 [INFO] [pekkoDeadLetter][11/07/2025 17:18:58.336] [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'. 05:18:58,336 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 05:18:58,337 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 05:18:58,336 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'. 05:18:58,337 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 05:18:58,337 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 05:18:58,337 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 05:18:58,337 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 05:18:58,338 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 05:18:58,338 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 05:18:58,338 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 05:18:58,338 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/junit-6289305720856550266/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 05:18:58,340 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=0, votedFor=null 05:18:58,340 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=0} 05:18:58,341 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6289305720856550266/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 05:18:58,341 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6289305720856550266/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 05:18:58,341 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6289305720856550266/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 05:18:58,341 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 05:18:58,341 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 05:18:58,341 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 05:18:58,341 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 05:18:58,341 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed in in 3.148 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 05:18:58,341 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed and can restore from snapshot 05:18:58,341 PM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]}" message is greater than follower's term 0 - updating term 05:18:58,343 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 05:18:58,343 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 05:18:58,343 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 05:18:58,343 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 05:18:58,343 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 05:18:58,343 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 05:18:58,343 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 05:18:58,343 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 05:18:58,343 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 05:18:58,343 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 05:18:58,343 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 05:18:58,343 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 5.485 ms 05:18:58,343 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 05:18:58,343 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 05:18:58,343 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 05:18:58,343 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 05:18:58,343 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 05:18:58,343 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 05:18:58,343 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 05:18:58,343 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 05:18:58,343 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 05:18:58,346 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 05:18:58,346 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 05:18:58,346 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 3.008 ms 05:18:58,346 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 3 commands after 1.960 μs 05:18:58,346 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 05:18:58,346 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c093ba38@21ba4591} 05:18:58,346 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 2 synchronized callback(s) 05:18:58,348 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 05:18:58,348 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 3 completion(s) pending 05:18:58,348 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 3 commands in 1.528 ms 05:18:58,348 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 05:18:58,348 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 3 completion(s) 05:18:58,348 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 05:18:58,348 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c093ba38@21ba4591} 05:18:58,348 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 05:18:58,348 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 05:18:58,348 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 05:18:58,348 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 05:18:58,348 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 05:18:58,348 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 05:18:58,348 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 05:18:58,348 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c093ba38@21ba4591} 05:18:58,348 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 4.728 ms 05:18:58,348 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d876112] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-6289305720856550266/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000690E2A02-14C3D5FD.tmp [WARN] [11/07/2025 17:18:58.348] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][11/07/2025 17:18:58.348] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 05:18:58,348 PM [test-pekko.actor.default-dispatcher-6] [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'. 05:18:58,352 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d876112] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-6289305720856550266/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000690E2A02-14C3D5FD.v1 05:18:58,352 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d876112] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6289305720856550266/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 05:18:58,352 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d876112] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-6289305720856550266/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000690E2A02-14C3D5FD.v1 05:18:58,352 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d876112] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6289305720856550266/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 05:18:58,352 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d876112] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6289305720856550266/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 05:18:58,352 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d876112] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-11-07T17:18:58.348378621Z, file=/tmp/junit-6289305720856550266/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000690E2A02-14C3D5FD.v1, size=539, entryCompress=NONE, stateCompress=NONE} 05:18:58,353 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d876112] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 05:18:58,353 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 05:18:58,353 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-11-07T17:18:58.348378621Z 05:18:58,353 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 05:18:58,353 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 05:18:58,353 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 5.181 ms 05:18:58,353 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 05:18:58,353 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 05:18:58,353 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 05:18:58,353 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 257.6 μs 05:18:58,353 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 05:18:58,353 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 05:18:58,493 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6289305720856550266/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 05:18:58,493 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-6289305720856550266/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000690E2A02-14C3D5FD.v1 05:18:58,493 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6289305720856550266/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 05:18:58,493 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6289305720856550266/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 05:18:58,493 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-11-07T17:18:58.348378621Z, file=/tmp/junit-6289305720856550266/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000690E2A02-14C3D5FD.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 05:18:58,495 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior413#-580514683] 05:18:58,496 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower414#-433738098] 05:18:58,496 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader415#1307546201] 05:18:58,496 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 05:18:58,496 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#648,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152]/waiting 05:18:58,497 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 143.3 ms 05:18:58,497 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 15.97 μs 05:18:58,497 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 05:18:58,497 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 05:18:58,497 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 05:18:58,497 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 05:18:58,497 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 05:18:58,502 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 05:18:58,502 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:58,502 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 05:18:58,503 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]]} 05:18:58,503 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 05:18:58,503 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} 05:18:58,503 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 05:18:58,504 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior416#-805362097] 05:18:58,504 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower417#-1130664608] 05:18:58,504 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader418#-539375073] 05:18:58,506 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 05:18:58,506 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:58,507 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 05:18:58,507 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 05:18:58,507 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 05:18:58,507 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 05:18:58,507 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 05:18:58,508 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior419#-1264819847] 05:18:58,508 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower420#579537468] 05:18:58,508 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader421#-952530444] 05:18:58,510 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 05:18:58,510 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:58,511 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 05:18:58,511 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]]} 05:18:58,511 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 05:18:58,511 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 05:18:58,511 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 05:18:58,511 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 05:18:58,511 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 05:18:58,511 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 05:18:58,511 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 05:18:58,511 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 05:18:58,511 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} 05:18:58,511 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 05:18:58,511 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 05:18:58,511 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 05:18:58,511 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:18:58,512 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 05:18:58,512 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 05:18:58,512 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 05:18:58,512 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 05:18:58,512 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 05:18:58,512 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 05:18:58,512 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior422#-285477415] 05:18:58,512 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower423#-198257807] 05:18:58,513 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader424#1753764320] 05:18:58,514 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 05:18:58,514 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:58,515 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 05:18:58,515 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 05:18:58,515 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior425#760194332] 05:18:58,516 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower426#1230281295] 05:18:58,516 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader427#-439616369] 05:18:58,518 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 05:18:58,518 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:58,518 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 05:18:58,518 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:18:58,518 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 05:18:58,518 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 05:18:58,519 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 05:18:58,519 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]]} 05:18:58,519 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 05:18:58,519 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:18:58,519 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 05:18:58,519 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 05:18:58,519 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 05:18:58,519 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 05:18:58,519 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} 05:18:58,519 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 05:18:58,519 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 05:18:58,520 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 05:18:58,520 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 05:18:58,520 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior428#-2085876710] 05:18:58,520 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower429#-642449307] 05:18:58,520 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader430#1786088367] 05:18:58,522 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 05:18:58,523 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:58,523 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 05:18:58,523 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]]} 05:18:58,523 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 05:18:58,524 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} 05:18:58,524 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:18:58,524 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 05:18:58,524 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]]} 05:18:58,524 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 05:18:58,524 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} 05:18:58,525 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 05:18:58,525 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 05:18:58,525 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]]} 05:18:58,525 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 05:18:58,525 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} 05:18:58,526 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 05:18:58,526 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior431#-314985689] 05:18:58,526 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower432#636691272] 05:18:58,526 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader433#-1216187425] 05:18:58,528 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 05:18:58,529 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:58,729 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.171.236:17355, Removed) 05:18:58,729 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 05:18:58,729 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 05:18:58,729 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 05:18:58,729 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 05:18:58,729 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior434#1532161783] 05:18:58,740 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower435#-2090879113] 05:18:58,740 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader436#-1471806448] 05:18:58,745 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:58,745 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 05:18:58,996 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior437#636472356] 05:18:59,8 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower438#363186792] 05:18:59,8 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader439#1543321278] 05:18:59,13 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 05:18:59,13 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:59,15 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 05:18:59,15 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 05:18:59,16 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior440#928115497] 05:18:59,27 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower441#950668742] 05:18:59,27 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader442#-428992900] 05:18:59,31 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 05:18:59,31 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:59,32 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]]} 05:18:59,33 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 05:18:59,33 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 05:18:59,33 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 05:18:59,33 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 05:18:59,33 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 05:18:59,33 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 05:18:59,33 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} 05:18:59,33 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 05:18:59,33 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 05:18:59,34 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 05:18:59,34 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:18:59,34 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 05:18:59,34 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 05:18:59,34 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 05:18:59,34 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 05:18:59,34 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 05:18:59,34 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 05:18:59,34 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 05:18:59,34 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 05:18:59,35 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior443#-1107813618] 05:18:59,46 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower444#1843814445] 05:18:59,46 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader445#-1857019270] 05:18:59,51 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 05:18:59,51 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:59,52 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 05:18:59,52 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:18:59,52 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 05:18:59,52 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 05:18:59,53 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]]} 05:18:59,54 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} 05:18:59,55 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior446#-1684549998] 05:18:59,66 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower447#842362696] 05:18:59,66 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader448#-1270654203] 05:18:59,70 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 05:18:59,70 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:59,71 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 05:18:59,71 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]]} 05:18:59,71 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 05:18:59,71 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 05:18:59,72 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 05:18:59,72 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior449#17537711] 05:18:59,83 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower450#1271582309] 05:18:59,83 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader451#2096474133] 05:18:59,88 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries 05:18:59,92 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:18:59,92 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [11/07/2025 17:18:59.093] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@65a62dcd [INFO] [pekkoDeadLetter][11/07/2025 17:18:59.093] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 05:18:59,93 PM [test-pekko.actor.default-dispatcher-7] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 05:18:59,93 PM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 05:18:59,94 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 05:18:59,94 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 05:18:59,94 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 05:18:59,95 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 05:18:59,95 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 05:18:59,95 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 05:18:59,95 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 05:18:59,95 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 05:18:59,95 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/junit-12428133727148373401/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 05:18:59,98 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=0, votedFor=null 05:18:59,98 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 05:18:59,98 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12428133727148373401/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 05:18:59,98 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12428133727148373401/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 05:18:59,98 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12428133727148373401/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 05:18:59,98 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 05:18:59,98 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 05:18:59,98 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 05:18:59,98 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 05:18:59,98 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 3.293 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 05:18:59,98 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and can restore from snapshot 05:18:59,99 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12428133727148373401/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 05:18:59,99 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12428133727148373401/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 05:18:59,99 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12428133727148373401/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 05:18:59,99 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 05:18:59,99 PM [test-pekko.actor.default-dispatcher-5] [INFO] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]}" message is greater than follower's term 0 - updating term 05:18:59,100 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:18:59,100 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 05:18:59,100 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 05:18:59,100 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 05:18:59,100 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 05:18:59,100 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 05:18:59,100 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 05:18:59,100 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 05:18:59,100 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 05:18:59,100 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 05:18:59,101 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 05:18:59,101 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 05:18:59,100 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 5.731 ms 05:18:59,101 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 05:18:59,101 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 05:18:59,101 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 05:18:59,101 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 05:18:59,101 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 05:18:59,101 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 05:18:59,101 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 05:18:59,101 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 05:18:59,101 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 05:18:59,101 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 05:18:59,101 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 05:18:59,101 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 05:18:59,101 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 05:18:59,101 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 05:18:59,101 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 05:18:59,101 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 05:18:59,104 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 05:18:59,104 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 05:18:59,104 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 3.040 ms 05:18:59,104 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 05:18:59,104 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 1.900 μs 05:18:59,104 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c093ba38@6173885a} 05:18:59,104 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 05:18:59,104 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c093ba38@6173885a} 05:18:59,104 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 05:18:59,104 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 05:18:59,104 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 05:18:59,105 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 871.9 μs 05:18:59,105 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 05:18:59,105 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 05:18:59,105 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 05:18:59,105 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 05:18:59,105 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 05:18:59,105 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 05:18:59,105 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 05:18:59,105 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 05:18:59,105 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 05:18:59,105 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d296413] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-12428133727148373401/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690E2A03-06454F7A.tmp 05:18:59,105 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c093ba38@6173885a} 05:18:59,105 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 4.012 ms [WARN] [11/07/2025 17:18:59.105] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][11/07/2025 17:18:59.105] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 05:18:59,105 PM [test-pekko.actor.default-dispatcher-7] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 05:18:59,106 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d296413] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-12428133727148373401/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690E2A03-06454F7A.v1 05:18:59,107 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d296413] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12428133727148373401/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 05:18:59,107 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d296413] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12428133727148373401/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 05:18:59,107 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d296413] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12428133727148373401/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 05:18:59,107 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d296413] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12428133727148373401/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690E2A03-06454F7A.v1 05:18:59,107 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d296413] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-11-07T17:18:59.105205626Z, file=/tmp/junit-12428133727148373401/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690E2A03-06454F7A.v1, size=573, entryCompress=NONE, stateCompress=NONE} 05:18:59,107 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d296413] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 05:18:59,107 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 05:18:59,107 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-11-07T17:18:59.105205626Z 05:18:59,107 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 05:18:59,107 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 05:18:59,107 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 2.467 ms 05:18:59,107 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 05:18:59,107 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 05:18:59,107 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 05:18:59,107 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 141.7 μs 05:18:59,107 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 05:18:59,107 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 05:18:59,251 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12428133727148373401/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 05:18:59,251 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12428133727148373401/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 05:18:59,251 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12428133727148373401/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 05:18:59,251 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12428133727148373401/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690E2A03-06454F7A.v1 05:18:59,251 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-11-07T17:18:59.105205626Z, file=/tmp/junit-12428133727148373401/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690E2A03-06454F7A.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 05:18:59,253 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 05:18:59,264 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#651,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153]/waiting 05:18:59,264 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 156.6 ms 05:18:59,264 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 9.910 μs 05:18:59,264 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 05:18:59,264 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 05:18:59,264 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 05:18:59,264 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 05:18:59,264 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 05:18:59,265 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [11/07/2025 17:18:59.266] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@7a9ed3fa [INFO] [pekkoDeadLetter][11/07/2025 17:18:59.266] [test-pekko.actor.default-dispatcher-12] [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'. 05:18:59,266 PM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 05:18:59,266 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 05:18:59,266 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 05:18:59,266 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 05:18:59,267 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 05:18:59,267 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 05:18:59,267 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 05:18:59,268 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 05:18:59,268 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 05:18:59,268 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 05:18:59,268 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:18:59,268 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12428133727148373401/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 05:18:59,268 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12428133727148373401/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 05:18:59,268 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12428133727148373401/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 05:18:59,268 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12428133727148373401/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690E2A03-06454F7A.v1 05:18:59,268 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-11-07T17:18:59.105205626Z, file=/tmp/junit-12428133727148373401/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690E2A03-06454F7A.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 05:18:59,268 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-11-07T17:18:59.105205626Z 05:18:59,268 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 05:18:59,269 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 05:18:59,269 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 05:18:59,269 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 05:18:59,269 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 1.390 ms: last log index = 2, last log term = 1, napshot index = 2, snapshot term = 1, journal size = 0 05:18:59,269 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and cannot restore from snapshot 05:18:59,270 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior452#831621806] 05:18:59,281 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower453#-476766717] 05:18:59,281 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader454#-889745867] 05:18:59,281 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 05:18:59,281 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#654,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-154]/waiting 05:18:59,281 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 13.75 ms 05:18:59,281 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 11.95 μs 05:18:59,281 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 05:18:59,282 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 05:18:59,282 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 05:18:59,282 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 05:18:59,282 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 05:18:59,288 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 05:18:59,288 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:18:59,589 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 05:18:59,719 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 05:18:59,970 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 05:19:00,170 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 05:19:00,170 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior455#981440384] 05:19:00,181 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower456#555495242] 05:19:00,182 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader457#1258042288] 05:19:00,185 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:19:00,186 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 05:19:00,186 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 05:19:00,186 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 05:19:00,186 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 05:19:00,187 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior458#710751302] 05:19:00,197 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower459#-1846247327] 05:19:00,198 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader460#1892701293] [INFO] [11/07/2025 17:19:00.200] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 05:19:00,200 PM [test-pekko.actor.default-dispatcher-5] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [11/07/2025 17:19:00.202] [test-pekko.actor.default-dispatcher-5] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.236:17355) 05:19:00,202 PM [test-pekko.actor.default-dispatcher-5] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#194036175] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][11/07/2025 17:19:00.202] [test-pekko.actor.default-dispatcher-7] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#194036175] 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'. 05:19:00,203 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.236:17355] - Exiting completed [INFO] [11/07/2025 17:19:00.202] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.236:17355] - Exiting completed 05:19:00,203 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.236:17355] - Shutting down... [INFO] [11/07/2025 17:19:00.203] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.236:17355] - Shutting down... [INFO] [11/07/2025 17:19:00.203] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.236:17355] - Successfully shut down 05:19:00,203 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.236:17355] - Successfully shut down [INFO] [11/07/2025 17:19:00.204] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.236:17355/system/remoting-terminator] Shutting down remote daemon. 05:19:00,205 PM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 05:19:00,205 PM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [11/07/2025 17:19:00.205] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.236:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [11/07/2025 17:19:00.208] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.236:17355/system/remoting-terminator] Remoting shut down. 05:19:00,208 PM [test-pekko.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [11/07/2025 17:19:00.208] [test-pekko.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger