[DEBUG] [08/31/2026 22:34:15.317] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 10:34:15,319 PM [test-pekko.actor.default-dispatcher-4] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [08/31/2026 22:34:15.320] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [08/31/2026 22:34:15.320] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [08/31/2026 22:34:15.337] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.225:17355] with UID [6031991552683271849] 10:34:15,338 PM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.225:17355] with UID [6031991552683271849] [INFO] [08/31/2026 22:34:15.339] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.225:17355] - Starting up, Pekko version [1.2.1] ... 10:34:15,339 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.225:17355] - Starting up, Pekko version [1.2.1] ... [INFO] [08/31/2026 22:34:15.342] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.225:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [08/31/2026 22:34:15.342] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.225:17355] - Started up successfully 10:34:15,348 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.225:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [08/31/2026 22:34:15.344] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.225:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [08/31/2026 22:34:15.344] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.225:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 10:34:15,348 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.225:17355] - Started up successfully 10:34:15,348 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.225:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 10:34:15,348 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.225:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 10:34:15,359 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:15,475 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 10:34:15,476 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 10:34:15,477 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior420#-2089092480] 10:34:15,488 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower421#-1395008016] 10:34:15,488 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader422#-982890934] 10:34:15,493 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:15,495 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]]} 10:34:15,496 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:34:15,496 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 10:34:15,496 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 10:34:15,496 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 10:34:15,497 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 10:34:15,497 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} 10:34:15,497 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 10:34:15,497 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 10:34:15,499 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 10:34:15,499 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:34:15,499 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 10:34:15,500 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior423#-1061454552] 10:34:15,511 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower424#-1039568169] 10:34:15,511 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader425#1219558981] 10:34:15,515 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:15,517 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 10:34:15,517 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 10:34:15,518 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior426#-2012857233] 10:34:15,529 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower427#1181904087] 10:34:15,529 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader428#351090559] 10:34:15,532 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:15,533 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 10:34:15,534 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 10:34:15,535 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} 10:34:15,535 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 10:34:15,536 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 10:34:15,538 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 10:34:15,538 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 10:34:15,538 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. 10:34:15,538 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 10:34:15,539 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 10:34:15,540 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 10:34:15,541 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 10:34:15,542 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior429#-1188800870] 10:34:15,552 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower430#-102179089] 10:34:15,553 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader431#236357776] 10:34:15,569 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:15,569 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:34:15,570 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:34:15,570 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:15,570 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 10:34:15,571 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 10:34:15,571 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 10:34:15,571 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 10:34:15,571 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 10:34:15,572 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior432#-1766950549] 10:34:15,583 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower433#660310698] 10:34:15,583 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader434#-385318020] 10:34:15,587 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:15,588 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 10:34:15,589 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior435#-1985720501] 10:34:15,600 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower436#313587341] 10:34:15,600 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader437#1210100117] 10:34:15,606 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:15,607 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 10:34:15,607 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 10:34:15,608 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior438#302144971] 10:34:15,619 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower439#-943300872] 10:34:15,619 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader440#-2062789254] 10:34:15,624 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 10:34:15,624 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:15,628 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 10:34:15,628 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:34:15,628 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:34:15,628 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 10:34:15,629 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 10:34:15,629 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 10:34:15,629 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 10:34:15,629 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 10:34:15,634 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 10:34:15,635 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior441#-206454138] 10:34:15,645 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower442#-324116329] 10:34:15,646 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader443#-1163848101] 10:34:15,649 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 10:34:15,650 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:15,651 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]]} 10:34:15,652 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 10:34:15,652 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} 10:34:15,652 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 10:34:15,653 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior444#-1139007267] 10:34:15,664 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower445#-1668613432] 10:34:15,665 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader446#-1473209225] 10:34:15,668 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 10:34:15,668 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:15,669 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 10:34:15,669 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:34:15,669 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:34:15,670 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 10:34:15,670 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 10:34:15,670 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 10:34:15,671 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 10:34:15,671 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 10:34:15,672 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 10:34:15,672 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]]} 10:34:15,673 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 10:34:15,673 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} 10:34:15,673 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 10:34:15,674 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior447#40736246] 10:34:15,685 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower448#2001021537] 10:34:15,685 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader449#792895067] 10:34:15,688 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:15,689 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 10:34:15,690 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior450#1998482039] 10:34:15,701 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower451#1595087842] 10:34:15,701 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader452#-1835741806] 10:34:15,704 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 10:34:15,705 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:15,705 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 10:34:15,706 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]]} 10:34:15,706 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:34:15,706 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 10:34:15,706 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 10:34:15,706 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 10:34:15,706 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 10:34:15,707 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} 10:34:15,707 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:34:15,707 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 10:34:15,707 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 10:34:15,708 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior453#619809815] 10:34:15,719 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower454#2047825939] 10:34:15,719 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader455#2128039614] 10:34:15,723 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 10:34:15,723 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:15,724 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]]} 10:34:15,724 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:34:15,724 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 10:34:15,724 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 10:34:15,724 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 10:34:15,725 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 10:34:15,725 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} 10:34:15,725 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:34:15,725 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 10:34:15,725 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 10:34:15,725 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:34:15,725 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 10:34:15,725 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 10:34:15,727 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]]} 10:34:15,727 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 10:34:15,727 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 10:34:15,727 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 10:34:15,727 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 10:34:15,727 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 10:34:15,727 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 10:34:15,727 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} 10:34:15,728 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 10:34:15,728 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 10:34:15,728 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 10:34:15,728 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 10:34:15,729 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#-345861669] 10:34:15,740 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower457#1652791051] 10:34:15,740 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader458#836028132] 10:34:15,743 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 10:34:15,743 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:15,744 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 10:34:15,745 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 10:34:15,745 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} 10:34:15,745 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 10:34:15,746 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#-962219532] 10:34:15,757 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower460#-1407276885] 10:34:15,757 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader461#217890754] 10:34:15,760 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:15,764 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#1714126649] 10:34:15,774 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower463#-1926439068] 10:34:15,774 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader464#-1216237369] 10:34:15,778 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 10:34:15,778 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:15,778 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 10:34:15,779 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 10:34:15,780 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]]} 10:34:15,780 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:34:15,780 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 10:34:15,780 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 10:34:15,780 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 10:34:15,780 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 10:34:15,781 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} 10:34:15,781 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:34:15,781 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 10:34:15,781 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 10:34:15,781 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 10:34:15,781 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 10:34:15,782 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#1414320323] 10:34:15,793 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower466#-17667557] 10:34:15,793 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader467#1031700577] 10:34:15,797 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries 10:34:15,801 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:34:15,802 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] [WARN] [08/31/2026 22:34:15.802] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@725fbc [INFO] [pekkoDeadLetter][08/31/2026 22:34:15.802] [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'. 10:34:15,803 PM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:34:15,803 PM [test-pekko.actor.default-dispatcher-4] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 10:34:15,803 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:34:15,804 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:34:15,804 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 10:34:15,805 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 10:34:15,805 PM [test-pekko.actor.default-dispatcher-4] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 10:34:15,805 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 10:34:15,805 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - /tmp/junit-1516982844273599682/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 10:34:15,808 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=0, votedFor=null 10:34:15,808 PM [test-pekko.actor.default-dispatcher-4] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 10:34:15,808 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1516982844273599682/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:34:15,808 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1516982844273599682/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:34:15,808 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1516982844273599682/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:34:15,808 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 10:34:15,808 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 10:34:15,808 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 10:34:15,808 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 10:34:15,808 PM [test-pekko.actor.default-dispatcher-4] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed in in 3.441 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 10:34:15,808 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed and can restore from snapshot 10:34:15,808 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: writer thread VirtualThread[#624,testCaptureSnapshotOnLastEntryInAppendEntries-writer-154]/runnable started 10:34:15,808 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 10:34:15,809 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 10:34:15,809 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1516982844273599682/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:34:15,809 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1516982844273599682/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:34:15,809 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1516982844273599682/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:34:15,809 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 10:34:15,809 PM [test-pekko.actor.default-dispatcher-4] [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 10:34:15,812 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:34:15,812 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 10:34:15,812 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 10:34:15,812 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:34:15,812 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 10:34:15,812 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 10:34:15,812 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 10:34:15,812 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 10:34:15,812 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 10:34:15,812 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 10:34:15,812 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:34:15,812 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 3.898 ms 10:34:15,812 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 10:34:15,812 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 10:34:15,813 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 10:34:15,813 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 10:34:15,813 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 10:34:15,813 PM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 10:34:15,813 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 10:34:15,813 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 10:34:15,813 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 10:34:15,813 PM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 10:34:15,813 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 10:34:15,818 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 10:34:15,818 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 5.946 ms 10:34:15,818 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 10:34:15,818 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 3.140 μs 10:34:15,818 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 10:34:15,819 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c0944460@24bef995} 10:34:15,819 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 10:34:15,819 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 10:34:15,819 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 10:34:15,819 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 187.1 μs 10:34:15,819 PM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 10:34:15,819 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 10:34:15,819 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 10:34:15,819 PM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 10:34:15,819 PM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 10:34:15,819 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 10:34:15,819 PM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 10:34:15,819 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c0944460@24bef995} 10:34:15,819 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d882226] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-1516982844273599682/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006A960167-30D5745C.tmp 10:34:15,819 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 6.287 ms 10:34:15,819 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) [WARN] [08/31/2026 22:34:15.819] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] 10:34:15,819 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'. [INFO] [pekkoDeadLetter][08/31/2026 22:34:15.819] [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'. 10:34:15,826 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d882226] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-1516982844273599682/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006A960167-30D5745C.v1 10:34:15,826 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d882226] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-1516982844273599682/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006A960167-30D5745C.v1 10:34:15,826 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d882226] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1516982844273599682/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:34:15,826 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d882226] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1516982844273599682/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:34:15,826 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d882226] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1516982844273599682/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:34:15,826 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d882226] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2026-08-31T22:34:15.819295324Z, file=/tmp/junit-1516982844273599682/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006A960167-30D5745C.v1, size=555, entryCompress=NONE, stateCompress=NONE} 10:34:15,826 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d882226] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 10:34:15,826 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 10:34:15,826 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2026-08-31T22:34:15.819295324Z 10:34:15,826 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 10:34:15,827 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 10:34:15,827 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 7.879 ms 10:34:15,827 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 10:34:15,827 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 10:34:15,827 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 10:34:15,827 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 283.1 μs 10:34:15,827 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 10:34:15,827 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 10:34:15,910 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-1516982844273599682/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006A960167-30D5745C.v1 10:34:15,910 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1516982844273599682/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:34:15,910 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1516982844273599682/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:34:15,910 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1516982844273599682/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:34:15,910 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2026-08-31T22:34:15.819295324Z, file=/tmp/junit-1516982844273599682/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006A960167-30D5745C.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 10:34:15,913 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#-1045653793] 10:34:15,925 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower469#-923243301] 10:34:15,925 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader470#493166128] 10:34:15,925 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 10:34:15,925 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#624,testCaptureSnapshotOnLastEntryInAppendEntries-writer-154]/waiting 10:34:15,925 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 98.57 ms 10:34:15,926 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 17.99 μs 10:34:15,926 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 10:34:15,926 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminated thread VirtualThread[#624,testCaptureSnapshotOnLastEntryInAppendEntries-writer-154]/terminated 10:34:15,926 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:34:15,926 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:34:15,926 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 10:34:15,926 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 10:34:15,931 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:15,933 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior471#-812262732] 10:34:15,934 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower472#-1918124080] 10:34:15,934 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader473#1108377219] 10:34:15,938 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 10:34:15,938 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:15,939 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 10:34:15,940 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 10:34:15,941 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior474#-807393372] 10:34:15,942 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower475#122471020] 10:34:15,942 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader476#-2108132522] 10:34:15,946 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 10:34:15,946 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:15,947 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 10:34:15,947 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]]} 10:34:15,948 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:34:15,948 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 10:34:15,948 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 10:34:15,948 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 10:34:15,948 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 10:34:15,948 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} 10:34:15,948 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:34:15,948 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 10:34:15,949 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 10:34:15,949 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#1428852232] 10:34:15,950 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower478#-923162191] 10:34:15,950 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader479#912779962] 10:34:15,954 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 10:34:15,954 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:15,955 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 10:34:15,956 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]]} 10:34:15,956 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 10:34:15,957 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} 10:34:15,957 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:34:15,957 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 10:34:15,958 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]]} 10:34:15,958 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 10:34:15,959 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} 10:34:15,959 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 10:34:15,960 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#2063335881] 10:34:15,960 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower481#560443382] 10:34:15,961 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader482#1592982319] 10:34:15,964 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:15,965 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior483#473228308] 10:34:15,965 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower484#1015052769] 10:34:15,966 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader485#-249188076] 10:34:15,969 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 10:34:15,969 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:15,969 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 10:34:15,970 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]]} 10:34:15,970 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 10:34:15,970 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} 10:34:15,970 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:34:15,971 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 10:34:15,971 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]]} 10:34:15,971 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 10:34:15,971 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} 10:34:15,972 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 10:34:15,972 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]]} 10:34:15,972 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 10:34:15,973 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} 10:34:15,973 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 10:34:15,973 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior486#1690943342] 10:34:15,974 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower487#-59476601] 10:34:15,974 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader488#1468101716] 10:34:15,977 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 10:34:15,977 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:15,978 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]]} 10:34:15,978 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:34:15,978 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 10:34:15,978 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 10:34:15,978 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 10:34:15,978 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 10:34:15,978 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} 10:34:15,978 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 10:34:15,979 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 10:34:15,979 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 10:34:15,979 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior489#49042266] 10:34:15,980 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower490#-645167658] 10:34:15,980 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader491#1028523928] 10:34:15,983 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 10:34:15,983 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:15,984 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 10:34:15,985 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader494 10:34:15,985 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader494 10:34:15,986 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 10:34:15,987 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior492#-20263505] 10:34:15,988 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower493#85532335] 10:34:15,988 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader494#1628300526] 10:34:15,991 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 10:34:15,991 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:15,991 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 10:34:15,992 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]]} 10:34:15,992 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:34:15,992 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 10:34:15,992 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 10:34:15,992 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 10:34:15,992 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 10:34:15,992 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} 10:34:15,992 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:34:15,992 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 10:34:15,992 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 10:34:15,993 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior495#653292211] 10:34:15,994 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower496#1160765841] 10:34:15,994 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader497#-455354710] 10:34:15,996 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 10:34:15,996 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:15,997 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 10:34:15,997 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]]} 10:34:15,997 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 10:34:15,997 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} 10:34:15,998 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:34:15,998 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#-1221394210] 10:34:15,999 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower499#887935315] 10:34:15,999 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader500#834294372] 10:34:16,1 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 10:34:16,7 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 10:34:16,8 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 10:34:16,9 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 10:34:16,9 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 10:34:16,9 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 10:34:16,10 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 10:34:16,10 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 10:34:16,10 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 10:34:16,10 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 10:34:16,10 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/junit-15504015342580297842/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist [WARN] [08/31/2026 22:34:16.011] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@72679bda [INFO] [pekkoDeadLetter][08/31/2026 22:34:16.011] [test-pekko.actor.default-dispatcher-5] [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'. 10:34:16,11 PM [test-pekko.actor.default-dispatcher-4] [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'. 10:34:16,15 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=0, votedFor=null 10:34:16,15 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=0} 10:34:16,15 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-15504015342580297842/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 10:34:16,15 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-15504015342580297842/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 10:34:16,15 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-15504015342580297842/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 10:34:16,15 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 10:34:16,15 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 10:34:16,15 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 10:34:16,15 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 10:34:16,15 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed in in 4.826 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 10:34:16,15 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed and can restore from snapshot 10:34:16,15 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: writer thread VirtualThread[#627,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155]/runnable started 10:34:16,15 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 10:34:16,15 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 10:34:16,16 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 10:34:16,18 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 10:34:16,18 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]]} 10:34:16,18 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 10:34:16,18 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:34:16,18 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 10:34:16,18 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 10:34:16,18 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 10:34:16,18 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 10:34:16,18 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 10:34:16,18 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 10:34:16,18 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 10:34:16,18 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 10:34:16,18 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} 10:34:16,18 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 3.105 ms 10:34:16,18 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 10:34:16,18 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 10:34:16,18 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 10:34:16,18 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 10:34:16,18 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 10:34:16,18 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 10:34:16,18 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 10:34:16,24 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 10:34:16,24 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 5.265 ms 10:34:16,24 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 10:34:16,24 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 2.250 μs 10:34:16,24 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 10:34:16,24 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/0x00000007c0944460@6ee8b333} 10:34:16,24 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 10:34:16,24 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/0x00000007c0944460@6ee8b333} 10:34:16,24 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 1 synchronized callback(s) 10:34:16,25 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 10:34:16,25 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 10:34:16,25 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 1.021 ms 10:34:16,25 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 10:34:16,25 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 10:34:16,25 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 10:34:16,25 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] 10:34:16,25 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 10:34:16,25 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 10:34:16,25 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 10:34:16,25 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 10:34:16,25 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 10:34:16,25 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d305223] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-15504015342580297842/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006A960168-01823702.tmp 10:34:16,25 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/0x00000007c0944460@6ee8b333} 10:34:16,25 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 6.561 ms [WARN] [08/31/2026 22:34:16.025] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][08/31/2026 22:34:16.025] [test-pekko.actor.default-dispatcher-4] [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'. 10:34:16,26 PM [test-pekko.actor.default-dispatcher-5] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:34:16,27 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d305223] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-15504015342580297842/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006A960168-01823702.v1 10:34:16,27 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d305223] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-15504015342580297842/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006A960168-01823702.v1 10:34:16,27 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d305223] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-15504015342580297842/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 10:34:16,27 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d305223] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-15504015342580297842/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 10:34:16,27 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d305223] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-15504015342580297842/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 10:34:16,27 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d305223] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2026-08-31T22:34:16.025310978Z, file=/tmp/junit-15504015342580297842/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006A960168-01823702.v1, size=539, entryCompress=NONE, stateCompress=NONE} 10:34:16,27 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d305223] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 10:34:16,27 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 10:34:16,27 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2026-08-31T22:34:16.025310978Z 10:34:16,28 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 10:34:16,28 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 10:34:16,28 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 2.945 ms 10:34:16,28 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 10:34:16,28 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 10:34:16,28 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 10:34:16,28 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 10:34:16,28 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 110.4 μs 10:34:16,28 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 10:34:16,167 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-15504015342580297842/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006A960168-01823702.v1 10:34:16,167 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-15504015342580297842/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 10:34:16,167 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-15504015342580297842/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 10:34:16,167 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-15504015342580297842/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 10:34:16,167 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2026-08-31T22:34:16.025310978Z, file=/tmp/junit-15504015342580297842/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006A960168-01823702.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 10:34:16,170 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#2063993462] 10:34:16,171 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower502#353207518] 10:34:16,172 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader503#-622622473] 10:34:16,172 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 10:34:16,172 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#627,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155]/waiting 10:34:16,172 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 144.3 ms 10:34:16,172 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 15.38 μs 10:34:16,172 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 10:34:16,172 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminated thread VirtualThread[#627,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155]/terminated 10:34:16,172 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 10:34:16,172 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 10:34:16,172 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 10:34:16,172 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 10:34:16,178 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 10:34:16,178 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:16,179 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 10:34:16,179 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]]} 10:34:16,180 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 10:34:16,180 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} 10:34:16,180 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 10:34:16,181 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior504#-2065582744] 10:34:16,182 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower505#1097061440] 10:34:16,182 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader506#1900270644] 10:34:16,186 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 10:34:16,187 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:16,188 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 10:34:16,188 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 10:34:16,189 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 10:34:16,189 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 10:34:16,189 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 10:34:16,190 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#-1806478944] 10:34:16,191 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower508#1789868770] 10:34:16,191 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader509#-770214453] 10:34:16,195 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 10:34:16,195 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:16,196 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 10:34:16,197 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]]} 10:34:16,197 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 10:34:16,197 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 10:34:16,197 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 10:34:16,197 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 10:34:16,197 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 10:34:16,197 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 10:34:16,197 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 10:34:16,197 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 10:34:16,197 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} 10:34:16,198 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 10:34:16,198 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 10:34:16,198 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 10:34:16,198 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:34:16,198 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 10:34:16,198 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 10:34:16,198 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 10:34:16,198 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 10:34:16,198 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 10:34:16,198 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 10:34:16,199 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior510#-1246791485] 10:34:16,210 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower511#47941220] 10:34:16,211 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader512#819962930] 10:34:16,214 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 10:34:16,215 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:16,216 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 10:34:16,216 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 10:34:16,217 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#1468917236] 10:34:16,228 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower514#1723712520] 10:34:16,228 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader515#1307609644] 10:34:16,232 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 10:34:16,232 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:16,233 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 10:34:16,233 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:34:16,233 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:34:16,233 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 10:34:16,235 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 10:34:16,236 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]]} 10:34:16,236 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 10:34:16,236 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:34:16,236 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 10:34:16,236 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 10:34:16,236 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 10:34:16,236 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 10:34:16,236 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} 10:34:16,237 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 10:34:16,237 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 10:34:16,237 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 10:34:16,237 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 10:34:16,238 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior516#1915935973] 10:34:16,249 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower517#1948981325] 10:34:16,249 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518#-114967474] 10:34:16,253 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 10:34:16,255 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:16,256 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 10:34:16,256 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]]} 10:34:16,257 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 10:34:16,257 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} 10:34:16,257 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:34:16,257 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 10:34:16,258 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]]} 10:34:16,258 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 10:34:16,258 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} 10:34:16,258 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 10:34:16,258 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 10:34:16,259 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]]} 10:34:16,259 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 10:34:16,259 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} 10:34:16,259 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 10:34:16,260 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior519#98095087] 10:34:16,270 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower520#-404596942] 10:34:16,271 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader521#65659726] 10:34:16,274 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 10:34:16,274 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:16,475 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.225:17355, Removed) 10:34:16,475 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 10:34:16,475 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 10:34:16,475 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 10:34:16,475 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 10:34:16,475 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior522#-400951000] 10:34:16,486 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower523#399669101] 10:34:16,487 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader524#1279923832] 10:34:16,491 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:16,491 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 10:34:16,693 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior525#26225362] 10:34:16,704 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower526#-189024552] 10:34:16,704 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader527#915297809] 10:34:16,708 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 10:34:16,709 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:16,711 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 10:34:16,711 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 10:34:16,712 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior528#-719542755] 10:34:16,723 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower529#464167103] 10:34:16,723 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader530#-1409921636] 10:34:16,727 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 10:34:16,728 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:16,729 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]]} 10:34:16,729 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 10:34:16,729 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 10:34:16,729 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 10:34:16,729 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 10:34:16,729 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 10:34:16,729 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 10:34:16,729 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} 10:34:16,730 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 10:34:16,730 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 10:34:16,730 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 10:34:16,730 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:34:16,730 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 10:34:16,730 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 10:34:16,730 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 10:34:16,730 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 10:34:16,730 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 10:34:16,730 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 10:34:16,730 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 10:34:16,730 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 10:34:16,731 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior531#-820172359] 10:34:16,742 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower532#-142140631] 10:34:16,742 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader533#1106067588] 10:34:16,747 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 10:34:16,747 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:16,748 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 10:34:16,748 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:34:16,748 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:34:16,748 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 10:34:16,750 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]]} 10:34:16,750 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} 10:34:16,751 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior534#-237905133] 10:34:16,762 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower535#376591585] 10:34:16,762 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader536#816303110] 10:34:16,766 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 10:34:16,766 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:16,767 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 10:34:16,768 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]]} 10:34:16,768 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 10:34:16,768 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 10:34:16,769 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 10:34:16,769 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior537#-1618079859] 10:34:16,780 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower538#-892769336] 10:34:16,780 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader539#-990477559] 10:34:16,784 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries 10:34:16,787 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:34:16,788 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [08/31/2026 22:34:16.788] [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@2c0bd49b [INFO] [pekkoDeadLetter][08/31/2026 22:34:16.789] [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'. 10:34:16,789 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:34:16,789 PM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 10:34:16,789 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 10:34:16,790 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 10:34:16,790 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 10:34:16,791 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 10:34:16,791 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 10:34:16,791 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 10:34:16,791 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/junit-8328641401407930391/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 10:34:16,795 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=0, votedFor=null 10:34:16,795 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 10:34:16,796 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8328641401407930391/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 10:34:16,796 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8328641401407930391/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 10:34:16,796 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8328641401407930391/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 10:34:16,796 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 10:34:16,796 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 10:34:16,796 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 10:34:16,796 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 10:34:16,796 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 5.187 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 10:34:16,796 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and can restore from snapshot 10:34:16,796 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: writer thread VirtualThread[#631,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156]/runnable started 10:34:16,796 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 10:34:16,796 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 10:34:16,889 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8328641401407930391/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 10:34:16,889 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8328641401407930391/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 10:34:16,889 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8328641401407930391/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 10:34:16,889 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 10:34:16,889 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 10:34:16,892 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:34:16,892 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]]} 10:34:16,892 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 10:34:16,892 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:34:16,892 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 10:34:16,892 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 10:34:16,892 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 10:34:16,892 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 10:34:16,892 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 10:34:16,892 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 10:34:16,892 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 95.75 ms 10:34:16,892 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 10:34:16,892 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 10:34:16,892 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} 10:34:16,892 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 10:34:16,892 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 10:34:16,892 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 10:34:16,892 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 10:34:16,892 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 10:34:16,892 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 10:34:16,892 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 10:34:16,892 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 10:34:16,892 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 10:34:16,892 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 10:34:16,892 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 10:34:16,892 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 10:34:16,892 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 10:34:16,892 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 10:34:16,892 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 10:34:16,896 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 10:34:16,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 10:34:16,896 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 4.127 ms 10:34:16,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 10:34:16,896 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 3.340 μs 10:34:16,896 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/0x00000007c0944460@1ae5f04d} 10:34:16,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 10:34:16,898 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 10:34:16,898 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 10:34:16,898 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 1.770 ms 10:34:16,898 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 10:34:16,898 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 10:34:16,898 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 10:34:16,898 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/0x00000007c0944460@1ae5f04d} 10:34:16,898 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 10:34:16,898 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] 10:34:16,898 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 10:34:16,898 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 10:34:16,898 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 10:34:16,898 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 10:34:16,898 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 10:34:16,898 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/0x00000007c0944460@1ae5f04d} 10:34:16,898 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d302098] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-8328641401407930391/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A960168-3590E413.tmp 10:34:16,898 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 5.978 ms [WARN] [08/31/2026 22:34:16.899] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][08/31/2026 22:34:16.899] [test-pekko.actor.default-dispatcher-12] [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'. 10:34:16,899 PM [test-pekko.actor.default-dispatcher-5] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:34:16,901 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d302098] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-8328641401407930391/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A960168-3590E413.v1 10:34:16,901 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d302098] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8328641401407930391/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A960168-3590E413.v1 10:34:16,901 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d302098] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8328641401407930391/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 10:34:16,901 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d302098] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8328641401407930391/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 10:34:16,901 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d302098] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8328641401407930391/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 10:34:16,901 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d302098] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-08-31T22:34:16.898688019Z, file=/tmp/junit-8328641401407930391/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A960168-3590E413.v1, size=573, entryCompress=NONE, stateCompress=NONE} 10:34:16,901 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d302098] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 10:34:16,901 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 10:34:16,901 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2026-08-31T22:34:16.898688019Z 10:34:16,901 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 10:34:16,901 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 10:34:16,901 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.198 ms 10:34:16,901 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 10:34:16,901 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 10:34:16,901 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 10:34:16,901 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 155.6 μs 10:34:16,901 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 10:34:16,901 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 10:34:17,40 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8328641401407930391/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A960168-3590E413.v1 10:34:17,40 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8328641401407930391/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 10:34:17,40 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8328641401407930391/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 10:34:17,40 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8328641401407930391/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 10:34:17,40 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-08-31T22:34:16.898688019Z, file=/tmp/junit-8328641401407930391/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A960168-3590E413.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 10:34:17,42 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 10:34:17,53 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#631,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156]/waiting 10:34:17,53 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 151.6 ms 10:34:17,53 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 16.94 μs 10:34:17,53 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 10:34:17,53 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminated thread VirtualThread[#631,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156]/terminated 10:34:17,53 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 10:34:17,53 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 10:34:17,53 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 10:34:17,53 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 10:34:17,54 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 10:34:17,54 PM [test-pekko.actor.default-dispatcher-4] [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'. [WARN] [08/31/2026 22:34:17.055] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@ff2b6be [INFO] [pekkoDeadLetter][08/31/2026 22:34:17.054] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:34:17,55 PM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 10:34:17,55 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 10:34:17,55 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 10:34:17,56 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 10:34:17,56 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 10:34:17,56 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 10:34:17,56 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 10:34:17,57 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:34:17,57 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8328641401407930391/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A960168-3590E413.v1 10:34:17,57 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8328641401407930391/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 10:34:17,57 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8328641401407930391/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 10:34:17,57 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8328641401407930391/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 10:34:17,57 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-08-31T22:34:16.898688019Z, file=/tmp/junit-8328641401407930391/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006A960168-3590E413.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 10:34:17,57 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2026-08-31T22:34:16.898688019Z 10:34:17,57 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 10:34:17,58 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 10:34:17,58 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 10:34:17,58 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 10:34:17,58 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 1.260 ms: last log index = 2, last log term = 1, napshot index = 2, snapshot term = 1, journal size = 0 10:34:17,58 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and cannot restore from snapshot 10:34:17,58 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: writer thread VirtualThread[#634,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/runnable started 10:34:17,58 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 10:34:17,58 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 10:34:17,59 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior540#-942144986] 10:34:17,70 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower541#774304334] 10:34:17,70 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader542#1888904574] 10:34:17,70 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 10:34:17,70 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#634,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/waiting 10:34:17,70 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 12.13 ms 10:34:17,70 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 14.74 μs 10:34:17,70 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 10:34:17,70 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminated thread VirtualThread[#634,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/terminated 10:34:17,70 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 10:34:17,70 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 10:34:17,70 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 10:34:17,71 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 10:34:17,75 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 10:34:17,76 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:17,376 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 10:34:17,506 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 10:34:17,757 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 10:34:17,957 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 10:34:17,957 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior543#741838805] 10:34:17,959 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower544#185150038] 10:34:17,959 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader545#1542819464] 10:34:17,964 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:34:17,965 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 10:34:17,965 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 10:34:17,965 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 10:34:17,965 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 10:34:17,966 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior546#928863369] 10:34:17,967 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower547#850631362] 10:34:17,967 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader548#647108159] [INFO] [08/31/2026 22:34:17.969] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 10:34:17,969 PM [test-pekko.actor.default-dispatcher-12] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [08/31/2026 22:34:17.970] [test-pekko.actor.default-dispatcher-12] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.225:17355) [INFO] [pekkoDeadLetter][08/31/2026 22:34:17.970] [test-pekko.actor.default-dispatcher-5] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-809368732] 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'. 10:34:17,970 PM [test-pekko.actor.default-dispatcher-12] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-809368732] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [08/31/2026 22:34:17.970] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.225:17355] - Exiting completed 10:34:17,971 PM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.225:17355] - Exiting completed [INFO] [08/31/2026 22:34:17.971] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.225:17355] - Shutting down... 10:34:17,971 PM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.225:17355] - Shutting down... [INFO] [08/31/2026 22:34:17.971] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.225:17355] - Successfully shut down 10:34:17,971 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.225:17355] - Successfully shut down [INFO] [08/31/2026 22:34:17.974] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.225:17355/system/remoting-terminator] Shutting down remote daemon. 10:34:17,975 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 10:34:17,975 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [08/31/2026 22:34:17.975] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.225:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [08/31/2026 22:34:17.978] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.225:17355/system/remoting-terminator] Remoting shut down. 10:34:17,978 PM [test-pekko.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [08/31/2026 22:34:17.978] [test-pekko.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger